/*!
 * surveyjs - Survey JavaScript library v1.8.72
 * Copyright (c) 2015-2021 Devsoft Baltic OÜ  - http://surveyjs.io/
 * License: MIT (http://www.opensource.org/licenses/mit-license.php)
 */
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("jquery")):"function"==typeof define&&define.amd?define("survey-jquery",["jquery"],t):"object"==typeof exports?exports["survey-jquery"]=t(require("jquery")):e.Survey=t(e.jQuery)}(this,(function(e){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=66)}([function(e,t,n){var o,r,i;
/*!
 * Knockout JavaScript library v3.5.1
 * (c) The Knockout.js team - http://knockoutjs.com/
 * License: MIT (http://www.opensource.org/licenses/mit-license.php)
 */!function(a){var s=this||(0,eval)("this"),l=s.document,u=s.navigator,c=s.jQuery,p=s.JSON;c||"undefined"==typeof jQuery||(c=jQuery),function(a){r=[t,n],void 0===(i="function"==typeof(o=a)?o.apply(t,r):o)||(e.exports=i)}((function(e,t){function n(e,t){return(null===e||typeof e in C)&&e===t}function o(e,t){var n;return function(){n||(n=x.a.setTimeout((function(){n=a,e()}),t))}}function r(e,t){var n;return function(){clearTimeout(n),n=x.a.setTimeout(e,t)}}function i(e,t){t&&"change"!==t?"beforeChange"===t?this.pc(e):this.gb(e,t):this.qc(e)}function d(e,t){null!==t&&t.s&&t.s()}function h(e,t){var n=this.qd,o=n[T];o.ra||(this.Qb&&this.mb[t]?(n.uc(t,e,this.mb[t]),this.mb[t]=null,--this.Qb):o.I[t]||n.uc(t,e,o.J?{da:e}:n.$c(e)),e.Ja&&e.gd())}var f,m,g,y,v,b,x=void 0!==e?e:{};x.b=function(e,t){for(var n=e.split("."),o=x,r=0;r<n.length-1;r++)o=o[n[r]];o[n[n.length-1]]=t},x.L=function(e,t,n){e[t]=n},x.version="3.5.1",x.b("version",x.version),x.options={deferUpdates:!1,useOnlyNativeEvents:!1,foreachHidesDestroyed:!1},x.a=function(){function e(e,t){for(var n in e)r.call(e,n)&&t(n,e[n])}function t(e,t){if(t)for(var n in t)r.call(t,n)&&(e[n]=t[n]);return e}function n(e,t){return e.__proto__=t,e}function o(e,t,n,o){var r=e[t].match(v)||[];x.a.D(n.match(v),(function(e){x.a.Na(r,e,o)})),e[t]=r.join(" ")}var r=Object.prototype.hasOwnProperty,i={__proto__:[]}instanceof Array,d="function"==typeof Symbol,h={},f={};h[u&&/Firefox\/2/i.test(u.userAgent)?"KeyboardEvent":"UIEvents"]=["keyup","keydown","keypress"],h.MouseEvents="click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave".split(" "),e(h,(function(e,t){if(t.length)for(var n=0,o=t.length;n<o;n++)f[t[n]]=e}));var m,g={propertychange:!0},y=l&&function(){for(var e=3,t=l.createElement("div"),n=t.getElementsByTagName("i");t.innerHTML="\x3c!--[if gt IE "+ ++e+"]><i></i><![endif]--\x3e",n[0];);return 4<e?e:a}(),v=/\S+/g;return{Jc:["authenticity_token",/^__RequestVerificationToken(_.*)?$/],D:function(e,t,n){for(var o=0,r=e.length;o<r;o++)t.call(n,e[o],o,e)},A:"function"==typeof Array.prototype.indexOf?function(e,t){return Array.prototype.indexOf.call(e,t)}:function(e,t){for(var n=0,o=e.length;n<o;n++)if(e[n]===t)return n;return-1},Lb:function(e,t,n){for(var o=0,r=e.length;o<r;o++)if(t.call(n,e[o],o,e))return e[o];return a},Pa:function(e,t){var n=x.a.A(e,t);0<n?e.splice(n,1):0===n&&e.shift()},wc:function(e){var t=[];return e&&x.a.D(e,(function(e){0>x.a.A(t,e)&&t.push(e)})),t},Mb:function(e,t,n){var o=[];if(e)for(var r=0,i=e.length;r<i;r++)o.push(t.call(n,e[r],r));return o},jb:function(e,t,n){var o=[];if(e)for(var r=0,i=e.length;r<i;r++)t.call(n,e[r],r)&&o.push(e[r]);return o},Nb:function(e,t){if(t instanceof Array)e.push.apply(e,t);else for(var n=0,o=t.length;n<o;n++)e.push(t[n]);return e},Na:function(e,t,n){var o=x.a.A(x.a.bc(e),t);0>o?n&&e.push(t):n||e.splice(o,1)},Ba:i,extend:t,setPrototypeOf:n,Ab:i?n:t,P:e,Ga:function(e,t,n){if(!e)return e;var o,i={};for(o in e)r.call(e,o)&&(i[o]=t.call(n,e[o],o,e));return i},Tb:function(e){for(;e.firstChild;)x.removeNode(e.firstChild)},Yb:function(e){for(var t=((e=x.a.la(e))[0]&&e[0].ownerDocument||l).createElement("div"),n=0,o=e.length;n<o;n++)t.appendChild(x.oa(e[n]));return t},Ca:function(e,t){for(var n=0,o=e.length,r=[];n<o;n++){var i=e[n].cloneNode(!0);r.push(t?x.oa(i):i)}return r},va:function(e,t){if(x.a.Tb(e),t)for(var n=0,o=t.length;n<o;n++)e.appendChild(t[n])},Xc:function(e,t){var n=e.nodeType?[e]:e;if(0<n.length){for(var o=n[0],r=o.parentNode,i=0,a=t.length;i<a;i++)r.insertBefore(t[i],o);for(i=0,a=n.length;i<a;i++)x.removeNode(n[i])}},Ua:function(e,t){if(e.length){for(t=8===t.nodeType&&t.parentNode||t;e.length&&e[0].parentNode!==t;)e.splice(0,1);for(;1<e.length&&e[e.length-1].parentNode!==t;)e.length--;if(1<e.length){var n=e[0],o=e[e.length-1];for(e.length=0;n!==o;)e.push(n),n=n.nextSibling;e.push(o)}}return e},Zc:function(e,t){7>y?e.setAttribute("selected",t):e.selected=t},Db:function(e){return null===e||e===a?"":e.trim?e.trim():e.toString().replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")},Ud:function(e,t){return e=e||"",!(t.length>e.length)&&e.substring(0,t.length)===t},vd:function(e,t){if(e===t)return!0;if(11===e.nodeType)return!1;if(t.contains)return t.contains(1!==e.nodeType?e.parentNode:e);if(t.compareDocumentPosition)return 16==(16&t.compareDocumentPosition(e));for(;e&&e!=t;)e=e.parentNode;return!!e},Sb:function(e){return x.a.vd(e,e.ownerDocument.documentElement)},kd:function(e){return!!x.a.Lb(e,x.a.Sb)},R:function(e){return e&&e.tagName&&e.tagName.toLowerCase()},Ac:function(e){return x.onError?function(){try{return e.apply(this,arguments)}catch(e){throw x.onError&&x.onError(e),e}}:e},setTimeout:function(e,t){return setTimeout(x.a.Ac(e),t)},Gc:function(e){setTimeout((function(){throw x.onError&&x.onError(e),e}),0)},B:function(e,t,n){var o=x.a.Ac(n);if(n=g[t],x.options.useOnlyNativeEvents||n||!c)if(n||"function"!=typeof e.addEventListener){if(void 0===e.attachEvent)throw Error("Browser doesn't support addEventListener or attachEvent");var r=function(t){o.call(e,t)},i="on"+t;e.attachEvent(i,r),x.a.K.za(e,(function(){e.detachEvent(i,r)}))}else e.addEventListener(t,o,!1);else m||(m="function"==typeof c(e).on?"on":"bind"),c(e)[m](t,o)},Fb:function(e,t){if(!e||!e.nodeType)throw Error("element must be a DOM node when calling triggerEvent");var n;if(n=!("input"!==x.a.R(e)||!e.type||"click"!=t.toLowerCase())&&("checkbox"==(n=e.type)||"radio"==n),x.options.useOnlyNativeEvents||!c||n)if("function"==typeof l.createEvent){if("function"!=typeof e.dispatchEvent)throw Error("The supplied element doesn't support dispatchEvent");(n=l.createEvent(f[t]||"HTMLEvents")).initEvent(t,!0,!0,s,0,0,0,0,0,!1,!1,!1,!1,0,e),e.dispatchEvent(n)}else if(n&&e.click)e.click();else{if(void 0===e.fireEvent)throw Error("Browser doesn't support triggering events");e.fireEvent("on"+t)}else c(e).trigger(t)},f:function(e){return x.O(e)?e():e},bc:function(e){return x.O(e)?e.v():e},Eb:function(e,t,n){var r;t&&("object"==typeof e.classList?(r=e.classList[n?"add":"remove"],x.a.D(t.match(v),(function(t){r.call(e.classList,t)}))):"string"==typeof e.className.baseVal?o(e.className,"baseVal",t,n):o(e,"className",t,n))},Bb:function(e,t){var n=x.a.f(t);null!==n&&n!==a||(n="");var o=x.h.firstChild(e);!o||3!=o.nodeType||x.h.nextSibling(o)?x.h.va(e,[e.ownerDocument.createTextNode(n)]):o.data=n,x.a.Ad(e)},Yc:function(e,t){if(e.name=t,7>=y)try{var n=e.name.replace(/[&<>'"]/g,(function(e){return"&#"+e.charCodeAt(0)+";"}));e.mergeAttributes(l.createElement("<input name='"+n+"'/>"),!1)}catch(e){}},Ad:function(e){9<=y&&(e=1==e.nodeType?e:e.parentNode).style&&(e.style.zoom=e.style.zoom)},wd:function(e){if(y){var t=e.style.width;e.style.width=0,e.style.width=t}},Pd:function(e,t){e=x.a.f(e),t=x.a.f(t);for(var n=[],o=e;o<=t;o++)n.push(o);return n},la:function(e){for(var t=[],n=0,o=e.length;n<o;n++)t.push(e[n]);return t},Da:function(e){return d?Symbol(e):e},Zd:6===y,$d:7===y,W:y,Lc:function(e,t){for(var n=x.a.la(e.getElementsByTagName("input")).concat(x.a.la(e.getElementsByTagName("textarea"))),o="string"==typeof t?function(e){return e.name===t}:function(e){return t.test(e.name)},r=[],i=n.length-1;0<=i;i--)o(n[i])&&r.push(n[i]);return r},Nd:function(e){return"string"==typeof e&&(e=x.a.Db(e))?p&&p.parse?p.parse(e):new Function("return "+e)():null},hc:function(e,t,n){if(!p||!p.stringify)throw Error("Cannot find JSON.stringify(). Some browsers (e.g., IE < 8) don't support it natively, but you can overcome this by adding a script reference to json2.js, downloadable from http://www.json.org/json2.js");return p.stringify(x.a.f(e),t,n)},Od:function(t,n,o){var r=(o=o||{}).params||{},i=o.includeFields||this.Jc,a=t;if("object"==typeof t&&"form"===x.a.R(t)){a=t.action;for(var s=i.length-1;0<=s;s--)for(var u=x.a.Lc(t,i[s]),c=u.length-1;0<=c;c--)r[u[c].name]=u[c].value}n=x.a.f(n);var p=l.createElement("form");for(var d in p.style.display="none",p.action=a,p.method="post",n)(t=l.createElement("input")).type="hidden",t.name=d,t.value=x.a.hc(x.a.f(n[d])),p.appendChild(t);e(r,(function(e,t){var n=l.createElement("input");n.type="hidden",n.name=e,n.value=t,p.appendChild(n)})),l.body.appendChild(p),o.submitter?o.submitter(p):p.submit(),setTimeout((function(){p.parentNode.removeChild(p)}),0)}}}(),x.b("utils",x.a),x.b("utils.arrayForEach",x.a.D),x.b("utils.arrayFirst",x.a.Lb),x.b("utils.arrayFilter",x.a.jb),x.b("utils.arrayGetDistinctValues",x.a.wc),x.b("utils.arrayIndexOf",x.a.A),x.b("utils.arrayMap",x.a.Mb),x.b("utils.arrayPushAll",x.a.Nb),x.b("utils.arrayRemoveItem",x.a.Pa),x.b("utils.cloneNodes",x.a.Ca),x.b("utils.createSymbolOrString",x.a.Da),x.b("utils.extend",x.a.extend),x.b("utils.fieldsIncludedWithJsonPost",x.a.Jc),x.b("utils.getFormFields",x.a.Lc),x.b("utils.objectMap",x.a.Ga),x.b("utils.peekObservable",x.a.bc),x.b("utils.postJson",x.a.Od),x.b("utils.parseJson",x.a.Nd),x.b("utils.registerEventHandler",x.a.B),x.b("utils.stringifyJson",x.a.hc),x.b("utils.range",x.a.Pd),x.b("utils.toggleDomNodeCssClass",x.a.Eb),x.b("utils.triggerEvent",x.a.Fb),x.b("utils.unwrapObservable",x.a.f),x.b("utils.objectForEach",x.a.P),x.b("utils.addOrRemoveItem",x.a.Na),x.b("utils.setTextContent",x.a.Bb),x.b("unwrap",x.a.f),Function.prototype.bind||(Function.prototype.bind=function(e){var t=this;if(1===arguments.length)return function(){return t.apply(e,arguments)};var n=Array.prototype.slice.call(arguments,1);return function(){var o=n.slice(0);return o.push.apply(o,arguments),t.apply(e,o)}}),x.a.g=new function(){var e,t,n=0,o="__ko__"+(new Date).getTime(),r={};return x.a.W?(e=function(e,t){var i=e[o];if(!i||"null"===i||!r[i]){if(!t)return a;i=e[o]="ko"+n++,r[i]={}}return r[i]},t=function(e){var t=e[o];return!!t&&(delete r[t],e[o]=null,!0)}):(e=function(e,t){var n=e[o];return!n&&t&&(n=e[o]={}),n},t=function(e){return!!e[o]&&(delete e[o],!0)}),{get:function(t,n){var o=e(t,!1);return o&&o[n]},set:function(t,n,o){(t=e(t,o!==a))&&(t[n]=o)},Ub:function(t,n,o){return(t=e(t,!0))[n]||(t[n]=o)},clear:t,Z:function(){return n+++o}}},x.b("utils.domData",x.a.g),x.b("utils.domData.clear",x.a.g.clear),x.a.K=new function(){function e(e,t){var n=x.a.g.get(e,o);return n===a&&t&&(n=[],x.a.g.set(e,o,n)),n}function t(t){if(o=e(t,!1))for(var o=o.slice(0),r=0;r<o.length;r++)o[r](t);x.a.g.clear(t),x.a.K.cleanExternalData(t),i[t.nodeType]&&n(t.childNodes,!0)}function n(e,n){for(var o,r=[],i=0;i<e.length;i++)if((!n||8===e[i].nodeType)&&(t(r[r.length]=o=e[i]),e[i]!==o))for(;i--&&-1==x.a.A(r,e[i]););}var o=x.a.g.Z(),r={1:!0,8:!0,9:!0},i={1:!0,9:!0};return{za:function(t,n){if("function"!=typeof n)throw Error("Callback must be a function");e(t,!0).push(n)},yb:function(t,n){var r=e(t,!1);r&&(x.a.Pa(r,n),0==r.length&&x.a.g.set(t,o,a))},oa:function(e){return x.u.G((function(){r[e.nodeType]&&(t(e),i[e.nodeType]&&n(e.getElementsByTagName("*")))})),e},removeNode:function(e){x.oa(e),e.parentNode&&e.parentNode.removeChild(e)},cleanExternalData:function(e){c&&"function"==typeof c.cleanData&&c.cleanData([e])}}},x.oa=x.a.K.oa,x.removeNode=x.a.K.removeNode,x.b("cleanNode",x.oa),x.b("removeNode",x.removeNode),x.b("utils.domNodeDisposal",x.a.K),x.b("utils.domNodeDisposal.addDisposeCallback",x.a.K.za),x.b("utils.domNodeDisposal.removeDisposeCallback",x.a.K.yb),f=[0,"",""],v={thead:m=[1,"<table>","</table>"],tbody:m,tfoot:m,tr:[2,"<table><tbody>","</tbody></table>"],td:g=[3,"<table><tbody><tr>","</tr></tbody></table>"],th:g,option:y=[1,"<select multiple='multiple'>","</select>"],optgroup:y},b=8>=x.a.W,x.a.ua=function(e,t){var n;if(c){if(c.parseHTML)n=c.parseHTML(e,t)||[];else if((n=c.clean([e],t))&&n[0]){for(var o=n[0];o.parentNode&&11!==o.parentNode.nodeType;)o=o.parentNode;o.parentNode&&o.parentNode.removeChild(o)}}else{(n=t)||(n=l),o=n.parentWindow||n.defaultView||s;var r,i=x.a.Db(e).toLowerCase(),a=n.createElement("div");for(r=(i=i.match(/^(?:\x3c!--.*?--\x3e\s*?)*?<([a-z]+)[\s>]/))&&v[i[1]]||f,i=r[0],r="ignored<div>"+r[1]+e+r[2]+"</div>","function"==typeof o.innerShiv?a.appendChild(o.innerShiv(r)):(b&&n.body.appendChild(a),a.innerHTML=r,b&&a.parentNode.removeChild(a));i--;)a=a.lastChild;n=x.a.la(a.lastChild.childNodes)}return n},x.a.Md=function(e,t){var n=x.a.ua(e,t);return n.length&&n[0].parentElement||x.a.Yb(n)},x.a.fc=function(e,t){if(x.a.Tb(e),null!==(t=x.a.f(t))&&t!==a)if("string"!=typeof t&&(t=t.toString()),c)c(e).html(t);else for(var n=x.a.ua(t,e.ownerDocument),o=0;o<n.length;o++)e.appendChild(n[o])},x.b("utils.parseHtmlFragment",x.a.ua),x.b("utils.setHtml",x.a.fc),x.aa=function(){var e={};return{Xb:function(t){if("function"!=typeof t)throw Error("You can only pass a function to ko.memoization.memoize()");var n=(4294967296*(1+Math.random())|0).toString(16).substring(1)+(4294967296*(1+Math.random())|0).toString(16).substring(1);return e[n]=t,"\x3c!--[ko_memo:"+n+"]--\x3e"},bd:function(t,n){var o=e[t];if(o===a)throw Error("Couldn't find any memo with ID "+t+". Perhaps it's already been unmemoized.");try{return o.apply(null,n||[]),!0}finally{delete e[t]}},cd:function(e,t){var n=[];!function e(t,n){if(t)if(8==t.nodeType)null!=(o=x.aa.Uc(t.nodeValue))&&n.push({ud:t,Kd:o});else if(1==t.nodeType)for(var o=0,r=t.childNodes,i=r.length;o<i;o++)e(r[o],n)}(e,n);for(var o=0,r=n.length;o<r;o++){var i=n[o].ud,a=[i];t&&x.a.Nb(a,t),x.aa.bd(n[o].Kd,a),i.nodeValue="",i.parentNode&&i.parentNode.removeChild(i)}},Uc:function(e){return(e=e.match(/^\[ko_memo\:(.*?)\]$/))?e[1]:null}}}(),x.b("memoization",x.aa),x.b("memoization.memoize",x.aa.Xb),x.b("memoization.unmemoize",x.aa.bd),x.b("memoization.parseMemoText",x.aa.Uc),x.b("memoization.unmemoizeDomNodeAndDescendants",x.aa.cd),x.na=function(){function e(){if(o)for(var e,t=o,r=0;i<o;)if(e=n[i++]){if(i>t){if(5e3<=++r){i=o,x.a.Gc(Error("'Too much recursion' after processing "+r+" task groups."));break}t=o}try{e()}catch(e){x.a.Gc(e)}}}function t(){e(),i=o=n.length=0}var n=[],o=0,r=1,i=0;return{scheduler:s.MutationObserver?function(e){var t=l.createElement("div");return new MutationObserver(e).observe(t,{attributes:!0}),function(){t.classList.toggle("foo")}}(t):l&&"onreadystatechange"in l.createElement("script")?function(e){var t=l.createElement("script");t.onreadystatechange=function(){t.onreadystatechange=null,l.documentElement.removeChild(t),t=null,e()},l.documentElement.appendChild(t)}:function(e){setTimeout(e,0)},zb:function(e){return o||x.na.scheduler(t),n[o++]=e,r++},cancel:function(e){(e-=r-o)>=i&&e<o&&(n[e]=null)},resetForTesting:function(){var e=o-i;return i=o=n.length=0,e},Sd:e}}(),x.b("tasks",x.na),x.b("tasks.schedule",x.na.zb),x.b("tasks.runEarly",x.na.Sd),x.Ta={throttle:function(e,t){e.throttleEvaluation=t;var n=null;return x.$({read:e,write:function(o){clearTimeout(n),n=x.a.setTimeout((function(){e(o)}),t)}})},rateLimit:function(e,t){var n,i,a;"number"==typeof t?n=t:(n=t.timeout,i=t.method),e.Hb=!1,a="function"==typeof i?i:"notifyWhenChangesStop"==i?r:o,e.ub((function(e){return a(e,n,t)}))},deferred:function(e,t){if(!0!==t)throw Error("The 'deferred' extender only accepts the value 'true', because it is not supported to turn deferral off once enabled.");e.Hb||(e.Hb=!0,e.ub((function(t){var n,o=!1;return function(){if(!o){x.na.cancel(n),n=x.na.zb(t);try{o=!0,e.notifySubscribers(a,"dirty")}finally{o=!1}}}})))},notify:function(e,t){e.equalityComparer="always"==t?null:n}};var C={undefined:1,boolean:1,number:1,string:1};x.b("extenders",x.Ta),x.ic=function(e,t,n){this.da=e,this.lc=t,this.mc=n,this.Ib=!1,this.fb=this.Jb=null,x.L(this,"dispose",this.s),x.L(this,"disposeWhenNodeIsRemoved",this.l)},x.ic.prototype.s=function(){this.Ib||(this.fb&&x.a.K.yb(this.Jb,this.fb),this.Ib=!0,this.mc(),this.da=this.lc=this.mc=this.Jb=this.fb=null)},x.ic.prototype.l=function(e){this.Jb=e,x.a.K.za(e,this.fb=this.s.bind(this))},x.T=function(){x.a.Ab(this,w),w.qb(this)};var w={qb:function(e){e.U={change:[]},e.sc=1},subscribe:function(e,t,n){var o=this;n=n||"change";var r=new x.ic(o,t?e.bind(t):e,(function(){x.a.Pa(o.U[n],r),o.hb&&o.hb(n)}));return o.Qa&&o.Qa(n),o.U[n]||(o.U[n]=[]),o.U[n].push(r),r},notifySubscribers:function(e,t){if("change"===(t=t||"change")&&this.Gb(),this.Wa(t)){var n="change"===t&&this.ed||this.U[t].slice(0);try{x.u.xc();for(var o,r=0;o=n[r];++r)o.Ib||o.lc(e)}finally{x.u.end()}}},ob:function(){return this.sc},Dd:function(e){return this.ob()!==e},Gb:function(){++this.sc},ub:function(e){var t,n,o,r,a,s=this,l=x.O(s);s.gb||(s.gb=s.notifySubscribers,s.notifySubscribers=i);var u=e((function(){s.Ja=!1,l&&r===s&&(r=s.nc?s.nc():s());var e=n||a&&s.sb(o,r);a=n=t=!1,e&&s.gb(o=r)}));s.qc=function(e,n){n&&s.Ja||(a=!n),s.ed=s.U.change.slice(0),s.Ja=t=!0,r=e,u()},s.pc=function(e){t||(o=e,s.gb(e,"beforeChange"))},s.rc=function(){a=!0},s.gd=function(){s.sb(o,s.v(!0))&&(n=!0)}},Wa:function(e){return this.U[e]&&this.U[e].length},Bd:function(e){if(e)return this.U[e]&&this.U[e].length||0;var t=0;return x.a.P(this.U,(function(e,n){"dirty"!==e&&(t+=n.length)})),t},sb:function(e,t){return!this.equalityComparer||!this.equalityComparer(e,t)},toString:function(){return"[object Object]"},extend:function(e){var t=this;return e&&x.a.P(e,(function(e,n){var o=x.Ta[e];"function"==typeof o&&(t=o(t,n)||t)})),t}};x.L(w,"init",w.qb),x.L(w,"subscribe",w.subscribe),x.L(w,"extend",w.extend),x.L(w,"getSubscriptionsCount",w.Bd),x.a.Ba&&x.a.setPrototypeOf(w,Function.prototype),x.T.fn=w,x.Qc=function(e){return null!=e&&"function"==typeof e.subscribe&&"function"==typeof e.notifySubscribers},x.b("subscribable",x.T),x.b("isSubscribable",x.Qc),x.S=x.u=function(){function e(e){o.push(n),n=e}function t(){n=o.pop()}var n,o=[],r=0;return{xc:e,end:t,cc:function(e){if(n){if(!x.Qc(e))throw Error("Only subscribable things can act as dependencies");n.od.call(n.pd,e,e.fd||(e.fd=++r))}},G:function(n,o,r){try{return e(),n.apply(o,r||[])}finally{t()}},qa:function(){if(n)return n.o.qa()},Va:function(){if(n)return n.o.Va()},Ya:function(){if(n)return n.Ya},o:function(){if(n)return n.o}}}(),x.b("computedContext",x.S),x.b("computedContext.getDependenciesCount",x.S.qa),x.b("computedContext.getDependencies",x.S.Va),x.b("computedContext.isInitial",x.S.Ya),x.b("computedContext.registerDependency",x.S.cc),x.b("ignoreDependencies",x.Yd=x.u.G);var P=x.a.Da("_latestValue");x.ta=function(e){function t(){return 0<arguments.length?(t.sb(t[P],arguments[0])&&(t.ya(),t[P]=arguments[0],t.xa()),this):(x.u.cc(t),t[P])}return t[P]=e,x.a.Ba||x.a.extend(t,x.T.fn),x.T.fn.qb(t),x.a.Ab(t,_),x.options.deferUpdates&&x.Ta.deferred(t,!0),t};var _={equalityComparer:n,v:function(){return this[P]},xa:function(){this.notifySubscribers(this[P],"spectate"),this.notifySubscribers(this[P])},ya:function(){this.notifySubscribers(this[P],"beforeChange")}};x.a.Ba&&x.a.setPrototypeOf(_,x.T.fn);var V=x.ta.Ma="__ko_proto__";_[V]=x.ta,x.O=function(e){if((e="function"==typeof e&&e[V])&&e!==_[V]&&e!==x.o.fn[V])throw Error("Invalid object that looks like an observable; possibly from another Knockout instance");return!!e},x.Za=function(e){return"function"==typeof e&&(e[V]===_[V]||e[V]===x.o.fn[V]&&e.Nc)},x.b("observable",x.ta),x.b("isObservable",x.O),x.b("isWriteableObservable",x.Za),x.b("isWritableObservable",x.Za),x.b("observable.fn",_),x.L(_,"peek",_.v),x.L(_,"valueHasMutated",_.xa),x.L(_,"valueWillMutate",_.ya),x.Ha=function(e){if("object"!=typeof(e=e||[])||!("length"in e))throw Error("The argument passed when initializing an observable array must be an array, or null, or undefined.");return e=x.ta(e),x.a.Ab(e,x.Ha.fn),e.extend({trackArrayChanges:!0})},x.Ha.fn={remove:function(e){for(var t=this.v(),n=[],o="function"!=typeof e||x.O(e)?function(t){return t===e}:e,r=0;r<t.length;r++){var i=t[r];if(o(i)){if(0===n.length&&this.ya(),t[r]!==i)throw Error("Array modified during remove; cannot remove item");n.push(i),t.splice(r,1),r--}}return n.length&&this.xa(),n},removeAll:function(e){if(e===a){var t=this.v(),n=t.slice(0);return this.ya(),t.splice(0,t.length),this.xa(),n}return e?this.remove((function(t){return 0<=x.a.A(e,t)})):[]},destroy:function(e){var t=this.v(),n="function"!=typeof e||x.O(e)?function(t){return t===e}:e;this.ya();for(var o=t.length-1;0<=o;o--){var r=t[o];n(r)&&(r._destroy=!0)}this.xa()},destroyAll:function(e){return e===a?this.destroy((function(){return!0})):e?this.destroy((function(t){return 0<=x.a.A(e,t)})):[]},indexOf:function(e){var t=this();return x.a.A(t,e)},replace:function(e,t){var n=this.indexOf(e);0<=n&&(this.ya(),this.v()[n]=t,this.xa())},sorted:function(e){var t=this().slice(0);return e?t.sort(e):t.sort()},reversed:function(){return this().slice(0).reverse()}},x.a.Ba&&x.a.setPrototypeOf(x.Ha.fn,x.ta.fn),x.a.D("pop push reverse shift sort splice unshift".split(" "),(function(e){x.Ha.fn[e]=function(){var t=this.v();this.ya(),this.zc(t,e,arguments);var n=t[e].apply(t,arguments);return this.xa(),n===t?this:n}})),x.a.D(["slice"],(function(e){x.Ha.fn[e]=function(){var t=this();return t[e].apply(t,arguments)}})),x.Pc=function(e){return x.O(e)&&"function"==typeof e.remove&&"function"==typeof e.push},x.b("observableArray",x.Ha),x.b("isObservableArray",x.Pc),x.Ta.trackArrayChanges=function(e,t){function n(){function t(){if(u){var t,n=[].concat(e.v()||[]);e.Wa("arrayChange")&&((!l||1<u)&&(l=x.a.Pb(i,n,e.Ob)),t=l),i=n,l=null,u=0,t&&t.length&&e.notifySubscribers(t,"arrayChange")}}s?t():(s=!0,r=e.subscribe((function(){++u}),null,"spectate"),i=[].concat(e.v()||[]),l=null,o=e.subscribe(t))}if(e.Ob={},t&&"object"==typeof t&&x.a.extend(e.Ob,t),e.Ob.sparse=!0,!e.zc){var o,r,i,s=!1,l=null,u=0,c=e.Qa,p=e.hb;e.Qa=function(t){c&&c.call(e,t),"arrayChange"===t&&n()},e.hb=function(t){p&&p.call(e,t),"arrayChange"!==t||e.Wa("arrayChange")||(o&&o.s(),r&&r.s(),r=o=null,s=!1,i=a)},e.zc=function(e,t,n){function o(e,t,n){return r[r.length]={status:e,value:t,index:n}}if(s&&!u){var r=[],i=e.length,a=n.length,c=0;switch(t){case"push":c=i;case"unshift":for(t=0;t<a;t++)o("added",n[t],c+t);break;case"pop":c=i-1;case"shift":i&&o("deleted",e[c],c);break;case"splice":t=Math.min(Math.max(0,0>n[0]?i+n[0]:n[0]),i),i=1===a?i:Math.min(t+(n[1]||0),i),a=t+a-2,c=Math.max(i,a);for(var p=[],d=[],h=2;t<c;++t,++h)t<i&&d.push(o("deleted",e[t],t)),t<a&&p.push(o("added",n[h],t));x.a.Kc(d,p);break;default:return}l=r}}}};var T=x.a.Da("_state");x.o=x.$=function(e,t,n){function o(){if(0<arguments.length){if("function"!=typeof r)throw Error("Cannot write a value to a ko.computed unless you specify a 'write' option. If you wish to read the current value, don't pass any parameters.");return r.apply(i.nb,arguments),this}return i.ra||x.u.cc(o),(i.ka||i.J&&o.Xa())&&o.ha(),i.X}if("object"==typeof e?n=e:(n=n||{},e&&(n.read=e)),"function"!=typeof n.read)throw Error("Pass a function that returns the value of the ko.computed");var r=n.write,i={X:a,sa:!0,ka:!0,rb:!1,jc:!1,ra:!1,wb:!1,J:!1,Wc:n.read,nb:t||n.owner,l:n.disposeWhenNodeIsRemoved||n.l||null,Sa:n.disposeWhen||n.Sa,Rb:null,I:{},V:0,Ic:null};return o[T]=i,o.Nc="function"==typeof r,x.a.Ba||x.a.extend(o,x.T.fn),x.T.fn.qb(o),x.a.Ab(o,k),n.pure?(i.wb=!0,i.J=!0,x.a.extend(o,S)):n.deferEvaluation&&x.a.extend(o,O),x.options.deferUpdates&&x.Ta.deferred(o,!0),i.l&&(i.jc=!0,i.l.nodeType||(i.l=null)),i.J||n.deferEvaluation||o.ha(),i.l&&o.ja()&&x.a.K.za(i.l,i.Rb=function(){o.s()}),o};var k={equalityComparer:n,qa:function(){return this[T].V},Va:function(){var e=[];return x.a.P(this[T].I,(function(t,n){e[n.Ka]=n.da})),e},Vb:function(e){if(!this[T].V)return!1;var t=this.Va();return-1!==x.a.A(t,e)||!!x.a.Lb(t,(function(t){return t.Vb&&t.Vb(e)}))},uc:function(e,t,n){if(this[T].wb&&t===this)throw Error("A 'pure' computed must not be called recursively");this[T].I[e]=n,n.Ka=this[T].V++,n.La=t.ob()},Xa:function(){var e,t,n=this[T].I;for(e in n)if(Object.prototype.hasOwnProperty.call(n,e)&&(t=n[e],this.Ia&&t.da.Ja||t.da.Dd(t.La)))return!0},Jd:function(){this.Ia&&!this[T].rb&&this.Ia(!1)},ja:function(){var e=this[T];return e.ka||0<e.V},Rd:function(){this.Ja?this[T].ka&&(this[T].sa=!0):this.Hc()},$c:function(e){if(e.Hb){var t=e.subscribe(this.Jd,this,"dirty"),n=e.subscribe(this.Rd,this);return{da:e,s:function(){t.s(),n.s()}}}return e.subscribe(this.Hc,this)},Hc:function(){var e=this,t=e.throttleEvaluation;t&&0<=t?(clearTimeout(this[T].Ic),this[T].Ic=x.a.setTimeout((function(){e.ha(!0)}),t)):e.Ia?e.Ia(!0):e.ha(!0)},ha:function(e){var t=this[T],n=t.Sa,o=!1;if(!t.rb&&!t.ra){if(t.l&&!x.a.Sb(t.l)||n&&n()){if(!t.jc)return void this.s()}else t.jc=!1;t.rb=!0;try{o=this.zd(e)}finally{t.rb=!1}return o}},zd:function(e){var t=this[T],n=!1,o=t.wb?a:!t.V;n={qd:this,mb:t.I,Qb:t.V},x.u.xc({pd:n,od:h,o:this,Ya:o}),t.I={},t.V=0;var r=this.yd(t,n);return t.V?n=this.sb(t.X,r):(this.s(),n=!0),n&&(t.J?this.Gb():this.notifySubscribers(t.X,"beforeChange"),t.X=r,this.notifySubscribers(t.X,"spectate"),!t.J&&e&&this.notifySubscribers(t.X),this.rc&&this.rc()),o&&this.notifySubscribers(t.X,"awake"),n},yd:function(e,t){try{var n=e.Wc;return e.nb?n.call(e.nb):n()}finally{x.u.end(),t.Qb&&!e.J&&x.a.P(t.mb,d),e.sa=e.ka=!1}},v:function(e){var t=this[T];return(t.ka&&(e||!t.V)||t.J&&this.Xa())&&this.ha(),t.X},ub:function(e){x.T.fn.ub.call(this,e),this.nc=function(){return this[T].J||(this[T].sa?this.ha():this[T].ka=!1),this[T].X},this.Ia=function(e){this.pc(this[T].X),this[T].ka=!0,e&&(this[T].sa=!0),this.qc(this,!e)}},s:function(){var e=this[T];!e.J&&e.I&&x.a.P(e.I,(function(e,t){t.s&&t.s()})),e.l&&e.Rb&&x.a.K.yb(e.l,e.Rb),e.I=a,e.V=0,e.ra=!0,e.sa=!1,e.ka=!1,e.J=!1,e.l=a,e.Sa=a,e.Wc=a,this.Nc||(e.nb=a)}},S={Qa:function(e){var t=this,n=t[T];if(!n.ra&&n.J&&"change"==e){if(n.J=!1,n.sa||t.Xa())n.I=null,n.V=0,t.ha()&&t.Gb();else{var o=[];x.a.P(n.I,(function(e,t){o[t.Ka]=e})),x.a.D(o,(function(e,o){var r=n.I[e],i=t.$c(r.da);i.Ka=o,i.La=r.La,n.I[e]=i})),t.Xa()&&t.ha()&&t.Gb()}n.ra||t.notifySubscribers(n.X,"awake")}},hb:function(e){var t=this[T];t.ra||"change"!=e||this.Wa("change")||(x.a.P(t.I,(function(e,n){n.s&&(t.I[e]={da:n.da,Ka:n.Ka,La:n.La},n.s())})),t.J=!0,this.notifySubscribers(a,"asleep"))},ob:function(){var e=this[T];return e.J&&(e.sa||this.Xa())&&this.ha(),x.T.fn.ob.call(this)}},O={Qa:function(e){"change"!=e&&"beforeChange"!=e||this.v()}};x.a.Ba&&x.a.setPrototypeOf(k,x.T.fn);var E=x.ta.Ma;k[E]=x.o,x.Oc=function(e){return"function"==typeof e&&e[E]===k[E]},x.Fd=function(e){return x.Oc(e)&&e[T]&&e[T].wb},x.b("computed",x.o),x.b("dependentObservable",x.o),x.b("isComputed",x.Oc),x.b("isPureComputed",x.Fd),x.b("computed.fn",k),x.L(k,"peek",k.v),x.L(k,"dispose",k.s),x.L(k,"isActive",k.ja),x.L(k,"getDependenciesCount",k.qa),x.L(k,"getDependencies",k.Va),x.xb=function(e,t){return"function"==typeof e?x.o(e,t,{pure:!0}):((e=x.a.extend({},e)).pure=!0,x.o(e,t))},x.b("pureComputed",x.xb),function(){function e(n,o,r){if(r=r||new t,"object"!=typeof(n=o(n))||null===n||n===a||n instanceof RegExp||n instanceof Date||n instanceof String||n instanceof Number||n instanceof Boolean)return n;var i=n instanceof Array?[]:{};return r.save(n,i),function(e,t){if(e instanceof Array){for(var n=0;n<e.length;n++)t(n);"function"==typeof e.toJSON&&t("toJSON")}else for(n in e)t(n)}(n,(function(t){var s=o(n[t]);switch(typeof s){case"boolean":case"number":case"string":case"function":i[t]=s;break;case"object":case"undefined":var l=r.get(s);i[t]=l!==a?l:e(s,o,r)}})),i}function t(){this.keys=[],this.values=[]}x.ad=function(t){if(0==arguments.length)throw Error("When calling ko.toJS, pass the object you want to convert.");return e(t,(function(e){for(var t=0;x.O(e)&&10>t;t++)e=e();return e}))},x.toJSON=function(e,t,n){return e=x.ad(e),x.a.hc(e,t,n)},t.prototype={constructor:t,save:function(e,t){var n=x.a.A(this.keys,e);0<=n?this.values[n]=t:(this.keys.push(e),this.values.push(t))},get:function(e){return 0<=(e=x.a.A(this.keys,e))?this.values[e]:a}}}(),x.b("toJS",x.ad),x.b("toJSON",x.toJSON),x.Wd=function(e,t,n){function o(t){var o=x.xb(e,n).extend({ma:"always"}),r=o.subscribe((function(e){e&&(r.s(),t(e))}));return o.notifySubscribers(o.v()),r}return"function"!=typeof Promise||t?o(t.bind(n)):new Promise(o)},x.b("when",x.Wd),x.w={M:function(e){switch(x.a.R(e)){case"option":return!0===e.__ko__hasDomDataOptionValue__?x.a.g.get(e,x.c.options.$b):7>=x.a.W?e.getAttributeNode("value")&&e.getAttributeNode("value").specified?e.value:e.text:e.value;case"select":return 0<=e.selectedIndex?x.w.M(e.options[e.selectedIndex]):a;default:return e.value}},cb:function(e,t,n){switch(x.a.R(e)){case"option":"string"==typeof t?(x.a.g.set(e,x.c.options.$b,a),"__ko__hasDomDataOptionValue__"in e&&delete e.__ko__hasDomDataOptionValue__,e.value=t):(x.a.g.set(e,x.c.options.$b,t),e.__ko__hasDomDataOptionValue__=!0,e.value="number"==typeof t?t:"");break;case"select":""!==t&&null!==t||(t=a);for(var o,r=-1,i=0,s=e.options.length;i<s;++i)if((o=x.w.M(e.options[i]))==t||""===o&&t===a){r=i;break}(n||0<=r||t===a&&1<e.size)&&(e.selectedIndex=r,6===x.a.W&&x.a.setTimeout((function(){e.selectedIndex=r}),0));break;default:null!==t&&t!==a||(t=""),e.value=t}}},x.b("selectExtensions",x.w),x.b("selectExtensions.readValue",x.w.M),x.b("selectExtensions.writeValue",x.w.cb),x.m=function(){function e(e){123===(e=x.a.Db(e)).charCodeAt(0)&&(e=e.slice(1,-1));var t,n=[],a=(e+="\n,").match(o),s=[],l=0;if(1<a.length){for(var u,c=0;u=a[c];++c){var p=u.charCodeAt(0);if(44===p){if(0>=l){n.push(t&&s.length?{key:t,value:s.join("")}:{unknown:t||s.join("")}),t=l=0,s=[];continue}}else if(58===p){if(!l&&!t&&1===s.length){t=s.pop();continue}}else{if(47===p&&1<u.length&&(47===u.charCodeAt(1)||42===u.charCodeAt(1)))continue;47===p&&c&&1<u.length?(p=a[c-1].match(r))&&!i[p[0]]&&(a=(e=e.substr(e.indexOf(u)+1)).match(o),c=-1,u="/"):40===p||123===p||91===p?++l:41===p||125===p||93===p?--l:t||s.length||34!==p&&39!==p||(u=u.slice(1,-1))}s.push(u)}if(0<l)throw Error("Unbalanced parentheses, braces, or brackets")}return n}var t=["true","false","null","undefined"],n=/^(?:[$_a-z][$\w]*|(.+)(\.\s*[$_a-z][$\w]*|\[.+\]))$/i,o=RegExp("\"(?:\\\\.|[^\"])*\"|'(?:\\\\.|[^'])*'|`(?:\\\\.|[^`])*`|/\\*(?:[^*]|\\*+[^*/])*\\*+/|//.*\n|/(?:\\\\.|[^/])+/w*|[^\\s:,/][^,\"'`{}()/:[\\]]*[^\\s,\"'`{}()/:[\\]]|[^\\s]","g"),r=/[\])"'A-Za-z0-9_$]+$/,i={in:1,return:1,typeof:1},a={};return{Ra:[],wa:a,ac:e,vb:function(o,r){function i(e,o){var r;if(!c){var p=x.getBindingHandler(e);if(p&&p.preprocess&&!(o=p.preprocess(o,e,i)))return;(p=a[e])&&(r=o,0<=x.a.A(t,r)?r=!1:(p=r.match(n),r=null!==p&&(p[1]?"Object("+p[1]+")"+p[2]:r)),p=r),p&&l.push("'"+("string"==typeof a[e]?a[e]:e)+"':function(_z){"+r+"=_z}")}u&&(o="function(){return "+o+" }"),s.push("'"+e+"':"+o)}var s=[],l=[],u=(r=r||{}).valueAccessors,c=r.bindingParams,p="string"==typeof o?e(o):o;return x.a.D(p,(function(e){i(e.key||e.unknown,e.value)})),l.length&&i("_ko_property_writers","{"+l.join(",")+" }"),s.join(",")},Id:function(e,t){for(var n=0;n<e.length;n++)if(e[n].key==t)return!0;return!1},eb:function(e,t,n,o,r){e&&x.O(e)?!x.Za(e)||r&&e.v()===o||e(o):(e=t.get("_ko_property_writers"))&&e[n]&&e[n](o)}}}(),x.b("expressionRewriting",x.m),x.b("expressionRewriting.bindingRewriteValidators",x.m.Ra),x.b("expressionRewriting.parseObjectLiteral",x.m.ac),x.b("expressionRewriting.preProcessBindings",x.m.vb),x.b("expressionRewriting._twoWayBindings",x.m.wa),x.b("jsonExpressionRewriting",x.m),x.b("jsonExpressionRewriting.insertPropertyAccessorsIntoJson",x.m.vb),function(){function e(e){return 8==e.nodeType&&i.test(r?e.text:e.nodeValue)}function t(e){return 8==e.nodeType&&a.test(r?e.text:e.nodeValue)}function n(n,o){for(var r=n,i=1,a=[];r=r.nextSibling;){if(t(r)&&(x.a.g.set(r,u,!0),0==--i))return a;a.push(r),e(r)&&i++}if(!o)throw Error("Cannot find closing comment tag to match: "+n.nodeValue);return null}function o(e,t){var o=n(e,t);return o?0<o.length?o[o.length-1].nextSibling:e.nextSibling:null}var r=l&&"\x3c!--test--\x3e"===l.createComment("test").text,i=r?/^\x3c!--\s*ko(?:\s+([\s\S]+))?\s*--\x3e$/:/^\s*ko(?:\s+([\s\S]+))?\s*$/,a=r?/^\x3c!--\s*\/ko\s*--\x3e$/:/^\s*\/ko\s*$/,s={ul:!0,ol:!0},u="__ko_matchedEndComment__";x.h={ea:{},childNodes:function(t){return e(t)?n(t):t.childNodes},Ea:function(t){if(e(t))for(var n=0,o=(t=x.h.childNodes(t)).length;n<o;n++)x.removeNode(t[n]);else x.a.Tb(t)},va:function(t,n){if(e(t)){x.h.Ea(t);for(var o=t.nextSibling,r=0,i=n.length;r<i;r++)o.parentNode.insertBefore(n[r],o)}else x.a.va(t,n)},Vc:function(t,n){var o;e(t)?(o=t.nextSibling,t=t.parentNode):o=t.firstChild,o?n!==o&&t.insertBefore(n,o):t.appendChild(n)},Wb:function(t,n,o){o?(o=o.nextSibling,e(t)&&(t=t.parentNode),o?n!==o&&t.insertBefore(n,o):t.appendChild(n)):x.h.Vc(t,n)},firstChild:function(n){if(e(n))return!n.nextSibling||t(n.nextSibling)?null:n.nextSibling;if(n.firstChild&&t(n.firstChild))throw Error("Found invalid end comment, as the first child of "+n);return n.firstChild},nextSibling:function(n){if(e(n)&&(n=o(n)),n.nextSibling&&t(n.nextSibling)){var r=n.nextSibling;if(t(r)&&!x.a.g.get(r,u))throw Error("Found end comment without a matching opening comment, as child of "+n);return null}return n.nextSibling},Cd:e,Vd:function(e){return(e=(r?e.text:e.nodeValue).match(i))?e[1]:null},Sc:function(n){if(s[x.a.R(n)]){var r=n.firstChild;if(r)do{if(1===r.nodeType){var i,a=null;if(i=r.firstChild)do{if(a)a.push(i);else if(e(i)){var l=o(i,!0);l?i=l:a=[i]}else t(i)&&(a=[i])}while(i=i.nextSibling);if(i=a)for(a=r.nextSibling,l=0;l<i.length;l++)a?n.insertBefore(i[l],a):n.appendChild(i[l])}}while(r=r.nextSibling)}}}}(),x.b("virtualElements",x.h),x.b("virtualElements.allowedBindings",x.h.ea),x.b("virtualElements.emptyNode",x.h.Ea),x.b("virtualElements.insertAfter",x.h.Wb),x.b("virtualElements.prepend",x.h.Vc),x.b("virtualElements.setDomNodeChildren",x.h.va),x.ga=function(){this.nd={}},x.a.extend(x.ga.prototype,{nodeHasBindings:function(e){switch(e.nodeType){case 1:return null!=e.getAttribute("data-bind")||x.j.getComponentNameForNode(e);case 8:return x.h.Cd(e);default:return!1}},getBindings:function(e,t){var n=(n=this.getBindingsString(e,t))?this.parseBindingsString(n,t,e):null;return x.j.tc(n,e,t,!1)},getBindingAccessors:function(e,t){var n=(n=this.getBindingsString(e,t))?this.parseBindingsString(n,t,e,{valueAccessors:!0}):null;return x.j.tc(n,e,t,!0)},getBindingsString:function(e){switch(e.nodeType){case 1:return e.getAttribute("data-bind");case 8:return x.h.Vd(e);default:return null}},parseBindingsString:function(e,t,n,o){try{var r,i=this.nd,a=e+(o&&o.valueAccessors||"");if(!(r=i[a])){var s,l="with($context){with($data||{}){return{"+x.m.vb(e,o)+"}}}";s=new Function("$context","$element",l),r=i[a]=s}return r(t,n)}catch(t){throw t.message="Unable to parse bindings.\nBindings value: "+e+"\nMessage: "+t.message,t}}}),x.ga.instance=new x.ga,x.b("bindingProvider",x.ga),function(){function e(e){var t=(e=x.a.g.get(e,C))&&e.N;t&&(e.N=null,t.Tc())}function t(t,n,o){this.node=t,this.yc=n,this.kb=[],this.H=!1,n.N||x.a.K.za(t,e),o&&o.N&&(o.N.kb.push(t),this.Kb=o)}function n(e){return function(){return e}}function o(e){return e()}function r(e){return x.a.Ga(x.u.G(e),(function(t,n){return function(){return e()[n]}}))}function i(e,t,o){return"function"==typeof e?r(e.bind(null,t,o)):x.a.Ga(e,n)}function u(e,t){return r(this.getBindings.bind(this,e,t))}function p(e,t){var n=x.h.firstChild(t);if(n){var o,r=x.ga.instance,i=r.preprocessNode;if(i){for(;o=n;)n=x.h.nextSibling(o),i.call(r,o);n=x.h.firstChild(t)}for(;o=n;)n=x.h.nextSibling(o),d(e,o)}x.i.ma(t,x.i.H)}function d(e,t){var n=e,o=1===t.nodeType;o&&x.h.Sc(t),(o||x.ga.instance.nodeHasBindings(t))&&(n=h(t,null,e).bindingContextForDescendants),n&&!v[x.a.R(t)]&&p(n,t)}function h(e,t,n){var r,i=x.a.g.Ub(e,C,{}),s=i.hd;if(!t){if(s)throw Error("You cannot apply bindings multiple times to the same element.");i.hd=!0}if(s||(i.context=n),i.Zb||(i.Zb={}),t&&"function"!=typeof t)r=t;else{var l=x.ga.instance,c=l.getBindingAccessors||u,p=x.$((function(){return(r=t?t(n,e):c.call(l,e,n))&&(n[m]&&n[m](),n[y]&&n[y]()),r}),null,{l:e});r&&p.ja()||(p=null)}var d,h=n;if(r){var f=function(){return x.a.Ga(p?p():r,o)},g=p?function(e){return function(){return o(p()[e])}}:function(e){return r[e]};f.get=function(e){return r[e]&&o(g(e))},f.has=function(e){return e in r},x.i.H in r&&x.i.subscribe(e,x.i.H,(function(){var t=(0,r[x.i.H])();if(t){var n=x.h.childNodes(e);n.length&&t(n,x.Ec(n[0]))}})),x.i.pa in r&&(h=x.i.Cb(e,n),x.i.subscribe(e,x.i.pa,(function(){var t=(0,r[x.i.pa])();t&&x.h.firstChild(e)&&t(e)}))),i=function(e){var t=[],n={},o=[];return x.a.P(e,(function r(i){if(!n[i]){var a=x.getBindingHandler(i);a&&(a.after&&(o.push(i),x.a.D(a.after,(function(t){if(e[t]){if(-1!==x.a.A(o,t))throw Error("Cannot combine the following bindings, because they have a cyclic dependency: "+o.join(", "));r(t)}})),o.length--),t.push({key:i,Mc:a})),n[i]=!0}})),t}(r),x.a.D(i,(function(t){var n=t.Mc.init,o=t.Mc.update,i=t.key;if(8===e.nodeType&&!x.h.ea[i])throw Error("The binding '"+i+"' cannot be used with virtual elements");try{"function"==typeof n&&x.u.G((function(){var t=n(e,g(i),f,h.$data,h);if(t&&t.controlsDescendantBindings){if(d!==a)throw Error("Multiple bindings ("+d+" and "+i+") are trying to control descendant bindings of the same element. You cannot use these bindings together on the same element.");d=i}})),"function"==typeof o&&x.$((function(){o(e,g(i),f,h.$data,h)}),null,{l:e})}catch(e){throw e.message='Unable to process binding "'+i+": "+r[i]+'"\nMessage: '+e.message,e}}))}return{shouldBindDescendants:i=d===a,bindingContextForDescendants:i&&h}}function f(e,t){return e&&e instanceof x.fa?e:new x.fa(e,a,a,t)}var m=x.a.Da("_subscribable"),g=x.a.Da("_ancestorBindingInfo"),y=x.a.Da("_dataDependency");x.c={};var v={script:!0,textarea:!0,template:!0};x.getBindingHandler=function(e){return x.c[e]};var b={};x.fa=function(e,t,n,o,r){function i(){var e=p?c():c,r=x.a.f(e);return t?(x.a.extend(l,t),g in t&&(l[g]=t[g])):(l.$parents=[],l.$root=r,l.ko=x),l[m]=s,u?r=l.$data:(l.$rawData=e,l.$data=r),n&&(l[n]=r),o&&o(l,t,r),t&&t[m]&&!x.S.o().Vb(t[m])&&t[m](),d&&(l[y]=d),l.$data}var s,l=this,u=e===b,c=u?a:e,p="function"==typeof c&&!x.O(c),d=r&&r.dataDependency;r&&r.exportDependencies?i():((s=x.xb(i)).v(),s.ja()?s.equalityComparer=null:l[m]=a)},x.fa.prototype.createChildContext=function(e,t,n,o){if(!o&&t&&"object"==typeof t&&(t=(o=t).as,n=o.extend),t&&o&&o.noChildContext){var r="function"==typeof e&&!x.O(e);return new x.fa(b,this,null,(function(o){n&&n(o),o[t]=r?e():e}),o)}return new x.fa(e,this,t,(function(e,t){e.$parentContext=t,e.$parent=t.$data,e.$parents=(t.$parents||[]).slice(0),e.$parents.unshift(e.$parent),n&&n(e)}),o)},x.fa.prototype.extend=function(e,t){return new x.fa(b,this,null,(function(t){x.a.extend(t,"function"==typeof e?e(t):e)}),t)};var C=x.a.g.Z();t.prototype.Tc=function(){this.Kb&&this.Kb.N&&this.Kb.N.sd(this.node)},t.prototype.sd=function(e){x.a.Pa(this.kb,e),!this.kb.length&&this.H&&this.Cc()},t.prototype.Cc=function(){this.H=!0,this.yc.N&&!this.kb.length&&(this.yc.N=null,x.a.K.yb(this.node,e),x.i.ma(this.node,x.i.pa),this.Tc())},x.i={H:"childrenComplete",pa:"descendantsComplete",subscribe:function(e,t,n,o,r){var i=x.a.g.Ub(e,C,{});return i.Fa||(i.Fa=new x.T),r&&r.notifyImmediately&&i.Zb[t]&&x.u.G(n,o,[e]),i.Fa.subscribe(n,o,t)},ma:function(e,t){var n=x.a.g.get(e,C);if(n&&(n.Zb[t]=!0,n.Fa&&n.Fa.notifySubscribers(e,t),t==x.i.H))if(n.N)n.N.Cc();else if(n.N===a&&n.Fa&&n.Fa.Wa(x.i.pa))throw Error("descendantsComplete event not supported for bindings on this node")},Cb:function(e,n){var o=x.a.g.Ub(e,C,{});return o.N||(o.N=new t(e,o,n[g])),n[g]==o?n:n.extend((function(e){e[g]=o}))}},x.Td=function(e){return(e=x.a.g.get(e,C))&&e.context},x.ib=function(e,t,n){return 1===e.nodeType&&x.h.Sc(e),h(e,t,f(n))},x.ld=function(e,t,n){return n=f(n),x.ib(e,i(t,n,e),n)},x.Oa=function(e,t){1!==t.nodeType&&8!==t.nodeType||p(f(e),t)},x.vc=function(e,t,n){if(!c&&s.jQuery&&(c=s.jQuery),2>arguments.length){if(!(t=l.body))throw Error("ko.applyBindings: could not find document.body; has the document been loaded?")}else if(!t||1!==t.nodeType&&8!==t.nodeType)throw Error("ko.applyBindings: first parameter should be your view model; second parameter should be a DOM node");d(f(e,n),t)},x.Dc=function(e){return!e||1!==e.nodeType&&8!==e.nodeType?a:x.Td(e)},x.Ec=function(e){return(e=x.Dc(e))?e.$data:a},x.b("bindingHandlers",x.c),x.b("bindingEvent",x.i),x.b("bindingEvent.subscribe",x.i.subscribe),x.b("bindingEvent.startPossiblyAsyncContentBinding",x.i.Cb),x.b("applyBindings",x.vc),x.b("applyBindingsToDescendants",x.Oa),x.b("applyBindingAccessorsToNode",x.ib),x.b("applyBindingsToNode",x.ld),x.b("contextFor",x.Dc),x.b("dataFor",x.Ec)}(),function(e){function t(t,o){var a,s=Object.prototype.hasOwnProperty.call(r,t)?r[t]:e;s?s.subscribe(o):((s=r[t]=new x.T).subscribe(o),n(t,(function(e,n){var o=!(!n||!n.synchronous);i[t]={definition:e,Gd:o},delete r[t],a||o?s.notifySubscribers(e):x.na.zb((function(){s.notifySubscribers(e)}))})),a=!0)}function n(e,t){o("getConfig",[e],(function(n){n?o("loadComponent",[e,n],(function(e){t(e,n)})):t(null,null)}))}function o(t,n,r,i){i||(i=x.j.loaders.slice(0));var a=i.shift();if(a){var s=a[t];if(s){var l=!1;if(s.apply(a,n.concat((function(e){l?r(null):null!==e?r(e):o(t,n,r,i)})))!==e&&(l=!0,!a.suppressLoaderExceptions))throw Error("Component loaders must supply values by invoking the callback, not by returning values synchronously.")}else o(t,n,r,i)}else r(null)}var r={},i={};x.j={get:function(n,o){var r=Object.prototype.hasOwnProperty.call(i,n)?i[n]:e;r?r.Gd?x.u.G((function(){o(r.definition)})):x.na.zb((function(){o(r.definition)})):t(n,o)},Bc:function(e){delete i[e]},oc:o},x.j.loaders=[],x.b("components",x.j),x.b("components.get",x.j.get),x.b("components.clearCachedDefinition",x.j.Bc)}(),function(){function e(e,t,n,o){function i(){0==--s&&o(a)}var a={},s=2,l=n.template;n=n.viewModel,l?r(t,l,(function(t){x.j.oc("loadTemplate",[e,t],(function(e){a.template=e,i()}))})):i(),n?r(t,n,(function(t){x.j.oc("loadViewModel",[e,t],(function(e){a[u]=e,i()}))})):i()}function n(e){switch(x.a.R(e)){case"script":return x.a.ua(e.text);case"textarea":return x.a.ua(e.value);case"template":if(o(e.content))return x.a.Ca(e.content.childNodes)}return x.a.Ca(e.childNodes)}function o(e){return s.DocumentFragment?e instanceof DocumentFragment:e&&11===e.nodeType}function r(e,n,o){"string"==typeof n.require?t||s.require?(t||s.require)([n.require],(function(e){e&&"object"==typeof e&&e.Xd&&e.default&&(e=e.default),o(e)})):e("Uses require, but no AMD loader is present"):o(n)}function i(e){return function(t){throw Error("Component '"+e+"': "+t)}}var a={};x.j.register=function(e,t){if(!t)throw Error("Invalid configuration for "+e);if(x.j.tb(e))throw Error("Component "+e+" is already registered");a[e]=t},x.j.tb=function(e){return Object.prototype.hasOwnProperty.call(a,e)},x.j.unregister=function(e){delete a[e],x.j.Bc(e)},x.j.Fc={getConfig:function(e,t){t(x.j.tb(e)?a[e]:null)},loadComponent:function(t,n,o){var a=i(t);r(a,n,(function(n){e(t,a,n,o)}))},loadTemplate:function(e,t,r){if(e=i(e),"string"==typeof t)r(x.a.ua(t));else if(t instanceof Array)r(t);else if(o(t))r(x.a.la(t.childNodes));else if(t.element)if(t=t.element,s.HTMLElement?t instanceof HTMLElement:t&&t.tagName&&1===t.nodeType)r(n(t));else if("string"==typeof t){var a=l.getElementById(t);a?r(n(a)):e("Cannot find element with ID "+t)}else e("Unknown element type: "+t);else e("Unknown template value: "+t)},loadViewModel:function(e,t,n){!function e(t,n,o){if("function"==typeof n)o((function(e){return new n(e)}));else if("function"==typeof n[u])o(n[u]);else if("instance"in n){var r=n.instance;o((function(){return r}))}else"viewModel"in n?e(t,n.viewModel,o):t("Unknown viewModel value: "+n)}(i(e),t,n)}};var u="createViewModel";x.b("components.register",x.j.register),x.b("components.isRegistered",x.j.tb),x.b("components.unregister",x.j.unregister),x.b("components.defaultLoader",x.j.Fc),x.j.loaders.push(x.j.Fc),x.j.dd=a}(),function(){function e(e,n){if(o=e.getAttribute("params")){var o=t.parseBindingsString(o,n,e,{valueAccessors:!0,bindingParams:!0}),r=(o=x.a.Ga(o,(function(t){return x.o(t,null,{l:e})})),x.a.Ga(o,(function(t){var n=t.v();return t.ja()?x.o({read:function(){return x.a.f(t())},write:x.Za(n)&&function(e){t()(e)},l:e}):n})));return Object.prototype.hasOwnProperty.call(r,"$raw")||(r.$raw=o),r}return{$raw:{}}}x.j.getComponentNameForNode=function(e){var t=x.a.R(e);if(x.j.tb(t)&&(-1!=t.indexOf("-")||"[object HTMLUnknownElement]"==""+e||8>=x.a.W&&e.tagName===t))return t},x.j.tc=function(t,n,o,r){if(1===n.nodeType){var i=x.j.getComponentNameForNode(n);if(i){if((t=t||{}).component)throw Error('Cannot use the "component" binding on a custom element matching a component');var a={name:i,params:e(n,o)};t.component=r?function(){return a}:a}}return t};var t=new x.ga;9>x.a.W&&(x.j.register=function(e){return function(t){return e.apply(this,arguments)}}(x.j.register),l.createDocumentFragment=function(e){return function(){var t,n=e(),o=x.j.dd;for(t in o);return n}}(l.createDocumentFragment))}(),function(){var e=0;x.c.component={init:function(t,n,o,r,i){function a(){var e=s&&s.dispose;"function"==typeof e&&e.call(s),u&&u.s(),l=s=u=null}var s,l,u,c=x.a.la(x.h.childNodes(t));return x.h.Ea(t),x.a.K.za(t,a),x.o((function(){var o,r,p=x.a.f(n());if("string"==typeof p?o=p:(o=x.a.f(p.name),r=x.a.f(p.params)),!o)throw Error("No component name specified");var d=x.i.Cb(t,i),h=l=++e;x.j.get(o,(function(e){if(l===h){if(a(),!e)throw Error("Unknown component '"+o+"'");!function(e,t,n){if(!(t=t.template))throw Error("Component '"+e+"' has no template");e=x.a.Ca(t),x.h.va(n,e)}(o,e,t);var n=function(e,t,n){var o=e.createViewModel;return o?o.call(e,t,n):t}(e,r,{element:t,templateNodes:c});e=d.createChildContext(n,{extend:function(e){e.$component=n,e.$componentTemplateNodes=c}}),n&&n.koDescendantsComplete&&(u=x.i.subscribe(t,x.i.pa,n.koDescendantsComplete,n)),s=n,x.Oa(e,t)}}))}),null,{l:t}),{controlsDescendantBindings:!0}}},x.h.ea.component=!0}();var R={class:"className",for:"htmlFor"};x.c.attr={update:function(e,t){var n=x.a.f(t())||{};x.a.P(n,(function(t,n){n=x.a.f(n);var o=t.indexOf(":"),r=(o="lookupNamespaceURI"in e&&0<o&&e.lookupNamespaceURI(t.substr(0,o)),!1===n||null===n||n===a);r?o?e.removeAttributeNS(o,t):e.removeAttribute(t):n=n.toString(),8>=x.a.W&&t in R?(t=R[t],r?e.removeAttribute(t):e[t]=n):r||(o?e.setAttributeNS(o,t,n):e.setAttribute(t,n)),"name"===t&&x.a.Yc(e,r?"":n)}))}},x.c.checked={after:["value","attr"],init:function(e,t,n){function o(){var o=e.checked,l=r();if(!x.S.Ya()&&(o||!s&&!x.S.qa())){var p=x.u.G(t);if(u){var h=c?p.v():p,f=d;d=l,f!==l?o&&(x.a.Na(h,l,!0),x.a.Na(h,f,!1)):x.a.Na(h,l,o),c&&x.Za(p)&&p(h)}else i&&(l===a?l=o:o||(l=a)),x.m.eb(p,n,"checked",l,!0)}}var r=x.xb((function(){return n.has("checkedValue")?x.a.f(n.get("checkedValue")):p?n.has("value")?x.a.f(n.get("value")):e.value:void 0})),i="checkbox"==e.type,s="radio"==e.type;if(i||s){var l=t(),u=i&&x.a.f(l)instanceof Array,c=!(u&&l.push&&l.splice),p=s||u,d=u?r():a;s&&!e.name&&x.c.uniqueName.init(e,(function(){return!0})),x.o(o,null,{l:e}),x.a.B(e,"click",o),x.o((function(){var n=x.a.f(t()),o=r();u?(e.checked=0<=x.a.A(n,o),d=o):e.checked=i&&o===a?!!n:r()===n}),null,{l:e}),l=a}}},x.m.wa.checked=!0,x.c.checkedValue={update:function(e,t){e.value=x.a.f(t())}},x.c.class={update:function(e,t){var n=x.a.Db(x.a.f(t()));x.a.Eb(e,e.__ko__cssValue,!1),e.__ko__cssValue=n,x.a.Eb(e,n,!0)}},x.c.css={update:function(e,t){var n=x.a.f(t());null!==n&&"object"==typeof n?x.a.P(n,(function(t,n){n=x.a.f(n),x.a.Eb(e,t,n)})):x.c.class.update(e,t)}},x.c.enable={update:function(e,t){var n=x.a.f(t());n&&e.disabled?e.removeAttribute("disabled"):n||e.disabled||(e.disabled=!0)}},x.c.disable={update:function(e,t){x.c.enable.update(e,(function(){return!x.a.f(t())}))}},x.c.event={init:function(e,t,n,o,r){var i=t()||{};x.a.P(i,(function(i){"string"==typeof i&&x.a.B(e,i,(function(e){var a,s=t()[i];if(s){try{var l=x.a.la(arguments);o=r.$data,l.unshift(o),a=s.apply(o,l)}finally{!0!==a&&(e.preventDefault?e.preventDefault():e.returnValue=!1)}!1===n.get(i+"Bubble")&&(e.cancelBubble=!0,e.stopPropagation&&e.stopPropagation())}}))}))}},x.c.foreach={Rc:function(e){return function(){var t=e(),n=x.a.bc(t);return n&&"number"!=typeof n.length?(x.a.f(t),{foreach:n.data,as:n.as,noChildContext:n.noChildContext,includeDestroyed:n.includeDestroyed,afterAdd:n.afterAdd,beforeRemove:n.beforeRemove,afterRender:n.afterRender,beforeMove:n.beforeMove,afterMove:n.afterMove,templateEngine:x.ba.Ma}):{foreach:t,templateEngine:x.ba.Ma}}},init:function(e,t){return x.c.template.init(e,x.c.foreach.Rc(t))},update:function(e,t,n,o,r){return x.c.template.update(e,x.c.foreach.Rc(t),n,o,r)}},x.m.Ra.foreach=!1,x.h.ea.foreach=!0,x.c.hasfocus={init:function(e,t,n){function o(o){e.__ko_hasfocusUpdating=!0;var r=e.ownerDocument;if("activeElement"in r){var i;try{i=r.activeElement}catch(e){i=r.body}o=i===e}r=t(),x.m.eb(r,n,"hasfocus",o,!0),e.__ko_hasfocusLastValue=o,e.__ko_hasfocusUpdating=!1}var r=o.bind(null,!0),i=o.bind(null,!1);x.a.B(e,"focus",r),x.a.B(e,"focusin",r),x.a.B(e,"blur",i),x.a.B(e,"focusout",i),e.__ko_hasfocusLastValue=!1},update:function(e,t){var n=!!x.a.f(t());e.__ko_hasfocusUpdating||e.__ko_hasfocusLastValue===n||(n?e.focus():e.blur(),!n&&e.__ko_hasfocusLastValue&&e.ownerDocument.body.focus(),x.u.G(x.a.Fb,null,[e,n?"focusin":"focusout"]))}},x.m.wa.hasfocus=!0,x.c.hasFocus=x.c.hasfocus,x.m.wa.hasFocus="hasfocus",x.c.html={init:function(){return{controlsDescendantBindings:!0}},update:function(e,t){x.a.fc(e,t())}},function(){function e(e,t,n){x.c[e]={init:function(e,o,r,i,a){var s,l,u,c,p,d={};if(t){i=r.get("as");var h=r.get("noChildContext");d={as:i,noChildContext:h,exportDependencies:p=!(i&&h)}}return c=(u="render"==r.get("completeOn"))||r.has(x.i.pa),x.o((function(){var r,i=x.a.f(o()),h=!n!=!i,f=!l;(p||h!==s)&&(c&&(a=x.i.Cb(e,a)),h&&(t&&!p||(d.dataDependency=x.S.o()),r=t?a.createChildContext("function"==typeof i?i:o,d):x.S.qa()?a.extend(null,d):a),f&&x.S.qa()&&(l=x.a.Ca(x.h.childNodes(e),!0)),h?(f||x.h.va(e,x.a.Ca(l)),x.Oa(r,e)):(x.h.Ea(e),u||x.i.ma(e,x.i.H)),s=h)}),null,{l:e}),{controlsDescendantBindings:!0}}},x.m.Ra[e]=!1,x.h.ea[e]=!0}e("if"),e("ifnot",!1,!0),e("with",!0)}(),x.c.let={init:function(e,t,n,o,r){return t=r.extend(t),x.Oa(t,e),{controlsDescendantBindings:!0}}},x.h.ea.let=!0;var I={};x.c.options={init:function(e){if("select"!==x.a.R(e))throw Error("options binding applies only to SELECT elements");for(;0<e.length;)e.remove(0);return{controlsDescendantBindings:!0}},update:function(e,t,n){function o(){return x.a.jb(e.options,(function(e){return e.selected}))}function r(e,t,n){var o=typeof t;return"function"==o?t(e):"string"==o?e[t]:n}function i(t,n){if(f&&c)x.i.ma(e,x.i.H);else if(h.length){var o=0<=x.a.A(h,x.w.M(n[0]));x.a.Zc(n[0],o),f&&!o&&x.u.G(x.a.Fb,null,[e,"change"])}}var s=e.multiple,l=0!=e.length&&s?e.scrollTop:null,u=x.a.f(t()),c=n.get("valueAllowUnset")&&n.has("value"),p=n.get("optionsIncludeDestroyed");t={};var d,h=[];c||(s?h=x.a.Mb(o(),x.w.M):0<=e.selectedIndex&&h.push(x.w.M(e.options[e.selectedIndex]))),u&&(void 0===u.length&&(u=[u]),d=x.a.jb(u,(function(e){return p||e===a||null===e||!x.a.f(e._destroy)})),n.has("optionsCaption")&&null!==(u=x.a.f(n.get("optionsCaption")))&&u!==a&&d.unshift(I));var f=!1;t.beforeRemove=function(t){e.removeChild(t)},u=i,n.has("optionsAfterRender")&&"function"==typeof n.get("optionsAfterRender")&&(u=function(e,t){i(0,t),x.u.G(n.get("optionsAfterRender"),null,[t[0],e!==I?e:a])}),x.a.ec(e,d,(function(t,o,i){return i.length&&(h=!c&&i[0].selected?[x.w.M(i[0])]:[],f=!0),o=e.ownerDocument.createElement("option"),t===I?(x.a.Bb(o,n.get("optionsCaption")),x.w.cb(o,a)):(i=r(t,n.get("optionsValue"),t),x.w.cb(o,x.a.f(i)),t=r(t,n.get("optionsText"),i),x.a.Bb(o,t)),[o]}),t,u),c||(s?h.length&&o().length<h.length:h.length&&0<=e.selectedIndex?x.w.M(e.options[e.selectedIndex])!==h[0]:h.length||0<=e.selectedIndex)&&x.u.G(x.a.Fb,null,[e,"change"]),(c||x.S.Ya())&&x.i.ma(e,x.i.H),x.a.wd(e),l&&20<Math.abs(l-e.scrollTop)&&(e.scrollTop=l)}},x.c.options.$b=x.a.g.Z(),x.c.selectedOptions={init:function(e,t,n){function o(){var o=t(),r=[];x.a.D(e.getElementsByTagName("option"),(function(e){e.selected&&r.push(x.w.M(e))})),x.m.eb(o,n,"selectedOptions",r)}function r(){var n=x.a.f(t()),o=e.scrollTop;n&&"number"==typeof n.length&&x.a.D(e.getElementsByTagName("option"),(function(e){var t=0<=x.a.A(n,x.w.M(e));e.selected!=t&&x.a.Zc(e,t)})),e.scrollTop=o}if("select"!=x.a.R(e))throw Error("selectedOptions binding applies only to SELECT elements");var i;x.i.subscribe(e,x.i.H,(function(){i?o():(x.a.B(e,"change",o),i=x.o(r,null,{l:e}))}),null,{notifyImmediately:!0})},update:function(){}},x.m.wa.selectedOptions=!0,x.c.style={update:function(e,t){var n=x.a.f(t()||{});x.a.P(n,(function(t,n){if(null!==(n=x.a.f(n))&&n!==a&&!1!==n||(n=""),c)c(e).css(t,n);else if(/^--/.test(t))e.style.setProperty(t,n);else{t=t.replace(/-(\w)/g,(function(e,t){return t.toUpperCase()}));var o=e.style[t];e.style[t]=n,n===o||e.style[t]!=o||isNaN(n)||(e.style[t]=n+"px")}}))}},x.c.submit={init:function(e,t,n,o,r){if("function"!=typeof t())throw Error("The value for a submit binding must be a function");x.a.B(e,"submit",(function(n){var o,i=t();try{o=i.call(r.$data,e)}finally{!0!==o&&(n.preventDefault?n.preventDefault():n.returnValue=!1)}}))}},x.c.text={init:function(){return{controlsDescendantBindings:!0}},update:function(e,t){x.a.Bb(e,t())}},x.h.ea.text=!0,function(){if(s&&s.navigator){var e,t,n,o,r,i=function(e){if(e)return parseFloat(e[1])},l=s.navigator.userAgent;(e=s.opera&&s.opera.version&&parseInt(s.opera.version()))||(r=i(l.match(/Edge\/([^ ]+)$/)))||i(l.match(/Chrome\/([^ ]+)/))||(t=i(l.match(/Version\/([^ ]+) Safari/)))||(n=i(l.match(/Firefox\/([^ ]+)/)))||(o=x.a.W||i(l.match(/MSIE ([^ ]+)/)))||(o=i(l.match(/rv:([^ )]+)/)))}if(8<=o&&10>o)var u=x.a.g.Z(),c=x.a.g.Z(),p=function(e){var t=this.activeElement;(t=t&&x.a.g.get(t,c))&&t(e)},d=function(e,t){var n=e.ownerDocument;x.a.g.get(n,u)||(x.a.g.set(n,u,!0),x.a.B(n,"selectionchange",p)),x.a.g.set(e,c,t)};x.c.textInput={init:function(i,s,l){function u(e,t){x.a.B(i,e,t)}function c(){h||(f=i.value,h=x.a.setTimeout(p,4))}function p(){clearTimeout(h),f=h=a;var e=i.value;m!==e&&(m=e,x.m.eb(s(),l,"textInput",e))}var h,f,m=i.value,g=9==x.a.W?c:p,y=!1;o&&u("keypress",p),11>o&&u("propertychange",(function(e){y||"value"!==e.propertyName||g(e)})),8==o&&(u("keyup",p),u("keydown",p)),d&&(d(i,g),u("dragend",c)),(!o||9<=o)&&u("input",g),5>t&&"textarea"===x.a.R(i)?(u("keydown",c),u("paste",c),u("cut",c)):11>e?u("keydown",c):4>n?(u("DOMAutoComplete",p),u("dragdrop",p),u("drop",p)):r&&"number"===i.type&&u("keydown",c),u("change",p),u("blur",p),x.o((function e(){var t=x.a.f(s());null!==t&&t!==a||(t=""),f!==a&&t===f?x.a.setTimeout(e,4):i.value!==t&&(y=!0,i.value=t,y=!1,m=i.value)}),null,{l:i})}},x.m.wa.textInput=!0,x.c.textinput={preprocess:function(e,t,n){n("textInput",e)}}}(),x.c.uniqueName={init:function(e,t){if(t()){var n="ko_unique_"+ ++x.c.uniqueName.rd;x.a.Yc(e,n)}}},x.c.uniqueName.rd=0,x.c.using={init:function(e,t,n,o,r){var i;return n.has("as")&&(i={as:n.get("as"),noChildContext:n.get("noChildContext")}),t=r.createChildContext(t,i),x.Oa(t,e),{controlsDescendantBindings:!0}}},x.h.ea.using=!0,x.c.value={init:function(e,t,n){var o=x.a.R(e),r="input"==o;if(!r||"checkbox"!=e.type&&"radio"!=e.type){var i=[],s=n.get("valueUpdate"),l=!1,u=null;s&&(i="string"==typeof s?[s]:x.a.wc(s),x.a.Pa(i,"change"));var c,p,d=function(){u=null,l=!1;var o=t(),r=x.w.M(e);x.m.eb(o,n,"value",r)};!x.a.W||!r||"text"!=e.type||"off"==e.autocomplete||e.form&&"off"==e.form.autocomplete||-1!=x.a.A(i,"propertychange")||(x.a.B(e,"propertychange",(function(){l=!0})),x.a.B(e,"focus",(function(){l=!1})),x.a.B(e,"blur",(function(){l&&d()}))),x.a.D(i,(function(t){var n=d;x.a.Ud(t,"after")&&(n=function(){u=x.w.M(e),x.a.setTimeout(d,0)},t=t.substring(5)),x.a.B(e,t,n)})),c=r&&"file"==e.type?function(){var n=x.a.f(t());null===n||n===a||""===n?e.value="":x.u.G(d)}:function(){var r=x.a.f(t()),i=x.w.M(e);null!==u&&r===u?x.a.setTimeout(c,0):r===i&&i!==a||("select"===o?(i=n.get("valueAllowUnset"),x.w.cb(e,r,i),i||r===x.w.M(e)||x.u.G(d)):x.w.cb(e,r))},"select"===o?x.i.subscribe(e,x.i.H,(function(){p?n.get("valueAllowUnset")?c():d():(x.a.B(e,"change",d),p=x.o(c,null,{l:e}))}),null,{notifyImmediately:!0}):(x.a.B(e,"change",d),x.o(c,null,{l:e}))}else x.ib(e,{checkedValue:t})},update:function(){}},x.m.wa.value=!0,x.c.visible={update:function(e,t){var n=x.a.f(t()),o="none"!=e.style.display;n&&!o?e.style.display="":!n&&o&&(e.style.display="none")}},x.c.hidden={update:function(e,t){x.c.visible.update(e,(function(){return!x.a.f(t())}))}},function(e){x.c[e]={init:function(t,n,o,r,i){return x.c.event.init.call(this,t,(function(){var t={};return t[e]=n(),t}),o,r,i)}}}("click"),x.ca=function(){},x.ca.prototype.renderTemplateSource=function(){throw Error("Override renderTemplateSource")},x.ca.prototype.createJavaScriptEvaluatorBlock=function(){throw Error("Override createJavaScriptEvaluatorBlock")},x.ca.prototype.makeTemplateSource=function(e,t){if("string"==typeof e){var n=(t=t||l).getElementById(e);if(!n)throw Error("Cannot find template with ID "+e);return new x.C.F(n)}if(1==e.nodeType||8==e.nodeType)return new x.C.ia(e);throw Error("Unknown template type: "+e)},x.ca.prototype.renderTemplate=function(e,t,n,o){return e=this.makeTemplateSource(e,o),this.renderTemplateSource(e,t,n,o)},x.ca.prototype.isTemplateRewritten=function(e,t){return!1===this.allowTemplateRewriting||this.makeTemplateSource(e,t).data("isRewritten")},x.ca.prototype.rewriteTemplate=function(e,t,n){t=t((e=this.makeTemplateSource(e,n)).text()),e.text(t),e.data("isRewritten",!0)},x.b("templateEngine",x.ca),x.kc=function(){function e(e,t,n,o){e=x.m.ac(e);for(var r=x.m.Ra,i=0;i<e.length;i++){var a=e[i].key;if(Object.prototype.hasOwnProperty.call(r,a)){var s=r[a];if("function"==typeof s){if(a=s(e[i].value))throw Error(a)}else if(!s)throw Error("This template engine does not support the '"+a+"' binding within its templates")}}return n="ko.__tr_ambtns(function($context,$element){return(function(){return{ "+x.m.vb(e,{valueAccessors:!0})+" } })()},'"+n.toLowerCase()+"')",o.createJavaScriptEvaluatorBlock(n)+t}var t=/(<([a-z]+\d*)(?:\s+(?!data-bind\s*=\s*)[a-z0-9\-]+(?:=(?:\"[^\"]*\"|\'[^\']*\'|[^>]*))?)*\s+)data-bind\s*=\s*(["'])([\s\S]*?)\3/gi,n=/\x3c!--\s*ko\b\s*([\s\S]*?)\s*--\x3e/g;return{xd:function(e,t,n){t.isTemplateRewritten(e,n)||t.rewriteTemplate(e,(function(e){return x.kc.Ld(e,t)}),n)},Ld:function(o,r){return o.replace(t,(function(t,n,o,i,a){return e(a,n,o,r)})).replace(n,(function(t,n){return e(n,"\x3c!-- ko --\x3e","#comment",r)}))},md:function(e,t){return x.aa.Xb((function(n,o){var r=n.nextSibling;r&&r.nodeName.toLowerCase()===t&&x.ib(r,e,o)}))}}}(),x.b("__tr_ambtns",x.kc.md),function(){x.C={},x.C.F=function(e){if(this.F=e){var t=x.a.R(e);this.ab="script"===t?1:"textarea"===t?2:"template"==t&&e.content&&11===e.content.nodeType?3:4}},x.C.F.prototype.text=function(){var e=1===this.ab?"text":2===this.ab?"value":"innerHTML";if(0==arguments.length)return this.F[e];var t=arguments[0];"innerHTML"===e?x.a.fc(this.F,t):this.F[e]=t};var e=x.a.g.Z()+"_";x.C.F.prototype.data=function(t){if(1===arguments.length)return x.a.g.get(this.F,e+t);x.a.g.set(this.F,e+t,arguments[1])};var t=x.a.g.Z();x.C.F.prototype.nodes=function(){var e=this.F;if(0==arguments.length){var n=x.a.g.get(e,t)||{},o=n.lb||(3===this.ab?e.content:4===this.ab?e:a);if(!o||n.jd){var r=this.text();r&&r!==n.bb&&(o=x.a.Md(r,e.ownerDocument),x.a.g.set(e,t,{lb:o,bb:r,jd:!0}))}return o}n=arguments[0],this.ab!==a&&this.text(""),x.a.g.set(e,t,{lb:n})},x.C.ia=function(e){this.F=e},x.C.ia.prototype=new x.C.F,x.C.ia.prototype.constructor=x.C.ia,x.C.ia.prototype.text=function(){if(0==arguments.length){var e=x.a.g.get(this.F,t)||{};return e.bb===a&&e.lb&&(e.bb=e.lb.innerHTML),e.bb}x.a.g.set(this.F,t,{bb:arguments[0]})},x.b("templateSources",x.C),x.b("templateSources.domElement",x.C.F),x.b("templateSources.anonymousTemplate",x.C.ia)}(),function(){function e(e,t,n){var o;for(t=x.h.nextSibling(t);e&&(o=e)!==t;)n(o,e=x.h.nextSibling(o))}function t(t,n){if(t.length){var o=t[0],r=t[t.length-1],i=o.parentNode,a=x.ga.instance,s=a.preprocessNode;if(s){if(e(o,r,(function(e,t){var n=e.previousSibling,i=s.call(a,e);i&&(e===o&&(o=i[0]||t),e===r&&(r=i[i.length-1]||n))})),t.length=0,!o)return;o===r?t.push(o):(t.push(o,r),x.a.Ua(t,i))}e(o,r,(function(e){1!==e.nodeType&&8!==e.nodeType||x.vc(n,e)})),e(o,r,(function(e){1!==e.nodeType&&8!==e.nodeType||x.aa.cd(e,[n])})),x.a.Ua(t,i)}}function n(e){return e.nodeType?e:0<e.length?e[0]:null}function o(e,o,r,a,s){s=s||{};var l=(e&&n(e)||r||{}).ownerDocument,u=s.templateEngine||i;if(x.kc.xd(r,u,l),"number"!=typeof(r=u.renderTemplate(r,a,s,l)).length||0<r.length&&"number"!=typeof r[0].nodeType)throw Error("Template engine must return an array of DOM nodes");switch(l=!1,o){case"replaceChildren":x.h.va(e,r),l=!0;break;case"replaceNode":x.a.Xc(e,r),l=!0;break;case"ignoreTargetNode":break;default:throw Error("Unknown renderMode: "+o)}return l&&(t(r,a),s.afterRender&&x.u.G(s.afterRender,null,[r,a[s.as||"$data"]]),"replaceChildren"==o&&x.i.ma(e,x.i.H)),r}function r(e,t,n){return x.O(e)?e():"function"==typeof e?e(t,n):e}var i;x.gc=function(e){if(e!=a&&!(e instanceof x.ca))throw Error("templateEngine must inherit from ko.templateEngine");i=e},x.dc=function(e,t,s,l,u){if(((s=s||{}).templateEngine||i)==a)throw Error("Set a template engine before calling renderTemplate");if(u=u||"replaceChildren",l){var c=n(l);return x.$((function(){var i=t&&t instanceof x.fa?t:new x.fa(t,null,null,null,{exportDependencies:!0}),a=r(e,i.$data,i);i=o(l,u,a,i,s),"replaceNode"==u&&(c=n(l=i))}),null,{Sa:function(){return!c||!x.a.Sb(c)},l:c&&"replaceNode"==u?c.parentNode:c})}return x.aa.Xb((function(n){x.dc(e,t,s,n,"replaceNode")}))},x.Qd=function(e,n,i,s,l){function u(e,t){x.u.G(x.a.ec,null,[s,e,p,i,c,t]),x.i.ma(s,x.i.H)}function c(e,n){t(n,d),i.afterRender&&i.afterRender(n,e),d=null}function p(t,n){d=l.createChildContext(t,{as:h,noChildContext:i.noChildContext,extend:function(e){e.$index=n,h&&(e[h+"Index"]=n)}});var a=r(e,t,d);return o(s,"ignoreTargetNode",a,d,i)}var d,h=i.as,f=!1===i.includeDestroyed||x.options.foreachHidesDestroyed&&!i.includeDestroyed;if(f||i.beforeRemove||!x.Pc(n))return x.$((function(){var e=x.a.f(n)||[];void 0===e.length&&(e=[e]),f&&(e=x.a.jb(e,(function(e){return e===a||null===e||!x.a.f(e._destroy)}))),u(e)}),null,{l:s});u(n.v());var m=n.subscribe((function(e){u(n(),e)}),null,"arrayChange");return m.l(s),m};var s=x.a.g.Z(),l=x.a.g.Z();x.c.template={init:function(e,t){var n=x.a.f(t());if("string"==typeof n||"name"in n)x.h.Ea(e);else if("nodes"in n){if(n=n.nodes||[],x.O(n))throw Error('The "nodes" option must be a plain, non-observable array.');var o=n[0]&&n[0].parentNode;o&&x.a.g.get(o,l)||(o=x.a.Yb(n),x.a.g.set(o,l,!0)),new x.C.ia(e).nodes(o)}else{if(!(0<(n=x.h.childNodes(e)).length))throw Error("Anonymous template defined, but no template content was provided");o=x.a.Yb(n),new x.C.ia(e).nodes(o)}return{controlsDescendantBindings:!0}},update:function(e,t,n,o,r){var i=t();n=!0,o=null,"string"==typeof(t=x.a.f(i))?t={}:(i="name"in t?t.name:e,"if"in t&&(n=x.a.f(t.if)),n&&"ifnot"in t&&(n=!x.a.f(t.ifnot)),n&&!i&&(n=!1)),"foreach"in t?o=x.Qd(i,n&&t.foreach||[],t,e,r):n?(n=r,"data"in t&&(n=r.createChildContext(t.data,{as:t.as,noChildContext:t.noChildContext,exportDependencies:!0})),o=x.dc(i,n,t,e)):x.h.Ea(e),r=o,(t=x.a.g.get(e,s))&&"function"==typeof t.s&&t.s(),x.a.g.set(e,s,!r||r.ja&&!r.ja()?a:r)}},x.m.Ra.template=function(e){return 1==(e=x.m.ac(e)).length&&e[0].unknown||x.m.Id(e,"name")?null:"This template engine does not support anonymous templates nested within its templates"},x.h.ea.template=!0}(),x.b("setTemplateEngine",x.gc),x.b("renderTemplate",x.dc),x.a.Kc=function(e,t,n){var o,r,i,a,s;if(e.length&&t.length)for(o=r=0;(!n||o<n)&&(a=e[r]);++r){for(i=0;s=t[i];++i)if(a.value===s.value){a.moved=s.index,s.moved=a.index,t.splice(i,1),o=i=0;break}o+=i}},x.a.Pb=function(){function e(e,t,n,o,r){var i,a,s,l,u,c=Math.min,p=Math.max,d=[],h=e.length,f=t.length,m=f-h||1,g=h+f+1;for(i=0;i<=h;i++)for(l=s,d.push(s=[]),u=c(f,i+m),a=p(0,i-1);a<=u;a++)s[a]=a?i?e[i-1]===t[a-1]?l[a-1]:c(l[a]||g,s[a-1]||g)+1:a+1:i+1;for(c=[],p=[],m=[],i=h,a=f;i||a;)f=d[i][a]-1,a&&f===d[i][a-1]?p.push(c[c.length]={status:n,value:t[--a],index:a}):i&&f===d[i-1][a]?m.push(c[c.length]={status:o,value:e[--i],index:i}):(--a,--i,r.sparse||c.push({status:"retained",value:t[a]}));return x.a.Kc(m,p,!r.dontLimitMoves&&10*h),c.reverse()}return function(t,n,o){return o="boolean"==typeof o?{dontLimitMoves:o}:o||{},n=n||[],(t=t||[]).length<n.length?e(t,n,"added","deleted",o):e(n,t,"deleted","added",o)}}(),x.b("utils.compareArrays",x.a.Pb),function(){function e(e,t,n,o,r){var i=[],s=x.$((function(){var a=t(n,r,x.a.Ua(i,e))||[];0<i.length&&(x.a.Xc(i,a),o&&x.u.G(o,null,[n,a,r])),i.length=0,x.a.Nb(i,a)}),null,{l:e,Sa:function(){return!x.a.kd(i)}});return{Y:i,$:s.ja()?s:a}}var t=x.a.g.Z(),n=x.a.g.Z();x.a.ec=function(o,r,i,s,l,u){function c(e){h={Aa:e,pb:x.ta(w++)},b.push(h),v||k.push(h)}function p(e){h=y[e],w!==h.pb.v()&&T.push(h),h.pb(w++),x.a.Ua(h.Y,o),b.push(h)}function d(e,t){if(e)for(var n=0,o=t.length;n<o;n++)x.a.D(t[n].Y,(function(o){e(o,n,t[n].Aa)}))}void 0===(r=r||[]).length&&(r=[r]),s=s||{};var h,f,m,g,y=x.a.g.get(o,t),v=!y,b=[],C=0,w=0,P=[],_=[],V=[],T=[],k=[],S=0;if(v)x.a.D(r,c);else{if(!u||y&&y._countWaitingForRemove){var O=x.a.Mb(y,(function(e){return e.Aa}));u=x.a.Pb(O,r,{dontLimitMoves:s.dontLimitMoves,sparse:!0})}var E,R,I;for(O=0;E=u[O];O++)switch(R=E.moved,I=E.index,E.status){case"deleted":for(;C<I;)p(C++);R===a&&((h=y[C]).$&&(h.$.s(),h.$=a),x.a.Ua(h.Y,o).length&&(s.beforeRemove&&(b.push(h),S++,h.Aa===n?h=null:V.push(h)),h&&P.push.apply(P,h.Y))),C++;break;case"added":for(;w<I;)p(C++);R!==a?(_.push(b.length),p(R)):c(E.value)}for(;w<r.length;)p(C++);b._countWaitingForRemove=S}x.a.g.set(o,t,b),d(s.beforeMove,T),x.a.D(P,s.beforeRemove?x.oa:x.removeNode);try{g=o.ownerDocument.activeElement}catch(e){}if(_.length)for(;(O=_.shift())!=a;){for(h=b[O],f=a;O;)if((m=b[--O].Y)&&m.length){f=m[m.length-1];break}for(r=0;C=h.Y[r];f=C,r++)x.h.Wb(o,C,f)}for(O=0;h=b[O];O++){for(h.Y||x.a.extend(h,e(o,i,h.Aa,l,h.pb)),r=0;C=h.Y[r];f=C,r++)x.h.Wb(o,C,f);!h.Ed&&l&&(l(h.Aa,h.Y,h.pb),h.Ed=!0,f=h.Y[h.Y.length-1])}for(g&&o.ownerDocument.activeElement!=g&&g.focus(),d(s.beforeRemove,V),O=0;O<V.length;++O)V[O].Aa=n;d(s.afterMove,T),d(s.afterAdd,k)}}(),x.b("utils.setDomNodeChildrenFromArrayMapping",x.a.ec),x.ba=function(){this.allowTemplateRewriting=!1},x.ba.prototype=new x.ca,x.ba.prototype.constructor=x.ba,x.ba.prototype.renderTemplateSource=function(e,t,n,o){return(t=9>x.a.W||!e.nodes?null:e.nodes())?x.a.la(t.cloneNode(!0).childNodes):(e=e.text(),x.a.ua(e,o))},x.ba.Ma=new x.ba,x.gc(x.ba.Ma),x.b("nativeTemplateEngine",x.ba),function(){x.$a=function(){var e=this.Hd=function(){if(!c||!c.tmpl)return 0;try{if(0<=c.tmpl.tag.tmpl.open.toString().indexOf("__"))return 2}catch(e){}return 1}();this.renderTemplateSource=function(t,n,o,r){if(r=r||l,o=o||{},2>e)throw Error("Your version of jQuery.tmpl is too old. Please upgrade to jQuery.tmpl 1.0.0pre or later.");var i=t.data("precompiled");return i||(i=t.text()||"",i=c.template(null,"{{ko_with $item.koBindingContext}}"+i+"{{/ko_with}}"),t.data("precompiled",i)),t=[n.$data],n=c.extend({koBindingContext:n},o.templateOptions),(n=c.tmpl(i,t,n)).appendTo(r.createElement("div")),c.fragments={},n},this.createJavaScriptEvaluatorBlock=function(e){return"{{ko_code ((function() { return "+e+" })()) }}"},this.addTemplate=function(e,t){l.write("<script type='text/html' id='"+e+"'>"+t+"<\/script>")},0<e&&(c.tmpl.tag.ko_code={open:"__.push($1 || '');"},c.tmpl.tag.ko_with={open:"with($1) {",close:"} "})},x.$a.prototype=new x.ca,x.$a.prototype.constructor=x.$a;var e=new x.$a;0<e.Hd&&x.gc(e),x.b("jqueryTmplTemplateEngine",x.$a)}()}))}()},function(t,n){t.exports=e},function(e,t,n){},function(e,t,n){e.exports=n(4)+"\n"+n(5)+"\n"+n(6)+"\n"+n(7)+"\n"+n(8)+"\n"+n(9)+"\n"+n(10)+"\n"+n(11)+"\n"+n(12)+"\n"+n(13)+"\n"+n(14)+"\n"+n(15)+"\n"+n(16)+"\n"+n(17)+"\n"+n(18)+"\n"+n(19)+"\n"+n(20)+"\n"+n(21)+"\n"+n(22)+"\n"+n(23)+"\n"+n(24)+"\n"+n(25)+"\n"+n(26)+"\n"+n(27)+"\n"+n(28)+"\n"+n(29)+"\n"+n(30)+"\n"+n(31)+"\n"+n(32)+"\n"+n(33)+"\n"+n(34)+"\n"+n(35)+"\n"+n(36)+"\n"+n(37)+"\n"+n(38)+"\n"+n(39)},function(e,t){e.exports='<script type="text/html" id="survey-comment">\n  \x3c!--ko if: !question.isReadOnlyRenderDiv() --\x3e\n<textarea type="text" data-bind="attr: { maxLength: question.getOthersMaxLength(), \'aria-label\': !!question.locTitle && question.locTitle.renderedHtml, placeholder: question.otherPlaceHolder }, \n        event: { input: (s, e) => $data.question.onCommentInput(s, e) }, \n        value: $data.question.comment, \n        visible: $data.visible,\n        disable: $data.question.isInputReadOnly,\n        style: { resize: question.autoGrowComment ? \'none\' : \'both\'},\n        css: $data.question.koCss().other"></textarea>\n\x3c!--/ko--\x3e\n\n\x3c!--ko if: question.isReadOnlyRenderDiv() --\x3e\n<div data-bind="text: question.comment"></div>\n\x3c!--/ko--\x3e\n<\/script>'},function(e,t){e.exports='<script type="text/html" id="survey-flowpanel">\n  <div data-bind="style: { flexBasis: renderWidth, flexGrow: 1, flexShrink: 1, width: renderWidth, minWidth: $data.minWidth, maxWidth: $data.maxWidth }, attr: { id: id }, css: cssClasses.panel.container">\n      <h4 data-bind="visible: (processedTitle.length > 0), css: question.cssTitle">\n          \x3c!-- ko template: { name: \'survey-string\', data: locTitle } --\x3e\n          \x3c!-- /ko --\x3e\n      </h4>\n      <div data-bind="css: cssClasses.panel.description">\n          \x3c!-- ko template: { name: \'survey-string\', data: locDescription } --\x3e\n          \x3c!-- /ko --\x3e\n      </div>\n      <div data-bind="style: { paddingLeft: innerPaddingLeft }"></div>\n      <f-panel params="question: question" data-bind="attr: { contenteditable : question.isDesignMode, placeHolder: question.placeHolder }"></f-panel>\n  </div>\n<\/script>\n<script type="text/html" id="survey-flowpanel-question">\n  \x3c!-- ko with: $parent.question.getQuestionByName($data) --\x3e\n    \x3c!-- ko template: { name: koElementType(), data: $data, as: \'question\', afterRender: parent.koElementAfterRender } --\x3e\x3c!-- /ko --\x3e\n  \x3c!-- /ko --\x3e\n<\/script>\n'},function(e,t){e.exports="<script type=\"text/html\" id=\"survey-header\">\n  \x3c!-- ko if: renderedHasHeader --\x3e\n  <div data-bind=\"css: css.header\">\n      \x3c!-- ko if: isLogoBefore --\x3e\n      \x3c!-- ko component: { name: getElementWrapperComponentName($data, 'logo-image'), params: getElementWrapperComponentData($data, 'logo-image') } --\x3e\n      \x3c!-- /ko --\x3e\n      \x3c!-- /ko --\x3e\n\n      \x3c!-- ko if: renderedHasTitle --\x3e\n      <div data-bind=\"css: css.headerText, style: { maxWidth: titleMaxWidth }\">\n          \x3c!-- ko component: { name: 'survey-element-title', params: {element: $data } } --\x3e\x3c!-- /ko --\x3e\n          <h5 data-bind=\"css: css.description\">\x3c!-- ko template: { name: 'survey-string', data: locDescription } --\x3e\x3c!-- /ko --\x3e</h5>\n      </div>\n      \x3c!-- /ko --\x3e\n\n      \x3c!-- ko if: isLogoAfter --\x3e\n      \x3c!-- ko component: { name: getElementWrapperComponentName($data, 'logo-image'), params: getElementWrapperComponentData($data, 'logo-image') } --\x3e\n      \x3c!-- /ko --\x3e\n      \x3c!-- /ko --\x3e\n  </div>\n  \x3c!-- /ko --\x3e\n<\/script>\n"},function(e,t){e.exports='<script type="text/html" id="survey-content">\n  <div data-bind="css: css.root, afterRender: koEventAfterRender">\n      <form onsubmit="return false;">\n          <div class="sv_custom_header" data-bind="visible: !hasLogo"></div>\n          <div data-bind="css: css.container">\n              \x3c!-- ko template: { name: koTitleTemplate, afterRender: koAfterRenderHeader } --\x3e\n              \x3c!-- /ko --\x3e\n              \x3c!-- ko if: koState() == "starting" --\x3e\n              <div data-bind="css: css.body">\n                  \x3c!-- ko if: isNavigationButtonsShowingOnTop --\x3e\n                  \x3c!-- ko template: { name: \'survey-navigation-start\' } --\x3e\n                  \x3c!-- /ko --\x3e\n                  \x3c!-- /ko --\x3e\n                  <div data-bind="attr: { id: startedPage.id }, template: { name: \'survey-page\', data: startedPage, afterRender: koAfterRenderPage }"></div>\n                  \x3c!-- ko if: isNavigationButtonsShowingOnBottom --\x3e\n                  \x3c!-- ko template: { name: \'survey-navigation-start\' } --\x3e\n                  \x3c!-- /ko --\x3e\n                  \x3c!-- /ko --\x3e\n              </div>\n              \x3c!-- /ko --\x3e\n              \x3c!-- ko if: koState() == "running" || koState() == "preview" --\x3e\n              <div data-bind="css: css.body">\n                  \x3c!-- ko if: isTimerPanelShowingOnTop --\x3e\n                  \x3c!-- ko template: { name: \'survey-timerpanel\' } --\x3e\n                  \x3c!-- /ko --\x3e\n                  \x3c!-- /ko --\x3e\n                  \x3c!-- ko if: isShowProgressBarOnTop --\x3e\n                  \x3c!-- ko component: { name: \'sv-progress-\' + progressBarType, params: { model: $data } } --\x3e\n                  \x3c!-- /ko --\x3e\n                  \x3c!-- /ko --\x3e\n                  \x3c!-- ko if: isNavigationButtonsShowingOnTop --\x3e\n                  \x3c!-- ko template: { name: \'survey-navigation\' } --\x3e\n                  \x3c!-- /ko --\x3e\n                  \x3c!-- /ko --\x3e\n                  \x3c!-- ko if: koCurrentPage --\x3e\n                    <div data-bind="attr: { id: koCurrentPage().id }, template: { name: \'survey-page\', data: koCurrentPage, afterRender: koAfterRenderPage }"></div>\n                    \x3c!-- ko if: isCurrentPageEmpty() && $data.emptyPageTemplate --\x3e\n                    \x3c!-- ko template: { name: emptyPageTemplate, data: $data.emptyPageTemplateData || $data } --\x3e\n                    \x3c!-- /ko --\x3e\n                    \x3c!-- /ko --\x3e\n                  \x3c!-- /ko --\x3e\n                  \x3c!-- ko if: isShowProgressBarOnBottom --\x3e\n                  \x3c!-- ko component: { name: \'sv-progress-\' + progressBarType, params: { model: $data } } --\x3e\n                  \x3c!-- /ko --\x3e\n                  \x3c!-- /ko --\x3e\n                  \x3c!-- ko if: isTimerPanelShowingOnBottom --\x3e\n                  \x3c!-- ko template: { name: \'survey-timerpanel\' } --\x3e\n                  \x3c!-- /ko --\x3e\n                  \x3c!-- /ko --\x3e\n                  \x3c!-- ko if: isNavigationButtonsShowingOnBottom --\x3e\n                  \x3c!-- ko template: { name: \'survey-navigation\' } --\x3e\n                  \x3c!-- /ko --\x3e\n                  \x3c!-- /ko --\x3e\n              </div>\n              \x3c!-- /ko --\x3e\n              \x3c!-- ko if: koState() == "completed" && showCompletedPage --\x3e\n              <div data-bind="html: processedCompletedHtml, css: completedCss"></div>\n              <div data-bind="visible: koCompletedState() != \'\', css: css.saveData.root">\n                  <div data-bind="css: koCompletedStateCss">\n                      <span data-bind="text:koCompletedStateText"></span>\n                      <input type="button" data-bind="visible: koCompletedState() == \'error\', value: getLocString(\'saveAgainButton\'), click: doComplete, css: css.saveData.saveAgainButton"/>\n                  </div>\n              </div>\n              \x3c!-- /ko --\x3e\n              \x3c!-- ko if: koState() == "completedbefore" --\x3e\n              <div data-bind="html: processedCompletedBeforeHtml, css: css.body"></div>\n              \x3c!-- /ko --\x3e\n              \x3c!-- ko if: koState() == "loading" --\x3e\n              <div data-bind="html: processedLoadingHtml, css: css.body"></div>\n              \x3c!-- /ko --\x3e\n              \x3c!-- ko if: koState() == "empty" --\x3e\n              <div data-bind="text:emptySurveyText, css: css.bodyEmpty"></div>\n              \x3c!-- /ko --\x3e\n          </div>\n      </form>\n  </div>\n<\/script>\n<script type="text/html" id="survey-navigation">\n  <div data-bind="css: css.footer">\n      <input type="button" data-bind="event: { mousedown: navigationMouseDown }, value: locPagePrevText.koRenderedHtml, click: prevPage, visible: !koIsFirstPage() && isShowPrevButton, css: cssNavigationPrev" />\n      <input type="button" data-bind="event: { mousedown: nextPageMouseDown }, value: locPageNextText.koRenderedHtml, click: nextPageUIClick, visible: !koIsLastPage(), css: cssNavigationNext" />\n      <input type="button" data-bind="event: { mousedown: navigationMouseDown }, value: locPreviewText.koRenderedHtml, click: showPreview, visible: koIsLastPage() && isPreviewButtonVisible, css: cssNavigationPreview" />\n      <input type="button" data-bind="event: { mousedown: navigationMouseDown }, value: locCompleteText.koRenderedHtml, click: completeLastPage, visible: koIsLastPage() && isCompleteButtonVisible, css: cssNavigationComplete" />\n  </div>\n<\/script>\n<script type="text/html" id="survey-navigation-start">\n  <div data-bind="css: css.footer">\n      <input type="button" data-bind="value: startSurveyText, click: start, css: cssNavigationStart"/>\n  </div>\n<\/script>\n'},function(e,t){e.exports='<script type="text/html" id="survey-page">\n  <div data-bind="css: cssClasses.page.root">\n    \x3c!-- ko component: { name: \'survey-element-title\', params: {element: $data } } --\x3e\x3c!-- /ko --\x3e\n    \x3c!-- ko if: _showDescription--\x3e\n    <div\n      data-bind="visible: data.showPageTitles, css: cssClasses.page.description"\n    >\n      \x3c!-- ko template: { name: \'survey-string\', data: locDescription } --\x3e\n      \x3c!-- /ko --\x3e\n    </div>\n    \x3c!-- /ko --\x3e\n    \x3c!-- ko template: { name: \'survey-rows\', data: $data} --\x3e\n    \x3c!-- /ko --\x3e\n  </div>\n<\/script>\n'},function(e,t){e.exports='<script type="text/html" id="survey-panel">\n  <div\n    data-bind="attr: { id: id }, css: cssClasses.panel.container"\n  >\n    \x3c!-- ko component: { name: \'survey-element-title\', params: {element: $data } } --\x3e\x3c!-- /ko --\x3e\n    <div data-bind="css: cssClasses.panel.description">\n      \x3c!-- ko template: { name: \'survey-string\', data: locDescription } --\x3e\n      \x3c!-- /ko --\x3e\n    </div>\n    \x3c!-- ko template: { name: \'survey-question-errors\', data: $data } --\x3e\n    \x3c!-- /ko --\x3e\n    \x3c!-- ko if: state != "collapsed" --\x3e\n    <div\n      data-bind="style: { paddingLeft: innerPaddingLeft }, css: cssClasses.panel.content, attr: {id:contentId}"\n    >\n      \x3c!-- ko template: { name: \'survey-rows\', data: $data} --\x3e\n      \x3c!-- /ko --\x3e\n      \x3c!-- ko component: { name: \'sv-action-bar\', params: { model: getFooterToolbar() } } --\x3e\n      \x3c!-- /ko --\x3e\n    </div>\n    \x3c!-- /ko --\x3e\n  </div>\n<\/script>\n'},function(e,t){e.exports="<script type=\"text/html\" id=\"survey-rows\">\n  \x3c!-- ko foreach: { data: rows, as: 'row'} --\x3e\n    \x3c!-- ko if: row.visible --\x3e\n      \x3c!-- ko component: { name: $parent.survey.getRowWrapperComponentName(row), params: { componentData:  $parent.survey.getRowWrapperComponentData(row), templateData: { name: 'survey-row', data: row } } } --\x3e\n      \x3c!-- /ko --\x3e\n    \x3c!-- /ko --\x3e\n  \x3c!-- /ko --\x3e\n<\/script>"},function(e,t){e.exports='<script type="text/html" id="survey-row">\n  <div data-bind="css: row.getRowCss()">\n    \x3c!-- ko template: { name: "survey-row-content", afterRender: row.rowAfterRender } --\x3e\n    \x3c!-- /ko --\x3e\n  </div>\n<\/script>\n<script type="text/html" id="survey-row-content">\n\x3c!-- ko if: row.isNeedRender --\x3e\n\x3c!-- ko foreach: { data: row.visibleElements, as: \'question\', afterRender: row.koAfterRender } --\x3e\n<div\n  data-bind="css: question.koCss().questionWrapper, style: { flexBasis: renderWidth, flexGrow: 1, flexShrink: 1, width: renderWidth, minWidth: $data.minWidth, maxWidth: $data.maxWidth }">\n  \x3c!-- ko component: { name: row.panel.survey.getElementWrapperComponentName(question), params: { componentData:  row.panel.survey.getElementWrapperComponentData(question), templateData: { name: question.koElementType, data: question, afterRender: $parent.koElementAfterRender } } } --\x3e\n  \x3c!-- /ko --\x3e\n</div>\n\x3c!-- /ko --\x3e\n\x3c!-- /ko --\x3e\n\n\x3c!-- ko ifnot: row.isNeedRender --\x3e\n\x3c!-- ko foreach: { data: row.visibleElements, as: \'question\' } --\x3e\n\x3c!-- ko if: question.skeletonComponentName --\x3e\n<div\n  data-bind="css: question.koCss().questionWrapper, style: { flexBasis: renderWidth, flexGrow: 1, flexShrink: 1, width: renderWidth, minWidth: $data.minWidth, maxWidth: $data.maxWidth }">\n  \x3c!-- ko component: { name: question.skeletonComponentName, params: { data: question } } --\x3e\n  \x3c!-- /ko --\x3e\n</div>\n\x3c!-- /ko --\x3e\n\x3c!-- /ko --\x3e\n\x3c!-- /ko --\x3e\n<\/script>'},function(e,t){e.exports='<script type="text/html" id="survey-string">\n    \x3c!-- ko component: { name: renderAs, params: { locString: renderAsData } } --\x3e\n    \x3c!-- /ko --\x3e\n<\/script>\n'},function(e,t){e.exports='<script type="text/html" id="survey-timerpanel">\n    <div data-bind="text:koTimerInfoText"></div>\n<\/script>\n'},function(e,t){e.exports="<script type=\"text/html\" id=\"survey-question\">\n  <div data-bind=\"css: question.koRootCss(), style: { paddingLeft: question.paddingLeft, paddingRight: question.paddingRight }, attr: { id: question.id, name: question.name, role: question.ariaRole, 'aria-labelledby': question.hasTitle ? question.ariaTitleId : null}\">\n      \x3c!-- ko if: question.hasTitleOnLeftTop --\x3e\n      \x3c!--ko template: { name: 'survey-question-title', data: question  } --\x3e\n      \x3c!-- /ko --\x3e\n      \x3c!-- /ko --\x3e\n      <div data-bind=\"visible: !question.isCollapsed, css: question.cssContent\" >\n          \x3c!-- ko if: question.errorLocation === 'top' --\x3e\n              \x3c!-- ko template: { name: 'survey-question-errors', data: question } --\x3e\n              \x3c!-- /ko --\x3e\n          \x3c!-- /ko --\x3e\n          \x3c!-- ko if: question.isDefaultRendering() --\x3e\n            \x3c!-- ko template: { name: question.koTemplateName(), data: question, afterRender: question.koQuestionAfterRender } --\x3e\n            \x3c!-- /ko --\x3e\n          \x3c!-- /ko --\x3e\n          \x3c!-- ko ifnot: question.isDefaultRendering() --\x3e\n            \x3c!-- ko component: { name: getComponentName(), params: { question: question } } --\x3e\n            \x3c!-- /ko --\x3e\n          \x3c!-- /ko --\x3e\n          \x3c!-- ko if: question.hasComment --\x3e\n          <div data-bind=\"css: question.koCss().formGroup\">\n            \x3c!-- ko template: { name: 'survey-string', data: question.locCommentText } --\x3e\n            \x3c!-- /ko --\x3e\n            <div data-bind=\"template: { name: 'survey-comment', data: {'question': question, 'visible': true } }\"></div>\n          </div>\n          \x3c!-- /ko --\x3e\n          \x3c!-- ko if: question.errorLocation === 'bottom' --\x3e\n              \x3c!-- ko template: { name: 'survey-question-errors', data: question } --\x3e\n              \x3c!-- /ko --\x3e\n          \x3c!-- /ko --\x3e\n          <div data-bind=\"visible: question.hasDescriptionUnderInput, css: koCss().descriptionUnderInput\">\n              \x3c!-- ko template: { name: 'survey-string', data: locDescription } --\x3e\x3c!-- /ko --\x3e\n          </div>\n      </div>\n      \x3c!-- ko if: question.hasTitleOnBottom --\x3e\n      \x3c!--ko template: { name: 'survey-question-title', data: question  } --\x3e\n      \x3c!-- /ko --\x3e\n      \x3c!-- /ko --\x3e\n  </div>\n<\/script>\n"},function(e,t){e.exports='<script type="text/html" id="survey-question-title">\n  <div data-bind="css: question.cssHeader, click: question.clickTitleFunction">\n    \x3c!-- ko component: { name: \'survey-element-title\', params: {element: question } } --\x3e\x3c!-- /ko --\x3e\n    <div\n      data-bind="visible: question.hasDescriptionUnderTitle, css: koCss().description"\n    >\n      \x3c!-- ko template: { name: \'survey-string\', data: locDescription } --\x3e\x3c!-- /ko --\x3e\n    </div>\n  </div>\n<\/script>'},function(e,t){e.exports='<script type="text/html" id="survey-question-boolean">\n  <div data-bind="css: question.koCss().root">\n    <label data-bind="css: question.getItemCss()">\n      <input\n        type="checkbox"\n        data-bind="css: question.koCss().control, attr: {name: question.name, id: question.inputId, \'aria-required\': question.ariaRequired, \'aria-label\': question.ariaLabel, \'aria-invalid\': question.ariaInvalid, \'aria-describedby\': question.ariaDescribedBy}, checked: question.checkedValue, surveyProp: {indeterminate: question.isIndeterminate}, enable: !question.isInputReadOnly"\n      />\n      <span\n        data-bind="css: question.getLabelCss(false), click: onFalseLabelClick"\n        >\x3c!-- ko template: { name: \'survey-string\', data: locLabelFalse } --\x3e\x3c!-- /ko --\x3e</span\n      >\n      <div data-bind="css: question.koCss().switch, click: onSwitchClick">\n        <span data-bind="css: question.koCss().slider">\n          <span data-bind="css: question.koCss().sliderText">\n            \x3c!-- ko if: question.checkedValue === false --\x3e\n              \x3c!-- ko template: { name: \'survey-string\', data: locLabelFalse } --\x3e\x3c!-- /ko --\x3e\n            \x3c!-- /ko --\x3e\n            \x3c!-- ko if: question.checkedValue === true --\x3e\n              \x3c!-- ko template: { name: \'survey-string\', data: locLabelTrue } --\x3e\x3c!-- /ko --\x3e\n            \x3c!-- /ko --\x3e\n          </span>\n        </span>\n      </div>\n      <span\n        data-bind="css: question.getLabelCss(true), click: onTrueLabelClick"\n        >\x3c!-- ko template: { name: \'survey-string\', data: locLabelTrue } --\x3e\x3c!-- /ko --\x3e</span\n      >\n    </label>\n  </div>\n<\/script>'},function(e,t){e.exports='<script type="text/html" id="survey-question-checkbox">\n  <fieldset data-bind="css: question.koCss().root">\n      <legend data-bind="attr: { \'aria-label\': question.ariaLabel }" role="checkbox"></legend>\n      \x3c!-- ko ifnot: question.hasColumns  --\x3e\n        \x3c!-- ko foreach: { data: question.visibleChoices, as: \'item\', afterRender: question.koAfterRender }  --\x3e\n          \x3c!-- ko component: { name: question.getItemValueWrapperComponentName(item), params: { componentData:  question.getItemValueWrapperComponentData(item), templateData: { name: \'survey-checkbox-item\', data: item } } } --\x3e\n          \x3c!-- /ko --\x3e\n        \x3c!-- /ko --\x3e\n      \x3c!-- /ko --\x3e\n      \x3c!-- ko if: question.hasColumns  --\x3e\n        \x3c!-- ko foreach: question.columns --\x3e\n            <div data-bind="css: question.getColumnClass()">\n            \x3c!-- ko foreach: { data: $data, as: \'item\', afterRender: question.koAfterRender }  --\x3e\n              \x3c!-- ko component: { name: question.getItemValueWrapperComponentName(item), params: { componentData:  question.getItemValueWrapperComponentData(item), templateData: { name: \'survey-checkbox-item\', data: item } } } --\x3e\n              \x3c!-- /ko --\x3e\n            \x3c!-- /ko --\x3e\n            </div>\n        \x3c!-- /ko --\x3e\n      \x3c!-- /ko --\x3e\n    </fieldset>\n<\/script>\n<script type="text/html" id="survey-checkbox-item">\n  <div data-bind="css: question.getItemClass(item)">\n      <label data-bind="css: question.getLabelClass(item)">\n          \x3c!-- ko if: item == question.selectAllItem --\x3e\n          <input type="checkbox" data-bind="attr: {name: question.name, id: question.getItemId(item), \'aria-required\': question.ariaRequired, \'aria-label\': question.ariaLabel, \'aria-invalid\': question.ariaInvalid, \'aria-describedby\': question.ariaDescribedBy }, checked: question.koAllSelected, enable: question.getItemEnabled(item), css: question.koCss().itemControl"/>\n          \x3c!-- /ko --\x3e\n          \x3c!-- ko if: item != question.selectAllItem --\x3e\n          <input type="checkbox" data-bind="attr: {name: question.name, id: question.getItemId(item), \'aria-required\': question.ariaRequired, \'aria-label\': question.ariaLabel, \'aria-invalid\': question.ariaInvalid, \'aria-describedby\': question.ariaDescribedBy }, checkedValue: item.value, checked: question.koValue, enable: question.getItemEnabled(item), css: question.koCss().itemControl"/>\n          \x3c!-- /ko --\x3e\n          <span data-bind="css: question.koCss().materialDecorator">\n            <svg viewBox="0 0 24 24" data-bind="css: question.koCss().itemDecorator">\n              <path data-bind="attr: {d: question.checkBoxSvgPath}"/>\n            </svg>\n            <span class="check"></span>\n          </span>\n          <span data-bind="visible: !item.hideCaption, css: question.koCss().controlLabel, attr: { title: item.locText.koRenderedHtml }">\n              \x3c!-- ko template: { name: \'survey-string\', data: item.locText } --\x3e\n              \x3c!-- /ko --\x3e\n          </span>\n      </label>\n      \x3c!-- ko if: question.isOtherItem(item) --\x3e\n      <div class="form-group" data-bind="template: { name: \'survey-comment\', data: {\'question\': question, \'visible\': question.isOtherSelected } }"></div>\n      \x3c!-- /ko --\x3e\n  </div>\n<\/script>\n'},function(e,t){e.exports='<script type="text/html" id="survey-question-ranking">\n  <div data-bind="css: question.rootClass">\n    \x3c!-- ko foreach: { data: question.rankingChoices, as: \'item\', afterRender: question.koAfterRender } --\x3e\n      \x3c!-- ko component: { name: question.getItemValueWrapperComponentName(item), params: { componentData:  question.getItemValueWrapperComponentData(item), templateData: { name: \'survey-ranking-item\', data: item } } } --\x3e\n      \x3c!-- /ko --\x3e\n    \x3c!-- /ko --\x3e\n  </div>\n<\/script>\n\n<script type="text/html" id="survey-ranking-item">\n  <div\n    tabindex="0"\n    data-bind="event: { keydown: question.koHandleKeydown, pointerdown: question.koHandlePointerDown}, css: question.getItemClass($data), attr: {\'data-sv-drop-target-ranking-item\': $index() }"\n  >\n    <div tabindex="-1" style="outline: none;">\n      <div data-bind="css: question.cssClasses.itemGhostNode"></div>\n      <div data-bind="css: question.cssClasses.itemContent">\n        <div data-bind="css: question.cssClasses.itemIconContainer">\n          <svg\n            width="10"\n            height="16"\n            viewBox="0 0 10 16"\n            data-bind="css: question.getIconHoverCss()"\n            xmlns="http://www.w3.org/2000/svg"\n          >\n            <path\n              d="M6 2C6 0.9 6.9 0 8 0C9.1 0 10 0.9 10 2C10 3.1 9.1 4 8 4C6.9 4 6 3.1 6 2ZM2 0C0.9 0 0 0.9 0 2C0 3.1 0.9 4 2 4C3.1 4 4 3.1 4 2C4 0.9 3.1 0 2 0ZM8 6C6.9 6 6 6.9 6 8C6 9.1 6.9 10 8 10C9.1 10 10 9.1 10 8C10 6.9 9.1 6 8 6ZM2 6C0.9 6 0 6.9 0 8C0 9.1 0.9 10 2 10C3.1 10 4 9.1 4 8C4 6.9 3.1 6 2 6ZM8 12C6.9 12 6 12.9 6 14C6 15.1 6.9 16 8 16C9.1 16 10 15.1 10 14C10 12.9 9.1 12 8 12ZM2 12C0.9 12 0 12.9 0 14C0 15.1 0.9 16 2 16C3.1 16 4 15.1 4 14C4 12.9 3.1 12 2 12Z"\n            />\n          </svg>\n          <svg\n            width="10"\n            height="24"\n            viewBox="0 0 10 24"\n            data-bind="css: question.getIconFocusCss()"\n            xmlns="http://www.w3.org/2000/svg"\n          >\n            <path d="M10 5L5 0L0 5H4V9H6V5H10Z" />\n            <path d="M6 19V15H4V19H0L5 24L10 19H6Z" />\n          </svg>\n        </div>\n        <div\n          data-bind="css: question.cssClasses.itemIndex, text: question.getNumberByIndex($index())"\n        ></div>\n        <div data-bind="css: question.cssClasses.controlLabel">\n          \x3c!-- ko template: { name: \'survey-string\', data: $data.locText } --\x3e\n          \x3c!-- /ko --\x3e\n        </div>\n      </div>\n    </div>\n  </div>\n<\/script>\n'},function(e,t){e.exports="<script type=\"text/html\" id=\"survey-question-comment\">\n  \x3c!--ko if: !question.isReadOnlyRenderDiv() --\x3e\n<textarea type=\"text\" data-bind=\"attr: {'readonly': question.isReadOnly, 'disabled': question.isInputReadOnly, maxLength: question.getMaxLength(), cols: question.cols, rows: question.rows, id: question.inputId, placeholder: question.renderedPlaceHolder, 'aria-required': question.ariaRequired, 'aria-label': question.ariaLabel, 'aria-invalid': question.ariaInvalid, 'aria-describedby': question.ariaDescribedBy}, \n  event: { input: (s, e) => question.onInput(e), keydown: (s, e) => { question.onKeyDown(e); return true; } }, \n  value: question.value, \n  style: { resize: question.autoGrow ? 'none' : 'both'},\n  css: question.getControlClass()\"></textarea>\n\x3c!--/ko--\x3e\n\n\x3c!--ko if: question.isReadOnlyRenderDiv() --\x3e\n<div data-bind=\"text: question.value\"></div>\n\x3c!--/ko--\x3e\n<\/script>"},function(e,t){e.exports="<script type=\"text/html\" id=\"survey-question-composite\">\n  \x3c!-- ko template: { name: 'survey-panel', data: question.contentPanel, as: 'question', afterRender: question.contentPanel.koPanelAfterRender } --\x3e\n  \x3c!-- /ko --\x3e\n<\/script>\n"},function(e,t){e.exports='<script type="text/html" id="survey-question-custom">\n  \x3c!-- ko template: { name: question.contentQuestion.koTemplateName(), data: question.contentQuestion, as: \'question\', afterRender: question.contentQuestion.koQuestionAfterRender } --\x3e\n  \x3c!-- /ko --\x3e\n<\/script>\n'},function(e,t){e.exports="<script type=\"text/html\" id=\"survey-question-dropdown\">\n  <div data-bind=\"css: question.koCss().selectWrapper\">\n    \x3c!-- ko ifnot: question.isReadOnly --\x3e\n    <select\n      data-bind=\"if: true, attr: {id: question.inputId, autoComplete: question.autoComplete, required: question.isRequired, 'aria-required': question.ariaRequired, 'aria-label': question.ariaLabel, 'aria-invalid': question.ariaInvalid, 'aria-describedby': question.ariaDescribedBy}, disable: question.isInputReadOnly, value: question.renderedValue, valueAllowUnset: true, css: question.getControlClass()\">\n      \x3c!-- ko if: question.showOptionsCaption --\x3e\n      <option data-bind=\"text:question.optionsCaption, value: null\"></option>\n      \x3c!-- /ko --\x3e\n      \x3c!-- ko foreach: question.visibleChoices --\x3e\n      <option data-bind=\"value: $data.value, text: $data.text, attr: { disabled: !$data.isEnabled }\"></option>\n      \x3c!-- /ko --\x3e\n    </select>\n    \x3c!-- /ko --\x3e\n    \x3c!-- ko if: question.isReadOnly --\x3e\n      <div disabled\n      data-bind=\"attr: {id: question.inputId}, text: question.hasOther && question.isOtherSelected ? question.otherText : question.displayValue, css: question.getControlClass()\">\n      </div>\n    \x3c!-- /ko --\x3e\n  </div>\n  \x3c!-- ko if: question.hasOther --\x3e\n  <div class=\"form-group\"\n    data-bind=\"template: { name: 'survey-comment', data: {'question': question, 'visible': question.isOtherSelected } }, style: {display: question.isFlowLayout ? 'inline': ''}\">\n  </div>\n  \x3c!-- /ko --\x3e\n<\/script>\n"},function(e,t){e.exports='<script type="text/html" id="survey-question-empty">\n    <div></div>\n<\/script>\n'},function(e,t){e.exports='<script type="text/html" id="survey-question-errors">\n        <div role="alert" aria-live="polite" data-bind="visible: hasVisibleErrors, foreach: { data: errors, as: \'error\' }, css: koErrorClass(), attr: { id: question.id + \'_errors\' }">\n            <div data-bind="visible: error.visible">   \n                <span aria-hidden="true" data-bind="css: question.koCss().error.icon"></span>\n                <span data-bind="css: question.koCss().error.item">\n                    \x3c!-- ko template: { name: \'survey-string\', data: error.locText } --\x3e\x3c!-- /ko --\x3e\n                </span>\n            </div>\n        </div>\n<\/script>'},function(e,t){e.exports='<script type="text/html" id="survey-question-expression">\n  <div data-bind="text:question.displayValue, css: question.koCss().root"></div>\n<\/script>\n'},function(e,t){e.exports='<script type="text/html" id="survey-question-file">\n  <div data-bind="css: question.koCss().root">\n      \x3c!-- ko ifnot: question.isInputReadOnly --\x3e\n      <input type="file" data-bind="css: question.cssClasses.fileInput, attr: { id: question.inputId, \'aria-required\': question.ariaRequired, \'aria-label\': question.ariaLabel, \'aria-invalid\': question.ariaInvalid, \'aria-describedby\': question.ariaDescribedBy, multiple: question.allowMultiple ? \'multiple\' : undefined, title: koInputTitle, accept: question.acceptedTypes }, event: { change: question.dochange }">\n      \x3c!-- /ko --\x3e\n      \x3c!-- ko if: question.isReadOnly --\x3e\n      <input type="file" disabled data-bind="css: question.getReadOnlyFileCss(), attr: { placeholder: question.title }" style="color: transparent;"/>\n      \x3c!-- /ko --\x3e\n      <div data-bind="css: question.getFileDecoratorCss(), event: { dragover: question.ondragover, drop: question.ondrop, dragleave: question.ondragleave }">\n        <span data-bind="css: question.koCss().dragAreaPlaceholder, text: question.dragAreaPlaceholder"></span>\n        <div data-bind="css: question.koCss().wrapper">\n          <label role="button" data-bind="css: question.koChooseFileCss, attr: { for: question.inputId, \'aria-label\': question.chooseButtonCaption }, text: question.chooseButtonCaption"></label>\n          <span data-bind="css: question.koCss().noFileChosen, visible: !question.koHasValue(), text: question.noFileChosenCaption"></span>\n        </div>\n      </div>\n      \x3c!-- ko if: question.koHasValue() && !question.isReadOnly --\x3e\n      <button type="button" data-bind="css: question.cssClasses.removeButton, disabled: question.isInputReadOnly, click: question.doclean, text: question.cleanButtonCaption"></button>\n      \x3c!-- /ko --\x3e\n      <div data-bind="css: question.cssClasses.fileList, foreach: question.koData, visible: question.koHasValue">\n          <span data-bind="visible: question.showPreview, css: question.cssClasses.preview">\n              \x3c!-- ko if: $data.name --\x3e\n              <div data-bind="css: question.koCss().fileSign">\n              <a data-bind="style: { width: question.imageWidth + \'px\' }, click: question.dodownload, text: $data.name,\n              attr: { href: $data.content, title: $data.name, download: $data.name }"></a>\n              </div>\n              \x3c!-- /ko --\x3e\n              \x3c!-- ko if: question.canPreviewImage($data) --\x3e\n              <img data-bind="attr: { src: $data.content, height: question.imageHeight, width: question.imageWidth }" alt="File preview">\n              \x3c!-- /ko --\x3e\n              \x3c!-- ko ifnot: question.canPreviewImage($data) --\x3e\n              <img data-bind="css: question.koCss().defaultImage, attr: { height: question.imageHeight, width: question.imageWidth }">\n              \x3c!-- /ko --\x3e\n              \x3c!-- ko if: $data.name --\x3e\n              \x3c!-- ko ifnot: question.isReadOnly --\x3e\n              <div data-bind="click: question.doremovefile, css: question.cssClasses.removeFileButton">\n                  <span data-bind="css: question.cssClasses.removeFile, text: question.removeFileCaption"></span>\n                  <svg data-bind="css: question.cssClasses.removeFileSvg, title: question.removeFileCaption, click: question.doremovefile" viewBox="0 0 16 16">\n                    <path d="M8,2C4.7,2,2,4.7,2,8s2.7,6,6,6s6-2.7,6-6S11.3,2,8,2z M11,10l-1,1L8,9l-2,2l-1-1l2-2L5,6l1-1l2,2l2-2l1,1L9,8 L11,10z"/>\n                  </svg>\n              </div>\n              \x3c!-- /ko --\x3e\n              \x3c!-- ko if: $data.name --\x3e\n              <div data-bind="css: question.koCss().fileSignBottom">\n                <a data-bind="style: { width: question.imageWidth + \'px\' }, click: question.dodownload, text: $data.name, attr: { href: $data.content, title: $data.name, download: $data.name }"></a>\n              </div>\n              \x3c!-- /ko --\x3e\n              \x3c!-- /ko --\x3e\n          </span>\n      </div>\n      \x3c!-- ko if: question.koHasValue() && !question.isReadOnly --\x3e\n      <button type="button" data-bind="css: question.cssClasses.removeButtonBottom, disabled: question.isInputReadOnly, click: question.doclean, text: question.cleanButtonCaption"></button>\n      \x3c!-- /ko --\x3e\n  </div>\n<\/script>\n'},function(e,t){e.exports='<script type="text/html" id="survey-question-html">\n  <div data-bind="html: question.locHtml.koRenderedHtml, css: question.koCss().root"></div>\n<\/script>\n'},function(e,t){e.exports='<script type="text/html" id="survey-question-image">\n  <div data-bind="css: question.koCss().root">\n    \x3c!-- ko if: question.contentMode === "image" --\x3e\n    <img data-bind="css: question.koCss().image, attr: { src: $data.locImageLink.koRenderedHtml(), width: question.imageWidth ? question.imageWidth + \'px\' : undefined, height: question.imageHeight ? question.imageHeight + \'px\' : undefined, alt: question.text || question.title }, style: { objectFit: question.imageFit }"/>\n    \x3c!-- /ko --\x3e\n    \x3c!-- ko if: question.contentMode === "video" --\x3e\n    <embed data-bind="css: question.koCss().image, attr: { src: $data.locImageLink.koRenderedHtml(), width: question.imageWidth ? question.imageWidth + \'px\' : undefined, height: question.imageHeight ? question.imageHeight + \'px\' : undefined }, style: { objectFit: question.imageFit }"/>\n    \x3c!-- /ko --\x3e\n  </div>\n<\/script>\n'},function(e,t){e.exports="<script type=\"text/html\" id=\"survey-question-imagepicker\">\n  <fieldset data-bind=\"css: question.koCss().root\">\n      <legend data-bind=\"attr: { 'aria-label': question.locTitle.renderedHtml }\" role=\"radio\"></legend>\n      \x3c!-- ko foreach: { data: question.visibleChoices, as: 'item', afterRender: question.koAfterRender}  --\x3e\n        \x3c!-- ko component: { name: question.getItemValueWrapperComponentName(item), params: { componentData:  question.getItemValueWrapperComponentData(item), templateData: { name: 'survey-imagepicker-item', data: item } } } --\x3e\n        \x3c!-- /ko --\x3e\n      \x3c!-- /ko --\x3e\n  </fieldset>\n<\/script>\n<script type=\"text/html\" id=\"survey-imagepicker-item\">\n    <div data-bind=\"css: question.getItemClass(item)\">\n        <label data-bind=\"css: question.koCss().label\">\n            <input style=\"display: none;\" data-bind=\"attr: {type: question.multiSelect ? 'checkbox' : 'radio', name: question.name + '_' + question.id, value: item.value, id: question.inputId + '_' + item.value, 'aria-required': question.ariaRequired, 'aria-label': question.ariaLabel, 'aria-invalid': question.ariaInvalid, 'aria-describedby': question.ariaDescribedBy}, checked: question.koValue, enable: !question.isInputReadOnly && item.isEnabled, css: question.koCss().itemControl\"\n            />\n            <div>\n                \x3c!-- ko if: question.contentMode === \"image\" --\x3e\n                <img data-bind=\"css: question.koCss().image, attr: { src: $data.locImageLink.koRenderedHtml, width: question.imageWidth ? question.imageWidth + 'px' : undefined, height: question.imageHeight ? question.imageHeight + 'px' : undefined, alt: item.locText.koRenderedHtml }, style: { objectFit: question.imageFit }\"/>\n                \x3c!-- /ko --\x3e\n                \x3c!-- ko if: question.contentMode === \"video\" --\x3e\n                <embed data-bind=\"css: question.koCss().image, attr: { src: $data.locImageLink.koRenderedHtml, width: question.imageWidth ? question.imageWidth + 'px' : undefined, height: question.imageHeight ? question.imageHeight + 'px' : undefined }, style: { objectFit: question.imageFit }\"/>\n                \x3c!-- /ko --\x3e\n                \x3c!-- ko if: question.showLabel --\x3e\n                <span data-bind=\"css: question.koCss().itemText, attr: { title: item.locText.koRenderedHtml }\">\n                  \x3c!-- ko template: { name: 'survey-string', data: item.locText } --\x3e\n                  \x3c!-- /ko --\x3e\n              </span>\n                \x3c!-- /ko --\x3e\n            </div>\n        </label>\n    </div>\n<\/script>"},function(e,t){e.exports='<script type="text/html" id="survey-question-matrix">\n  <div data-bind="css: question.koCss().tableWrapper">\n    <fieldset>\n      <legend\n        data-bind="attr: { \'aria-label\': question.locTitle.renderedHtml }"\n      ></legend>\n      <table data-bind="css: question.koCss().root">\n        \x3c!-- ko if: question.showHeader --\x3e\n        <thead>\n          <tr>\n            <td data-bind="visible: question.hasRows"></td>\n            \x3c!-- ko foreach: question.koVisibleColumns --\x3e\n            <th data-bind="css: question.koCss().headerCell">\n              \x3c!-- ko component: { name: question.getColumnHeaderWrapperComponentName($data), params: { componentData:  question.getColumnHeaderWrapperComponentData($data), templateData: { data: $data } } } --\x3e\n                \x3c!-- ko template: { name: \'survey-string\', data: $data.locText } --\x3e\x3c!-- /ko --\x3e\n              \x3c!-- /ko --\x3e\n            </th>\n            \x3c!-- /ko --\x3e\n          </tr>\n        </thead>\n        \x3c!-- /ko --\x3e\n        <tbody>\n          \x3c!-- ko foreach: { data: question.koVisibleRows, as: \'row\' } --\x3e\n          <tr data-bind="css: row.rowClasses">\n            <td\n              data-bind="visible: question.hasRows, css: question.koCss().cell"\n            >\n              \x3c!-- ko component: { name: question.getRowHeaderWrapperComponentName($data), params: { componentData:  question.getRowHeaderWrapperComponentData($data), templateData: { data: $data } } } --\x3e\n                \x3c!-- ko template: { name: \'survey-string\', data: row.locText } --\x3e\n                \x3c!-- /ko --\x3e\n              \x3c!-- /ko --\x3e\n            </td>\n            \x3c!-- ko foreach: question.koVisibleColumns --\x3e\n            \x3c!-- ko if: question.hasCellText --\x3e\n            <td\n              data-bind="css: question.getItemClass(row, $data), click: function() { if (!question.isInputReadOnly) { row.cellClick($data); } }"\n            >\n              \x3c!-- ko template: { name: \'survey-string\', data: question.getCellDisplayLocText(row.name, $data) } --\x3e\n              \x3c!-- /ko --\x3e\n            </td>\n            \x3c!-- /ko --\x3e\n            \x3c!-- ko if: !question.hasCellText --\x3e\n            <td\n              data-bind="attr: { title: $data.locText.renderedHtml }, css: question.koCss().cell"\n            >\n              <label data-bind="css: question.getItemClass(row, $data)">\n                <input\n                  type="radio"\n                  data-bind="css: question.koCss().itemValue, attr: { name: row.fullName, \'aria-required\': question.ariaRequired, \'aria-label\': question.ariaLabel, \'aria-invalid\': question.ariaInvalid, \'aria-describedby\': question.ariaDescribedBy, id: question.inputId + \'_\' + row.name + \'_\' + $index() }, checkedValue: $data.value, checked: row.value, enable: !question.isInputReadOnly"\n                />\n                <span data-bind="css: question.koCss().materialDecorator">\n                  <svg\n                    data-bind="css:question.koCss().itemDecorator"\n                    viewBox="-12 -12 24 24"\n                  >\n                    <circle r="6" cx="0" cy="0" />\n                  </svg>\n                </span>\n                <span class="circle"></span>\n                <span class="check"></span>\n                <span\n                  style="display: none"\n                  data-bind="text: $data.locText.text"\n                ></span>\n              </label>\n            </td>\n            \x3c!-- /ko --\x3e\n            \x3c!-- /ko --\x3e\n          </tr>\n          \x3c!-- /ko --\x3e\n        </tbody>\n      </table>\n    </fieldset>\n  </div>\n<\/script>\n<script type="text/html" id="survey-text">\n  <span data-bind="text:$data.renderedHtml"></span>\n<\/script>\n'},function(e,t){e.exports='\ufeff<script type="text/html" id="survey-question-matrixdynamic">\n    <div>\n    \x3c!-- ko if: question.koTable().showAddRowOnTop --\x3e\n    <div\n      data-bind="css: question.koCss().footer"\n    >\n      <button\n        type="button"\n        data-bind="click: question.isDesignMode ? undefined : question.koAddRowClick, css: question.getAddRowButtonCss(), disable: question.isInputReadOnly"\n      >\n        \x3c!-- ko template: { name: \'survey-string\', data: question.locAddRowText } --\x3e\x3c!-- /ko --\x3e\n        <span data-bind="css: question.koCss().iconAdd"></span>\n      </button>\n    </div>\n    \x3c!-- /ko --\x3e\n    <div\n      data-bind="visible: question.koTable().showTable, style: { overflowX: question.horizontalScroll ? \'scroll\': \'\' }"\n    >\n      <table data-bind="css: question.koCss().root">\n        \x3c!-- ko if: question.koTable().showHeader --\x3e\n        <thead>\n          <tr>\n            \x3c!-- ko foreach: question.koTable().headerRow.cells --\x3e\n            <th\n              data-bind="style: { minWidth: $data.minWidth, width: $data.width }, css: question.koCss().headerCell"\n            >\n              \x3c!-- ko if: $data.hasTitle --\x3e\n              \x3c!-- ko component: { name: question.getColumnHeaderWrapperComponentName($data), params: { componentData:  question.getColumnHeaderWrapperComponentData($data), templateData: { data: $data } } } --\x3e\n                \x3c!-- ko template: { name: \'survey-string\', data: $data.locTitle } --\x3e\x3c!-- /ko --\x3e\n                \x3c!-- ko if: $data.requiredText --\x3e\n                <span data-bind="text: $data.requiredText"></span>\n                \x3c!-- /ko --\x3e\n              \x3c!-- /ko --\x3e\n              \x3c!-- /ko --\x3e\n            </th>\n            \x3c!-- /ko --\x3e\n          </tr>\n        </thead>\n        \x3c!-- /ko --\x3e\n        <tbody>\n          \x3c!-- ko foreach: question.koTable().rows --\x3e\n          \x3c!-- ko ifnot: $parent.detailPanelMode === "popup" && $data.isDetailRow --\x3e\n          <tr data-bind="css: $data.className, attr: attributes">\n            \x3c!-- ko foreach: $data.cells --\x3e\n            \x3c!-- ko if: $data.isDragHandlerCell --\x3e\n            <td data-bind="css:$data.className, attr: {colspan: $data.colSpans}">\n              \x3c!-- ko component: { name: \'sv-matrix-drag-drop-icon\', params: { item: { data: { row: row, question: question } } }} --\x3e\n              \x3c!-- /ko --\x3e\n            </td>\n            \x3c!-- /ko --\x3e\n            \x3c!-- ko if: $data.isActionsCell --\x3e\n            <td data-bind="css: $data.className, attr: { colspan: $data.colSpans }">\n              \x3c!-- ko component: { name: \'sv-action-bar\', params: { model: $data.item.getData(), handleClick: false } } --\x3e\n              \x3c!-- /ko --\x3e\n            </td>\n            \x3c!-- /ko --\x3e\n            \x3c!-- ko if: $data.isEmpty --\x3e\n            <td data-bind="attr: { colspan: $data.colSpans }"></td>\n            \x3c!-- /ko --\x3e\n            \x3c!-- ko if: $data.hasPanel --\x3e\n            <td data-bind="css: $data.className, attr: { colspan: $data.colSpans }">\n              \x3c!-- ko template: { name: $data.panel.koElementType, data: $data.panel, afterRender: question.koPanelAfterRender } --\x3e\n              \x3c!-- /ko --\x3e\n            </td>\n            \x3c!-- /ko --\x3e\n            \x3c!-- ko if: $data.hasQuestion --\x3e\n            \x3c!-- ko template: { name: \'survey-matrixcell\', afterRender: function(els) { $data.matrix.koCellAfterRender(els, $data); } } --\x3e\x3c!-- /ko --\x3e\n            \x3c!-- /ko --\x3e\n            \x3c!-- ko if: $data.hasTitle --\x3e\n            <td\n              data-bind="css: $data.className, style: { minWidth: $data.minWidth, width: $data.width }"\n            >\n              \x3c!-- ko component: { name: question.getRowHeaderWrapperComponentName($data), params: { componentData:  question.getRowHeaderWrapperComponentData($data), templateData: { data: $data } } } --\x3e\n              \x3c!-- ko template: { name: \'survey-string\', data: $data.locTitle } --\x3e\x3c!-- /ko --\x3e\n              \x3c!-- ko if: $data.requiredText --\x3e\n              <span data-bind="text: $data.requiredText"></span>\n              \x3c!-- /ko --\x3e\n              \x3c!-- /ko --\x3e\n            </td>\n            \x3c!-- /ko --\x3e\n            \x3c!-- /ko --\x3e\n          </tr>\n\n          \x3c!-- /ko --\x3e\n          \x3c!-- /ko --\x3e\n        </tbody>\n        \x3c!-- ko if:question.koTable().hasFooter --\x3e\n        <tfoot>\n          <tr>\n            \x3c!-- ko foreach: question.koTable().footerRow.cells --\x3e\n            <td>\n              \x3c!-- ko if: $data.hasQuestion --\x3e\n              \x3c!-- ko template: { name: \'survey-matrixcell\', afterRender: function(els) { $data.matrix.koCellAfterRender(els, $data); } } --\x3e\x3c!-- /ko --\x3e\n              \x3c!-- /ko --\x3e\n              \x3c!-- ko if: $data.hasTitle --\x3e\x3c!-- ko template: { name: \'survey-string\', data: $data.locTitle } --\x3e\x3c!-- /ko --\x3e\x3c!-- /ko --\x3e\n            </td>\n            \x3c!-- /ko --\x3e\n          </tr>\n        </tfoot>\n        \x3c!-- /ko --\x3e\n      </table>\n    </div>\n    \x3c!-- ko ifnot: question.koTable().showTable --\x3e\n    <div data-bind="css: question.koCss().emptyRowsSection">\n      <div data-bind="css: question.koCss().emptyRowsText">\n        \x3c!-- ko template: { name: \'survey-string\', data: question.locEmptyRowsText } --\x3e\x3c!-- /ko --\x3e\n      </div>\n      <button\n        type="button"\n        data-bind="click:question.koAddRowClick, css: question.getAddRowButtonCss(true), disable: question.isInputReadOnly"\n      >\n        \x3c!-- ko template: { name: \'survey-string\', data: question.locAddRowText } --\x3e\x3c!-- /ko --\x3e\n        <span data-bind="css: question.koCss().iconAdd"></span>\n      </button>\n    </div>\n    \x3c!-- /ko --\x3e\n    \x3c!-- ko if: question.koTable().showAddRowOnBottom --\x3e\n    <div\n      data-bind="css: question.koCss().footer"\n    >\n      <button\n        type="button"\n        data-bind="click: question.koAddRowClick, css: question.getAddRowButtonCss(), disable: question.isInputReadOnly"\n      >\n        \x3c!-- ko template: { name: \'survey-string\', data: question.locAddRowText } --\x3e\x3c!-- /ko --\x3e\n        <span data-bind="css: question.koCss().iconAdd"></span>\n      </button>\n    </div>\n    \x3c!-- /ko --\x3e\n  </div>\n<\/script>\n<script type="text/html" id="survey-matrixcell">\n  <td\n    data-bind="css: $data.className, style: { minWidth: $data.minWidth, width: $data.width }, attr: { title: headers }"\n  >\n    <div data-bind="visible: question.isVisible">\n      \x3c!-- ko if: $data.showErrorOnTop --\x3e\n      \x3c!-- ko template: { name: \'survey-question-errors\', data: question, as: \'question\' } --\x3e\n      \x3c!-- /ko --\x3e\n      \x3c!-- /ko --\x3e\n      \x3c!-- ko if: $data.isChoice --\x3e\n      \x3c!-- ko if: $data.isCheckbox --\x3e\n        \x3c!-- ko template: {name: \'survey-checkbox-item\', templateOptions: {hideCaption: true} }  --\x3e\x3c!-- /ko --\x3e\n      \x3c!-- /ko --\x3e\n      \x3c!-- ko ifnot: $data.isCheckbox --\x3e\n        \x3c!-- ko template: {name: \'survey-radiogroup-item\', templateOptions: {hideCaption: true} }  --\x3e\x3c!-- /ko --\x3e\n      \x3c!-- /ko --\x3e\n      \x3c!-- /ko --\x3e\n      \x3c!-- ko ifnot: $data.isChoice --\x3e\n      \x3c!-- ko if: question.isDefaultRendering() --\x3e\n        \x3c!-- ko let: { question: $data.matrix.getCellTemplateData($data) } --\x3e\n        \x3c!-- ko component: { name: $data.matrix.getCellWrapperComponentName($data), params: { componentData:  $data.matrix.getCellWrapperComponentData($data), templateData: { name: question.koTemplateName(), data: question, afterRender: function(el) { $data.matrix.koCellQuestionAfterRender(el, $data); } } } } --\x3e\n        \x3c!-- /ko --\x3e\n        \x3c!-- /ko --\x3e\n      \x3c!-- /ko --\x3e\n      \x3c!-- ko ifnot: question.isDefaultRendering() --\x3e\n        \x3c!-- ko component: { name: question.getComponentName(), params: { question: question } } --\x3e\n        \x3c!-- /ko --\x3e\n      \x3c!-- /ko --\x3e\n      \x3c!-- /ko --\x3e\n      \x3c!-- ko if: $data.showErrorOnBottom --\x3e\n      \x3c!-- ko template: { name: \'survey-question-errors\', data: question, as: \'question\' } --\x3e\n      \x3c!-- /ko --\x3e\n      \x3c!-- /ko --\x3e\n    </div>\n  </td>\n<\/script>\n'},function(e,t){e.exports="<script type=\"text/html\" id=\"survey-question-multipletext\">\n  <table data-bind=\"css: question.koCss().root, foreach: { data:  question.koRows, as: 'row' }\">\n      <tr data-bind=\"foreach: { data: row, as: 'item' }, css: question.koCss().row\">\n          <td data-bind=\"css: question.koItemTitleCss\">\n            \x3c!-- ko component: { name: 'survey-element-title-content', params: {element: item.editor} } --\x3e\x3c!-- /ko --\x3e\n          </td>\n          <td data-bind=\"css: question.koItemCss\">\n            \x3c!-- ko if: item.editor.errorLocation === 'top' --\x3e\n            <div data-bind=\"css: question.koCss().error.locationTop\">\n                \x3c!-- ko template: { name: 'survey-question-errors', data: item.editor } --\x3e\n                \x3c!-- /ko --\x3e\n            </div>\n            \x3c!-- /ko --\x3e\n            \x3c!-- ko template: { name: item.editor.koTemplateName(), data: item.editor, as: 'question', afterRender: item.editor.koQuestionAfterRender } --\x3e\n            \x3c!-- /ko --\x3e\n            \x3c!-- ko if: item.editor.errorLocation === 'bottom' --\x3e\n              \x3c!-- ko template: { name: 'survey-question-errors', data: item.editor } --\x3e\n              \x3c!-- /ko --\x3e\n            \x3c!-- /ko --\x3e\n        </td>\n      </tr>\n  </table>\n<\/script>\n"},function(e,t){e.exports='<script type="text/html" id="survey-question-paneldynamic">\n  <div data-bind="css: question.koCss().root">\n    \x3c!-- ko if: question.koIsList() --\x3e\n      \x3c!-- ko foreach: { data: question.panels } --\x3e\n        <div data-bind="css: question.getPanelWrapperCss()">\n          \x3c!-- ko let: { question: $data } --\x3e\n            \x3c!-- ko component: { name: survey.getElementWrapperComponentName(question), params: { componentData:  survey.getElementWrapperComponentData(question), templateData: { name: question.koElementType, data: question, afterRender: $parent.koPanelAfterRender } } } --\x3e\n            \x3c!-- /ko --\x3e\n          \x3c!-- /ko --\x3e\n          <button type="button"\n            data-bind="visible: question.koCanRemovePanel() && $data.state != \'collapsed\', click:question.koRemovePanelClick, css: question.getPanelRemoveButtonCss()">\n            <span data-bind="css: question.koCss().buttonRemoveText, text: question.panelRemoveText"></span>\n            <span data-bind="css: question.koCss().iconRemove"></span>\n          </button>\n        </div>\n        <hr data-bind="css: question.koCss().separator"/>\n      \x3c!-- /ko --\x3e\n      <button type="button" data-bind="visible: question.koCanAddPanel, click: question.koAddPanelClick, css: question.koAddButtonCss">\n        <span data-bind="css: question.koCss().buttonAddText, text: question.panelAddText"></span>\n      </button>\n    \x3c!-- /ko --\x3e\n    \x3c!-- ko ifnot: question.koIsList()  --\x3e\n      <div data-bind="visible:question.koIsProgressTop, css: question.koCss().progressTop">\n        \x3c!-- ko template: { name: \'survey-question-paneldynamic-navigator\', data: question, as: \'question\'} --\x3e\n        \x3c!-- /ko --\x3e\n      </div>\n      \x3c!-- ko if: question.koPanel() --\x3e\n        \x3c!-- ko let: { question: question.koPanel() } --\x3e\n        \x3c!-- ko component: { name: question.survey.getElementWrapperComponentName(question), params: { componentData:  question.survey.getElementWrapperComponentData(question), templateData: { name: question.koElementType, data: question, afterRender: $parent.koPanelAfterRender } } } --\x3e\n        \x3c!-- /ko --\x3e\n        \x3c!-- /ko --\x3e\n      \x3c!-- /ko --\x3e\n      <button type="button"\n        data-bind="visible: question.koCanRemovePanel, click: question.koRemovePanelClick, css: question.getPanelRemoveButtonCss()">\n        <span data-bind="css: question.koCss().buttonRemoveText, text: question.panelRemoveText"></span>\n        <span data-bind="css: question.koCss().iconRemove"></span>\n      </button>\n      <div data-bind="visible:question.koIsProgressBottom,  css: question.koCss().progressBottom">\n        \x3c!-- ko template: { name: \'survey-question-paneldynamic-navigator\', data: question, as: \'question\'} --\x3e\n        \x3c!-- /ko --\x3e\n      </div>\n    \x3c!-- /ko --\x3e\n  </div>\n<\/script>\n'},function(e,t){e.exports='<script type="text/html" id="survey-question-paneldynamic-navigator">\n  <div style="clear: both;">\n        <div data-bind="css: question.koCss().progressContainer">\n          <div data-bind="title: question.panelPrevText, click: question.koPrevPanelClick">\n            <svg viewBox="0 0 10 10" data-bind="css: question.koPrevButtonCss">\n              <polygon points="2,2 0,4 5,9 10,4 8,2 5,5 " />\n            </svg>\n          </div>\n\n          \x3c!-- ko if: question.koIsRange --\x3e\n          <div data-bind="css: question.koCss().progress">\n            <div\n              data-bind="css: question.koCss().progressBar, style: { width: question.koProgress }"\n              role="progressbar"\n            ></div>\n          </div>\n          \x3c!-- /ko --\x3e\n\n          <div data-bind="title: question.panelNextText, click: question.koNextPanelClick">\n            <svg viewBox="0 0 10 10" data-bind="css: question.koNextButtonCss">\n              <polygon points="2,2 0,4 5,9 10,4 8,2 5,5 " />\n            </svg>\n          </div>\n        </div>\n\n        \x3c!-- ko if: question.canAddPanel --\x3e\n        <button type="button" data-bind="click: question.koAddPanelClick, css: question.koAddButtonCss">\n          <span data-bind="css: question.koCss().buttonAddText, text: question.panelAddText"></span>\n        </button>\n        \x3c!-- /ko --\x3e\n\n        <div data-bind="text: question.koProgressText, css: question.koCss().progressText"></div>\n      </div>\n<\/script>'},function(e,t){e.exports='<script type="text/html" id="survey-question-radiogroup">\n\n  <fieldset data-bind="css: question.koCss().root">\n    \x3c!-- ko ifnot: question.hasColumns --\x3e\n    \x3c!-- ko foreach: { data: question.visibleChoices, as: \'item\', afterRender: question.koAfterRender } --\x3e\n      \x3c!-- ko component: { name: question.getItemValueWrapperComponentName(item), params: { componentData:  question.getItemValueWrapperComponentData(item), templateData: { name: \'survey-radiogroup-item\', data: item } } } --\x3e\n      \x3c!-- /ko --\x3e\n    \x3c!-- /ko --\x3e\n    \x3c!-- /ko --\x3e\n    \x3c!-- ko if: question.hasColumns --\x3e\n    \x3c!-- ko foreach: question.columns --\x3e\n    <div data-bind="css: question.getColumnClass()">\n      \x3c!-- ko foreach: { data: $data, as: \'item\', afterRender: question.koAfterRender } --\x3e\n        \x3c!-- ko component: { name: question.getItemValueWrapperComponentName(item), params: { componentData:  question.getItemValueWrapperComponentData(item), templateData: { name: \'survey-radiogroup-item\', data: item } } } --\x3e\n        \x3c!-- /ko --\x3e\n      \x3c!-- /ko --\x3e\n    </div>\n    \x3c!-- /ko --\x3e\n    \x3c!-- /ko --\x3e\n    \x3c!-- ko if: question.canShowClearButton --\x3e\n    <div>\n      <input\n        type="button"\n        data-bind="click:question.clearValue, css: question.koCss().clearButton, value: question.clearButtonCaption"\n      />\n    </div>\n    \x3c!-- /ko --\x3e\n  </fieldset>\n<\/script>\n<script type="text/html" id="survey-radiogroup-item">\n  <div data-bind="css: question.getItemClass(item), attr: { \'aria-checked\': question.renderedValue === item.value ? \'true\': \'false\', \'aria-required\': question.ariaRequired, \'aria-invalid\': question.ariaInvalid, \'aria-describedby\': question.ariaDescribedBy }" role="radio">\n    <label data-bind="css: question.getLabelClass(item), attr: { \'aria-label\': item.locText.renderedHtml }">\n      <input\n        type="radio"\n        aria-hidden="true"\n        data-bind="attr: { name: question.name + \'_\' + question.id, id: question.inputId + \'_\' + question.getItemIndex(item)}, checkedValue: item.value, checked: question.renderedValue, enable: !question.isInputReadOnly && item.isEnabled, css: question.koCss().itemControl"\n      />\n      <span data-bind="css: question.koCss().materialDecorator">\n        <svg\n          data-bind="css:question.koCss().itemDecorator"\n          viewBox="-12 -12 24 24"\n        >\n          <circle r="6" cx="0" cy="0" />\n        </svg>\n      </span>\n      <span class="check"></span>\n      <span\n        data-bind="visible: !item.hideCaption, css: question.getControlLabelClass(item), attr: { title: item.locText.koRenderedHtml }"\n      >\n        \x3c!-- ko template: { name: \'survey-string\', data: item.locText } --\x3e\n        \x3c!-- /ko --\x3e\n      </span>\n    </label>\n    \x3c!-- ko if: question.hasOther && (item.value == question.otherItem.value) --\x3e\n    <div\n      class="form-group"\n      data-bind="template: { name: \'survey-comment\', data: {\'question\': question, \'visible\': question.isOtherSelected}}"\n    ></div>\n    \x3c!-- /ko --\x3e\n  </div>\n<\/script>\n'},function(e,t){e.exports='<script type="text/html" id="survey-question-rating">\n    <div data-bind="css: question.koCss().root">\n        <fieldset role="radiogroup">\n            <legend\n            data-bind="attr: { \'aria-label\': question.locTitle.renderedHtml }"\n            ></legend>\n            \x3c!-- ko foreach: question.koVisibleRateValues --\x3e\n            <label data-bind="css: question.getItemClass($data)">\n                <input\n                type="checkbox"\n                class="sv-visuallyhidden"\n                data-bind="attr: { name: question.name, id: question.inputId + \'_\' + $index(), value: $data.value, \'aria-required\': question.ariaRequired, \'aria-label\': question.ariaLabel, \'aria-invalid\': question.ariaInvalid, \'aria-describedby\': question.ariaDescribedBy }, checkedValue: $data.value, checked: question.value, enable: !question.isInputReadOnly"\n                />\n                \x3c!-- ko if: $index() == 0 --\x3e\n                <span data-bind="css: question.koCss().minText">\n                \x3c!-- ko template: { name: \'survey-string\', data: question.locMinRateDescription } --\x3e\n                \x3c!-- /ko --\x3e\n                </span>\n                \x3c!-- /ko --\x3e\n\n                <span data-bind="css: question.koCss().itemText">\n                \x3c!-- ko template: { name: \'survey-string\', data: $data.locText } --\x3e\n                \x3c!-- /ko --\x3e\n                </span>\n\n                \x3c!-- ko if: $index() == (question.koVisibleRateValues().length-1) --\x3e\n                <span data-bind="css: question.koCss().maxText">\n                \x3c!-- ko template: { name: \'survey-string\', data: question.locMaxRateDescription } --\x3e\n                \x3c!-- /ko --\x3e\n                </span>\n                \x3c!-- /ko --\x3e\n            </label>\n            \x3c!-- /ko --\x3e\n        </fieldset>\n    </div>\n\n    <div data-bind="visible: question.hasOther">\n      <div\n        data-bind="template: { name: \'survey-comment\', data: { \'question\': question } }"\n      ></div>\n    </div>\n  </fieldset>\n<\/script>\n'},function(e,t){e.exports='<script type="text/html" id="survey-question-signaturepad">\n    <div data-bind="css: question.koCss().root, style: { height: height, width: width }">\n        <div \n            data-bind="text: placeHolderText, css: question.koCss().placeholder, visible: $data.needShowPlaceholder()">\n        </div>\n        <div>\n            <canvas tabindex=\'0\'></canvas>\n        </div>\n        <div data-bind="css: question.koCss().controls, visible: !question.isInputReadOnly">\n            <button type=\'button\'\n                data-bind="css: question.koCss().clearButton, attr: { title: question.clearButtonCaption }">✖</button>\n        </div>\n    </div>\n<\/script>'},function(e,t){e.exports="<script type=\"text/html\" id=\"survey-question-text\">\n  \x3c!--ko if: !question.isInputTextUpdate --\x3e\n  <input\n    data-bind=\"disable: question.isInputReadOnly, style: question.inputStyle, attr: {type: question.inputType, size: question.inputSize, id: question.inputId, placeholder: question.renderedPlaceHolder, maxLength: question.getMaxLength(), min: question.renderedMin, max: question.renderedMax, step: question.renderedStep, 'aria-required': question.ariaRequired, 'aria-label': question.ariaLabel, 'aria-invalid': question.ariaInvalid, 'aria-describedby': question.ariaDescribedBy, autoComplete: question.autoComplete, list:question.dataListId}, value: question.value, css: question.getControlClass()\"\n  />\n  \x3c!--/ko--\x3e\n  \x3c!--ko if: question.isInputTextUpdate --\x3e\n  <input\n    data-bind=\"disable: question.isInputReadOnly, style: question.inputStyle, attr: {type: question.inputType, size: question.inputSize, id: question.inputId, placeholder: question.renderedPlaceHolder, maxLength: question.getMaxLength(), min: question.renderedMin, max: question.renderedMax, step: question.renderedStep, 'aria-required': question.ariaRequired, 'aria-label': question.ariaLabel, 'aria-invalid': question.ariaInvalid, 'aria-describedby': question.ariaDescribedBy, autoComplete: question.autoComplete, list:question.dataListId}, textInput: question.value, css: question.getControlClass()\"\n  />\n  \x3c!--/ko--\x3e\n  \x3c!--ko if: question.dataListId --\x3e\n  <datalist data-bind=\"attr: {id: question.dataListId}\">\n    \x3c!-- ko foreach: question.dataList --\x3e\n      <option data-bind=\"value:$data\"></option>\n    \x3c!--/ko--\x3e\n  </datalist>\n  \x3c!--/ko--\x3e\n<\/script>\n"},function(e,t){e.exports='<script type="text/html" id="survey-question-buttongroup">\n  <div role="group" data-bind="css: question.koCss().root">\n      \x3c!-- ko foreach: question.visibleChoices --\x3e\n        \x3c!-- ko component: { name: \'sv-button-group-item\', params: { question: question, item: $data, index: $index } } --\x3e\n        \x3c!-- /ko --\x3e\n      \x3c!-- /ko --\x3e\n    </div>\n<\/script>\n'},function(e,t){e.exports='<div style="position: fixed; bottom: 3px; right: 10px; max-width: 60%;" data-bind="css: css.window.root">\n    <div data-bind="css: css.window.header.root">\n        <span data-bind="click:doExpand" style="width: 100%; cursor: pointer;">\n            <span style="padding-right:10px" data-bind="css: css.window.header.title, text: locTitle.koRenderedHtml"></span>\n            <span aria-hidden="true" data-bind="css: koExpandedCss"></span>\n        </span>\n        <span data-bind="visible:koExpanded, click:doExpand" style="float: right; cursor: pointer;">\n            <span style="padding-right:10px" data-bind="css: css.window.header.title">X</span>\n        </span>\n    </div>\n    <div data-bind="visible:koExpanded, css: css.window.body">\n        <div id="windowSurveyJS"></div>\n    </div>\n</div>'},function(e,t){e.exports="\x3c!-- ko if: model.hasActions --\x3e\n<div\n  data-bind=\"css: model.css, click: handleClick ? function() { return true; } : undefined, clickBubble: handleClick ? false : undefined\"\n>\n  \x3c!-- ko foreach: model.renderedActions --\x3e\n  \x3c!-- ko component: { name: 'sv-action', params: { item: $data } } --\x3e\n  \x3c!-- /ko --\x3e\n  \x3c!--/ko--\x3e\n</div>\n\x3c!--/ko--\x3e\n"},function(e,t){e.exports='\x3c!-- ko with: $data.item --\x3e\r\n<div data-bind="class: $data.getActionRootCss(), attr: { id: $data.id }">\r\n    <div class="sv-action__content">\r\n        \x3c!-- ko if: $data.needSeparator --\x3e\r\n        <sv-action-bar-separator></sv-action-bar-separator>\r\n        \x3c!-- /ko --\x3e\r\n        \x3c!-- ko ifnot: $data.template--\x3e\r\n        \x3c!-- ko component: { name: $data.component || \'sv-action-bar-item\', params: { item: $data } } --\x3e\r\n        \x3c!-- /ko --\x3e\r\n        \x3c!-- /ko --\x3e\r\n        \x3c!-- ko if: $data.template  --\x3e\r\n        \x3c!-- ko template: { name: $data.template, data: $data.data || $data } --\x3e\r\n        \x3c!-- /ko --\x3e\r\n        \x3c!-- /ko --\x3e\r\n    </div>\r\n</div>\r\n\x3c!-- /ko --\x3e'},function(e,t){e.exports='\x3c!-- ko with: $data.item --\x3e\n<button\n  type="button"\n  data-bind="click: action, key2click: { processEsc: false }, disable: $data.disabled, css: getActionBarItemActiveCss(), attr: { title: $data.tooltip || $data.title }"\n>\n  \x3c!-- ko if: $data.iconName --\x3e\n  <sv-svg-icon\n    class="sv-action-bar-item__icon"\n    params="iconName: iconName, size: iconSize"\n  ></sv-svg-icon>\n  \x3c!-- /ko --\x3e\n\n  \x3c!-- ko if: $data.hasTitle --\x3e\n  <span\n    data-bind="text: title, css: getActionBarItemCss()"\n  ></span>\n  \x3c!-- /ko --\x3e\n</button>\n\x3c!-- /ko --\x3e'},function(e,t){e.exports='\x3c!-- ko with: $data.item --\x3e\n<button class="sv-action-bar-item-dropdown"\n  data-bind="click: action, key2click: { processEsc: false }, css: getActionBarItemActiveCss(), attr: { disabled: $data.enabled !== undefined && !ko.unwrap($data.enabled), title: $data.tooltip || $data.title }">\n  \x3c!-- ko if: $data.iconName --\x3e\n  <sv-svg-icon class="sv-action-bar-item__icon" params="iconName: iconName, size: iconSize"></sv-svg-icon>\n  \x3c!-- /ko --\x3e\n  \x3c!-- ko if: $data.hasTitle --\x3e\n  <span data-bind="text: title, css: getActionBarItemCss()"></span>\n  \x3c!-- /ko --\x3e\n  <sv-popup params="model: popupModel"></sv-popup>\n</button>\n\x3c!-- /ko --\x3e'},function(e,t){e.exports='<div class="sv-action-bar-separator" data-bind="css: $data.css"></div>'},function(e,t){e.exports='<div data-bind="css: question.koCss().root">\n  <label data-bind="css: question.getItemCss()">\n    <input\n      type="checkbox"\n      data-bind="css: question.koCss().control, attr: {name: question.name, id: question.inputId, \'aria-required\': question.ariaRequired, \'aria-label\': question.ariaLabel, \'aria-invalid\': question.ariaInvalid, \'aria-describedby\': question.ariaDescribedBy}, checked: question.checkedValue, surveyProp: {indeterminate: question.isIndeterminate}, enable: !question.isInputReadOnly"\n    />\n    <span data-bind="css: question.koCss().materialDecorator">\n      <svg viewBox="0 0 24 24" data-bind="css:question.koCss().itemDecorator">\n        <rect\n          data-bind="css:question.koCss().uncheckedPath"\n          x="5"\n          y="10"\n          width="14"\n          height="4"\n        />\n        <polygon\n          data-bind="css:question.koCss().checkedPath"\n          points="19,10 14,10 14,5 10,5 10,10 5,10 5,14 10,14 10,19 14,19 14,14 19,14 "\n        />\n        <path\n          data-bind="css:question.koCss().indeterminatePath"\n          d="M22,0H2C0.9,0,0,0.9,0,2v20c0,1.1,0.9,2,2,2h20c1.1,0,2-0.9,2-2V2C24,0.9,23.1,0,22,0z M21,18L6,3h15V18z M3,6l15,15H3V6z"\n        />\n      </svg>\n      <span class="check"></span>\n    </span>\n    <span\n      data-bind="if: question.titleLocation === \'hidden\', css: question.koCss().label"\n    >\n      \x3c!-- ko template: { name: \'survey-string\', data: question.locDisplayLabel } --\x3e\n      \x3c!-- /ko --\x3e\n    </span>\n  </label>\n</div>\n'},function(e,t){e.exports="\x3c!-- ko template: { name: 'survey-panel', data: question, as: 'question', afterRender: question.koPanelAfterRender } --\x3e\x3c!-- /ko --\x3e"},function(e,t){e.exports='<div class="sv-popup" tabindex="-1"\n  data-bind="visible: isVisible, click: clickOutside, class: styleClass, event: { keydown: function(data, event) { onKeyDown(event); return true; } }">\n  <div class="sv-popup__container"\n    data-bind="style: { left: left, top: top, height: height },  click: function() { return true; }, clickBubble: false">\n    \x3c!-- ko if: showPointer  --\x3e\n    <span data-bind="style: {left: pointerTarget.left, top: pointerTarget.top }" class="sv-popup__pointer"></span>\n    \x3c!-- /ko --\x3e\n    \x3c!-- ko if: !!title  --\x3e\n    <div class="sv-popup__header" data-bind="text: title"></div>\n    \x3c!-- /ko --\x3e\n    <div class="sv-popup__scrolling-content">\n      <div class="sv-popup__content"\n        data-bind="component: { name: contentComponentName, params: contentComponentData }"></div>\n    </div>\n    \x3c!-- ko if: isModal  --\x3e\n    <div class="sv-popup__footer">\n      <button class="sv-popup__footer-item sv-popup__button sv-popup__button--cancel"\n        data-bind="click: cancel, text: cancelButtonText"> Cancel </button>\n      <button class="sv-popup__footer-item sv-popup__button sv-popup__button--apply"\n        data-bind="click: apply, text: applyButtonText"> Apply </button>\n    </div>\n    \x3c!-- /ko --\x3e\n  </div>\n</div>'},function(e,t){e.exports='<div data-bind="css: survey.css.progressButtonsContainerCenter">\n    <div data-bind="css: survey.css.progressButtonsContainer">\n        <div data-bind="css: getScrollButtonCss(true), click: clickScrollButton.bind($data, $element.nextElementSibling, true)" role="button"></div>\n        <div data-bind="css: survey.css.progressButtonsListContainer">\n            <ul data-bind="foreach: survey.visiblePages, css: survey.css.progressButtonsList">\n                <li data-bind="css: $parent.getListElementCss($index), click: $parent.isListElementClickable($index) ? $parent.clickListElement.bind($parent, $index) : null">\n                    <div data-bind="css: css.progressButtonsPageTitle, text: locNavigationTitle.koRenderedHtml() || name, attr: { title: locNavigationTitle.koRenderedHtml() || name }"></div>\n                    <div data-bind="css: css.progressButtonsPageDescription, text: locNavigationDescription.koRenderedHtml(), attr: { title: locNavigationDescription.koRenderedHtml() }"></div>\n                </li>\n            </ul>\n        </div>\n        <div data-bind="css: getScrollButtonCss(false), click: clickScrollButton.bind($data, $element.previousElementSibling, false)" role="button"></div>\n    </div>\n</div>'},function(e,t){e.exports='<div data-bind="css: model.css.progress">\n    <div data-bind="css: model.css.progressBar, style: { width: model.progressValue + \'%\' }"\n        role="progressbar" aria-valuemin="0" aria-valuemax="100">\n        <span data-bind="text: model.progressText, css: getProgressTextInBarCss(model.css)"></span>\n    </div>\n    <span data-bind="text: model.progressText, css: getProgressTextUnderBarCss(model.css)"></span>\n</div>'},function(e,t){e.exports="\x3c!-- ko if: templateData.name --\x3e\n  \x3c!-- ko template: { name: templateData.name, data: templateData.data, afterRender: templateData.afterRender } --\x3e\n  \x3c!-- /ko --\x3e\n\x3c!-- /ko --\x3e\n\x3c!-- ko ifnot: templateData.name --\x3e\n  \x3c!-- ko template: { nodes: templateData.nodes || $componentTemplateNodes, data: templateData.data, afterRender: templateData.afterRender } --\x3e\n  \x3c!-- /ko --\x3e\n\x3c!-- /ko --\x3e\n"},function(e,t){e.exports="\x3c!-- ko ifnot: element.isTitleOwner --\x3e\n  \x3c!-- ko template: { name: 'survey-string', data: element.locTitle } --\x3e\x3c!-- /ko --\x3e\n\x3c!-- /ko --\x3e\n\x3c!-- ko if: element.isTitleOwner --\x3e\n  \x3c!-- ko if: element.isRequireTextOnStart --\x3e\n  <span\n    data-bind=\"css: element.koCss().requiredText || (element.koCss().panel && element.koCss().panel.requiredText), text: element.requiredText, attr: { 'aria-hidden': true }\"\n  ></span>\n  \x3c!-- /ko --\x3e\n  \x3c!-- ko if: element.no --\x3e\n  <span\n    style=\"position: static;\"\n    data-bind=\"css: element.koCss().number, text: element.no, attr: { 'aria-hidden': true }\"\n  ></span>\n  <span>&nbsp</span>\n  \x3c!-- /ko --\x3e\n  \x3c!-- ko if: element.isRequireTextBeforeTitle --\x3e\n  <span\n    data-bind=\"css: element.koCss().requiredText || (element.koCss().panel && element.koCss().panel.requiredText), text: element.requiredText, attr: { 'aria-hidden': true }\"\n  ></span>\n  <span>&nbsp</span>\n  \x3c!-- /ko --\x3e\n  \x3c!-- ko template: { name: 'survey-string', data: element.locTitle } --\x3e\x3c!-- /ko --\x3e\n  \x3c!-- ko if: element.isRequireTextAfterTitle --\x3e\n  <span>&nbsp</span>\n  <span\n    data-bind=\"css: element.koCss().requiredText || (element.koCss().panel && element.koCss().panel.requiredText), text: element.requiredText, attr: { 'aria-hidden': true }\"\n  ></span>\n  \x3c!-- /ko --\x3e\n\x3c!-- /ko --\x3e"},function(e,t){e.exports="\x3c!-- ko component: { name: 'survey-element-title-content', params: { element: element } } --\x3e\x3c!--/ko--\x3e\n\x3c!-- ko if: element.isCollapsed || element.isExpanded --\x3e\n<span\n    data-bind=\"css: getIconCss(), attr: { 'aria-expanded': element.isCollapsed ? 'false' : 'true' }\"\n    tabindex=\"0\">\n</span>\n\x3c!-- /ko --\x3e"},function(e,t){e.exports="\x3c!-- ko ifnot: element.hasTitleActions --\x3e\n  \x3c!-- ko component: { name: 'survey-element-title-content', params: {element: element } } --\x3e\x3c!-- /ko --\x3e\n\x3c!-- /ko --\x3e\n\x3c!-- ko if: element.hasTitleActions --\x3e\n<div class=\"sv-title-actions\">\n  <span class=\"sv-title-actions__title\">\n    \x3c!-- ko component: { name: 'survey-element-title-content', params: {element: element } } --\x3e\x3c!-- /ko --\x3e\n  </span>\n  \x3c!-- ko component: { name: 'sv-action-bar', params: { model: toolbar } } --\x3e\n  \x3c!-- /ko --\x3e\n</div>\n\x3c!-- /ko --\x3e"},function(e,t){e.exports='\x3c!-- <input class="sv-string-editor" data-bind="value: editValue" /> --\x3e\n\n\x3c!-- ko ifnot: koHasHtml --\x3e\n<span class="sv-string-editor" style="position: static;" data-bind="text: editValue, event: { blur: onInput, click: onClick, clickBubble: false }" contenteditable="true"></span>\n\x3c!-- /ko --\x3e\n\x3c!-- ko if: koHasHtml --\x3e\n<span class="sv-string-editor" style="position: static;" data-bind="html: editValue, event: { blur: onInput, click: onClick, clickBubble: false }" contenteditable="true"></span>\n\x3c!-- /ko --\x3e'},function(e,t){e.exports='\x3c!-- ko ifnot: koHasHtml --\x3e\n<span class="sv-string-viewer" style="position: static;" data-bind="text: koRenderedHtml"></span>\n\x3c!-- /ko --\x3e\n\x3c!-- ko if: koHasHtml --\x3e\n<span class="sv-string-viewer" style="position: static;" data-bind="html: koRenderedHtml"></span>\n\x3c!-- /ko --\x3e'},function(e,t){e.exports='\x3c!-- ko with: survey --\x3e\n<div data-bind="css: logoClassNames">\n  <img data-bind="css: css.logoImage, attr: { src: locLogo.koRenderedHtml, width: logoWidth ? logoWidth : undefined, height: logoHeight ? logoHeight : undefined, alt: locTitle.renderedHtml }, style: { objectFit: logoFit }">\n</div>\n\x3c!-- ko if: isLogoAfter --\x3e\n<div class="sv-logo--right-tail"></div>\n\x3c!-- /ko --\x3e\n\x3c!-- /ko --\x3e'},function(e,t){e.exports='<div class="sv-skeleton-element">\n</div>'},function(e,t){e.exports='<ul class="sv-list" data-bind="event: { mousedown: function (data, e) { e.preventDefault(); }, keydown: function(data, e) { $data.onKeyDown(event); return true; } }">\n  \x3c!--ko foreach: items--\x3e\n  <li class="sv-list__item" data-bind="style: { paddingLeft: $parent.getItemIndent($data) }, css: { \'sv-list__item--disabled\': $parent.isItemDisabled($data), \'sv-list__item--selected\': $parent.isItemSelected($data) }, click: $parent.selectItem, key2click, visible: $data.visible === undefined || $data.visible">\n    \x3c!-- ko ifnot: $data.component --\x3e\n    \x3c!-- ko if: $data.iconName --\x3e\n    <sv-svg-icon class="sv-list__item-icon" params="iconName: iconName, size: 24"></sv-svg-icon>\n    \x3c!-- /ko --\x3e\n    <span data-bind="text: $data.title"></span>\n    \x3c!-- /ko --\x3e\n    \x3c!-- ko if: $data.component --\x3e\n    \x3c!-- ko component: { name: $data.component, params: { item: $data } } --\x3e\n    \x3c!-- /ko --\x3e\n    \x3c!-- /ko --\x3e\n  </li>\n  \x3c!-- /ko --\x3e\n</ul>'},function(e,t){e.exports='<svg class="sv-svg-icon" role="img"><use></use></svg>\n'},function(e,t){e.exports='<button\n  type="button"\n  data-bind="click: question.koRemoveRowClick, disable: question.isInputReadOnly, css: question.getRemoveRowButtonCss()"\n>\n  \x3c!-- ko template: { name: \'survey-string\', data: question.locRemoveRowText } --\x3e\x3c!-- /ko --\x3e\n  <span data-bind="css: question.koCss().iconRemove"></span>\n</button>\n'},function(e,t){e.exports="<button\ntype=\"button\"\ndata-bind=\"css:question.getDetailPanelButtonCss(row), click:row.showHideDetailPanelClick, attr:{ 'aria-expanded': question.getIsDetailPanelShowing($data.row) ? 'true': 'false', 'aria-controls': question.getIsDetailPanelShowing($data.row) ? row.detailPanelId: false}\"\n>\n<span\n  data-bind=\"css: question.getDetailPanelIconCss(row)\"\n></span>\n</button>\n\x3c!-- ko if: question.detailPanelMode === \"popup\" && question.getKoPopupIsVisible(row) --\x3e\n<sv-popup\nparams=\"contentComponentName: 'sv-panel', contentComponentData: { question: row.detailPanel, onItemSelect: function(){} }, isVisible: question.getKoPopupIsVisible(row), isModal: true, onHide: function() { row.hideDetailPanel() }, verticalPosition: 'top', horizontalPosition: 'right'\"\n></sv-popup>\n\x3c!-- /ko --\x3e"},function(e,t){e.exports='<span\n  data-bind="css: question.koCss().iconDrag, event: { pointerdown: function (model, event) { question.startDragMatrixRow(event, row); } }"\n></span>\n'},function(e,t){e.exports='<label data-bind="css: model.css.label, attr: { title: model.caption.koRenderedHtml }">\r\n  <input type="radio"\r\n    data-bind="attr: { name: model.name, id: model.id, \'aria-required\': model.isRequired, \'aria-label\': model.caption.koRenderedHtml, role: \'radio\', \'aria-invalid\': model.hasErrors, \'aria-describedby\': model.describeBy}, checkedValue: model.value, checked: model.question.renderedValue, disable: model.readOnly, css: model.css.control" />\r\n  <div data-bind="css: model.css.decorator">\r\n    \x3c!-- ko if: !!model.iconName--\x3e\r\n    <sv-svg-icon data-bind="css: model.css.icon" params="iconName: model.iconName, size: model.iconSize"></sv-svg-icon>\r\n    \x3c!-- /ko --\x3e\r\n    \x3c!-- ko if: model.showCaption --\x3e\r\n    <span data-bind="css: model.css.caption, attr: { title: model.caption.koRenderedHtml }">\r\n      \x3c!-- ko template: { name: \'survey-string\', data: model.caption } --\x3e\r\n      \x3c!-- /ko --\x3e\r\n    </span>\r\n    \x3c!-- /ko --\x3e\r\n  </div>\r\n</label>'},,function(e,t,n){"use strict";n.r(t),n.d(t,"Version",(function(){return Ia})),n.d(t,"settings",(function(){return a})),n.d(t,"Helpers",(function(){return s})),n.d(t,"AnswerCountValidator",(function(){return De})),n.d(t,"EmailValidator",(function(){return je})),n.d(t,"NumericValidator",(function(){return Ie})),n.d(t,"RegexValidator",(function(){return Ae})),n.d(t,"SurveyValidator",(function(){return Ee})),n.d(t,"TextValidator",(function(){return qe})),n.d(t,"ValidatorResult",(function(){return Oe})),n.d(t,"ExpressionValidator",(function(){return Le})),n.d(t,"ValidatorRunner",(function(){return Re})),n.d(t,"ItemValue",(function(){return Fe})),n.d(t,"Base",(function(){return L})),n.d(t,"Event",(function(){return M})),n.d(t,"ArrayChanges",(function(){return N})),n.d(t,"ComputedUpdater",(function(){return j})),n.d(t,"SurveyError",(function(){return B})),n.d(t,"SurveyElementCore",(function(){return ht})),n.d(t,"SurveyElement",(function(){return ft})),n.d(t,"CalculatedValue",(function(){return gt})),n.d(t,"CustomError",(function(){return ee})),n.d(t,"AnswerRequiredError",(function(){return H})),n.d(t,"OneAnswerRequiredError",(function(){return Q})),n.d(t,"RequreNumericError",(function(){return $})),n.d(t,"ExceedSizeError",(function(){return U})),n.d(t,"LocalizableString",(function(){return d})),n.d(t,"LocalizableStrings",(function(){return h})),n.d(t,"HtmlConditionItem",(function(){return bt})),n.d(t,"UrlConditionItem",(function(){return xt})),n.d(t,"ChoicesRestful",(function(){return Pt})),n.d(t,"ChoicesRestfull",(function(){return _t})),n.d(t,"FunctionFactory",(function(){return ne})),n.d(t,"registerFunction",(function(){return oe})),n.d(t,"ConditionRunner",(function(){return Te})),n.d(t,"ExpressionRunner",(function(){return ke})),n.d(t,"Operand",(function(){return pe})),n.d(t,"Const",(function(){return me})),n.d(t,"BinaryOperand",(function(){return de})),n.d(t,"Variable",(function(){return ge})),n.d(t,"FunctionOperand",(function(){return ye})),n.d(t,"ArrayOperand",(function(){return fe})),n.d(t,"ConditionsParser",(function(){return Pe})),n.d(t,"ProcessValue",(function(){return te})),n.d(t,"JsonError",(function(){return _})),n.d(t,"JsonIncorrectTypeError",(function(){return S})),n.d(t,"JsonMetadata",(function(){return P})),n.d(t,"JsonMetadataClass",(function(){return w})),n.d(t,"JsonMissingTypeError",(function(){return k})),n.d(t,"JsonMissingTypeErrorBase",(function(){return T})),n.d(t,"JsonObject",(function(){return E})),n.d(t,"JsonObjectProperty",(function(){return x})),n.d(t,"JsonRequiredPropertyError",(function(){return O})),n.d(t,"JsonUnknownPropertyError",(function(){return V})),n.d(t,"Serializer",(function(){return R})),n.d(t,"property",(function(){return y})),n.d(t,"propertyArray",(function(){return b})),n.d(t,"MatrixDropdownCell",(function(){return un})),n.d(t,"MatrixDropdownRowModelBase",(function(){return dn})),n.d(t,"QuestionMatrixDropdownModelBase",(function(){return fn})),n.d(t,"MatrixDropdownColumn",(function(){return tn})),n.d(t,"matrixDropdownColumnTypes",(function(){return en})),n.d(t,"QuestionMatrixDropdownRenderedCell",(function(){return rn})),n.d(t,"QuestionMatrixDropdownRenderedRow",(function(){return an})),n.d(t,"QuestionMatrixDropdownRenderedTable",(function(){return sn})),n.d(t,"MatrixDropdownRowModel",(function(){return gn})),n.d(t,"QuestionMatrixDropdownModel",(function(){return yn})),n.d(t,"MatrixDynamicRowModel",(function(){return _n})),n.d(t,"QuestionMatrixDynamicModel",(function(){return Vn})),n.d(t,"MatrixRowModel",(function(){return Jn})),n.d(t,"MatrixCells",(function(){return Kn})),n.d(t,"QuestionMatrixModel",(function(){return Xn})),n.d(t,"MultipleTextItemModel",(function(){return ro})),n.d(t,"QuestionMultipleTextModel",(function(){return io})),n.d(t,"PanelModel",(function(){return qn})),n.d(t,"PanelModelBase",(function(){return In})),n.d(t,"QuestionRowModel",(function(){return Rn})),n.d(t,"FlowPanelModel",(function(){return so})),n.d(t,"PageModel",(function(){return An})),n.d(t,"DefaultTitleModel",(function(){return lo})),n.d(t,"Question",(function(){return Bt})),n.d(t,"QuestionNonValue",(function(){return co})),n.d(t,"QuestionEmptyModel",(function(){return ho})),n.d(t,"QuestionCheckboxBase",(function(){return $n})),n.d(t,"QuestionSelectBase",(function(){return Qn})),n.d(t,"QuestionCheckboxModel",(function(){return mo})),n.d(t,"QuestionRankingModel",(function(){return Oi})),n.d(t,"QuestionCommentModel",(function(){return Ri})),n.d(t,"QuestionDropdownModel",(function(){return Wn})),n.d(t,"QuestionFactory",(function(){return Gt})),n.d(t,"ElementFactory",(function(){return Jt})),n.d(t,"QuestionFileModel",(function(){return Di})),n.d(t,"QuestionHtmlModel",(function(){return ji})),n.d(t,"QuestionRadiogroupModel",(function(){return Ni})),n.d(t,"QuestionRatingModel",(function(){return Fi})),n.d(t,"QuestionExpressionModel",(function(){return Xt})),n.d(t,"QuestionTextModel",(function(){return to})),n.d(t,"QuestionBooleanModel",(function(){return Hi})),n.d(t,"QuestionImagePickerModel",(function(){return Ui})),n.d(t,"ImageItemValue",(function(){return $i})),n.d(t,"QuestionImageModel",(function(){return Gi})),n.d(t,"QuestionSignaturePadModel",(function(){return ta})),n.d(t,"QuestionPanelDynamicModel",(function(){return sa})),n.d(t,"QuestionPanelDynamicItem",(function(){return ia})),n.d(t,"SurveyTimer",(function(){return Fn})),n.d(t,"SurveyProgressModel",(function(){return la})),n.d(t,"SurveyProgressButtonsModel",(function(){return ua})),n.d(t,"SurveyModel",(function(){return zn})),n.d(t,"SurveyTrigger",(function(){return da})),n.d(t,"SurveyTriggerComplete",(function(){return fa})),n.d(t,"SurveyTriggerSetValue",(function(){return ma})),n.d(t,"SurveyTriggerVisible",(function(){return ha})),n.d(t,"SurveyTriggerCopyValue",(function(){return va})),n.d(t,"SurveyTriggerRunExpression",(function(){return ya})),n.d(t,"Trigger",(function(){return pa})),n.d(t,"SurveyWindowModel",(function(){return xa})),n.d(t,"TextPreProcessor",(function(){return Ut})),n.d(t,"dxSurveyService",(function(){return jn})),n.d(t,"englishStrings",(function(){return l})),n.d(t,"surveyLocalization",(function(){return u})),n.d(t,"surveyStrings",(function(){return c})),n.d(t,"QuestionCustomWidget",(function(){return Vt})),n.d(t,"CustomWidgetCollection",(function(){return Tt})),n.d(t,"QuestionCustomModel",(function(){return Va})),n.d(t,"QuestionCompositeModel",(function(){return ka})),n.d(t,"ComponentQuestionJSON",(function(){return wa})),n.d(t,"ComponentCollection",(function(){return Pa})),n.d(t,"StylesManager",(function(){return Ln})),n.d(t,"ListModel",(function(){return Ze})),n.d(t,"PopupModel",(function(){return nt})),n.d(t,"PopupBaseViewModel",(function(){return it})),n.d(t,"createPopupModalViewModel",(function(){return ot})),n.d(t,"QuestionButtonGroupModel",(function(){return Ra})),n.d(t,"ButtonGroupItemModel",(function(){return qa})),n.d(t,"ButtonGroupItemValue",(function(){return Ea})),n.d(t,"IsMobile",(function(){return Vi})),n.d(t,"confirmAction",(function(){return kt})),n.d(t,"detectIEOrEdge",(function(){return St})),n.d(t,"doKey2ClickUp",(function(){return Dt})),n.d(t,"doKey2ClickDown",(function(){return At})),n.d(t,"loadFileFromBase64",(function(){return Ot})),n.d(t,"increaseHeightByContent",(function(){return jt})),n.d(t,"createSvg",(function(){return Rt})),n.d(t,"CssClassBuilder",(function(){return ze})),n.d(t,"surveyCss",(function(){return kn})),n.d(t,"DragDropSurveyElements",(function(){return Aa})),n.d(t,"DragDropChoices",(function(){return xi})),n.d(t,"defaultStandardCss",(function(){return Sn})),n.d(t,"defaultBootstrapCss",(function(){return ja})),n.d(t,"defaultBootstrapMaterialCss",(function(){return La})),n.d(t,"modernCss",(function(){return Na})),n.d(t,"RendererFactory",(function(){return Be})),n.d(t,"ResponsivityManager",(function(){return We})),n.d(t,"VerticalResponsivityManager",(function(){return Ge})),n.d(t,"unwrap",(function(){return It})),n.d(t,"Action",(function(){return $e})),n.d(t,"AdaptiveActionContainer",(function(){return ct})),n.d(t,"ActionContainer",(function(){return lt})),n.d(t,"ko",(function(){return zl})),n.d(t,"Model",(function(){return Ga}));var o=n(0),r=n(1),i=n.n(r),a=(n(2),{comparator:{trimStrings:!0,caseSensitive:!1},commentPrefix:"-Comment",webserviceEncodeParameters:!0,useCachingForChoicesRestful:!0,get useCachingForChoicesRestfull(){return a.useCachingForChoicesRestful},set useCachingForChoicesRestfull(e){a.useCachingForChoicesRestful=e},surveyServiceUrl:"https://api.surveyjs.io/public/v1/Survey",itemValueSeparator:"|",defaultLocaleName:"default",matrixDefaultRowName:"default",matrixDefaultCellType:"dropdown",matrixTotalValuePostFix:"-total",matrixMaximumRowCount:1e3,matrixMaxRowCountInCondition:1,panelMaximumPanelCount:100,ratingMaximumRateValueCount:20,disableOnGettingChoicesFromWeb:!1,serializeLocalizableStringAsObject:!1,allowShowEmptyTitleInDesignMode:!0,allowShowEmptyDescriptionInDesignMode:!0,executeCompleteTriggerOnValueChanged:!1,executeSkipTriggerOnValueChanged:!0,readOnlyCommentRenderMode:"textarea",confirmActionFunc:function(e){return confirm(e)},minWidth:"300px",maxWidth:"initial",maximumConditionRunCountOnValueChanged:10,setQuestionVisibleIndexForHiddenTitle:!1,setQuestionVisibleIndexForHiddenNumber:!1,lazyRowsRendering:!1,lazyRowsRenderingStartRow:3,showItemsInOrder:"default",supportedValidators:{question:["expression"],comment:["text","regex"],text:["numeric","text","regex","email"],checkbox:["answercount"]},minDate:"",maxDate:"",showModal:void 0,supportCreatorV2:!1,customIcons:{},titleTags:{survey:"h3",page:"h4",panel:"h4",question:"h5"}}),s=function(){function e(){}return e.isValueEmpty=function(t){if(Array.isArray(t)&&0===t.length)return!0;if(t&&"object"==typeof t&&t.constructor===Object){for(var n in t)if(!e.isValueEmpty(t[n]))return!1;return!0}return!t&&0!==t&&!1!==t},e.isArrayContainsEqual=function(t,n){if(!Array.isArray(t)||!Array.isArray(n))return!1;if(t.length!==n.length)return!1;for(var o=0;o<t.length;o++){for(var r=0;r<n.length&&!e.isTwoValueEquals(t[o],n[r]);r++);if(r===n.length)return!1}return!0},e.isArraysEqual=function(t,n,o,r,i){if(void 0===o&&(o=!1),!Array.isArray(t)||!Array.isArray(n))return!1;if(t.length!==n.length)return!1;if(o){for(var a=[],s=[],l=0;l<t.length;l++)a.push(t[l]),s.push(n[l]);a.sort(),s.sort(),t=a,n=s}for(l=0;l<t.length;l++)if(!e.isTwoValueEquals(t[l],n[l],o,r,i))return!1;return!0},e.isTwoValueEquals=function(t,n,o,r,i){if(void 0===o&&(o=!1),t===n)return!0;if(Array.isArray(t)&&0===t.length&&void 0===n)return!0;if(Array.isArray(n)&&0===n.length&&void 0===t)return!0;if(null==t&&""===n)return!0;if(null==n&&""===t)return!0;if(void 0===i&&(i=a.comparator.trimStrings),void 0===r&&(r=a.comparator.caseSensitive),"string"==typeof t&&"string"==typeof n)return i&&(t=t.trim(),n=n.trim()),r||(t=t.toLowerCase(),n=n.toLowerCase()),t===n;if(e.isConvertibleToNumber(t)&&e.isConvertibleToNumber(n)&&parseInt(t)===parseInt(n)&&parseFloat(t)===parseFloat(n))return!0;if(!e.isValueEmpty(t)&&e.isValueEmpty(n)||e.isValueEmpty(t)&&!e.isValueEmpty(n))return!1;if((!0===t||!1===t)&&"string"==typeof n)return t.toString()===n.toLocaleLowerCase();if((!0===n||!1===n)&&"string"==typeof t)return n.toString()===t.toLocaleLowerCase();if(!(t instanceof Object||n instanceof Object))return t==n;if(!(t instanceof Object&&n instanceof Object))return!1;if(t.equals)return t.equals(n);if(t.toJSON&&n.toJSON&&t.getType&&n.getType)return!t.isDiposed&&!n.isDiposed&&(t.getType()===n.getType()&&((!t.name||t.name===n.name)&&this.isTwoValueEquals(t.toJSON(),n.toJSON(),o,r,i)));if(Array.isArray(t)&&Array.isArray(n))return e.isArraysEqual(t,n,o,r,i);for(var s in t)if(t.hasOwnProperty(s)){if(!n.hasOwnProperty(s))return!1;if(t[s]!==n[s]){if("object"!=typeof t[s])return!1;if(!this.isTwoValueEquals(t[s],n[s]))return!1}}for(s in n)if(n.hasOwnProperty(s)&&!t.hasOwnProperty(s))return!1;return!0},e.randomizeArray=function(e){for(var t=e.length-1;t>0;t--){var n=Math.floor(Math.random()*(t+1)),o=e[t];e[t]=e[n],e[n]=o}return e},e.getUnbindValue=function(e){return e&&e instanceof Object?JSON.parse(JSON.stringify(e)):e},e.createCopy=function(e){var t={};if(!e)return t;for(var n in e)t[n]=e[n];return t},e.isConvertibleToNumber=function(e){return null!=e&&!Array.isArray(e)&&!isNaN(e)},e.isNumber=function(e){return!("string"==typeof e&&e&&0==e.indexOf("0x")&&e.length>32)&&(!isNaN(parseFloat(e))&&isFinite(e))},e.getMaxLength=function(e,t){return e<0&&(e=t),e>0?e:null},e.getNumberByIndex=function(t,n){if(t<0)return"";var o=1,r="",i=".",a=!0,s="A",l="";if(n){for(var u=(l=n).length-1,c=!1,p=0;p<l.length;p++)if(e.isCharDigit(l[p])){c=!0;break}for(var d=function(){return c&&!e.isCharDigit(l[u])||e.isCharNotLetterAndDigit(l[u])};u>=0&&d();)u--;var h="";for(u<l.length-1&&(h=l.substr(u+1),l=l.substr(0,u+1)),u=l.length-1;u>=0&&!d()&&(u--,c););s=l.substr(u+1),r=l.substr(0,u+1),parseInt(s)?o=parseInt(s):1==s.length&&(a=!1),(h||r)&&(i=h)}return a?r+(t+o).toString()+i:r+String.fromCharCode(s.charCodeAt(0)+t)+i},e.isCharNotLetterAndDigit=function(t){return t.toUpperCase()==t.toLowerCase()&&!e.isCharDigit(t)},e.isCharDigit=function(e){return e>="0"&&e<="9"},e}();String.prototype.format||(String.prototype.format=function(){var e=arguments;return this.replace(/{(\d+)}/g,(function(t,n){return void 0!==e[n]?e[n]:t}))});var l={pagePrevText:"Previous",pageNextText:"Next",completeText:"Complete",previewText:"Preview",editText:"Edit",startSurveyText:"Start",otherItemText:"Other (describe)",noneItemText:"None",selectAllItemText:"Select All",progressText:"Page {0} of {1}",panelDynamicProgressText:"Record {0} of {1}",questionsProgressText:"Answered {0}/{1} questions",emptySurvey:"There is no visible page or question in the survey.",completingSurvey:"Thank you for completing the survey!",completingSurveyBefore:"Our records show that you have already completed this survey.",loadingSurvey:"Loading Survey...",optionsCaption:"Choose...",value:"value",requiredError:"Response required.",requiredErrorInPanel:"Response required: answer at least one question.",requiredInAllRowsError:"Response required: answer questions in all rows.",numericError:"The value should be numeric.",minError:"The value should not be less than {0}",maxError:"The value should not be greater than {0}",textMinLength:"Please enter at least {0} character(s).",textMaxLength:"Please enter no more than {0} character(s).",textMinMaxLength:"Please enter at least {0} and no more than {1} characters.",minRowCountError:"Please fill in at least {0} row(s).",minSelectError:"Please select at least {0} variant(s).",maxSelectError:"Please select no more than {0} variant(s).",numericMinMax:"The '{0}' should be at least {1} and at most {2}",numericMin:"The '{0}' should be at least {1}",numericMax:"The '{0}' should be at most {1}",invalidEmail:"Please enter a valid e-mail address.",invalidExpression:"The expression: {0} should return 'true'.",urlRequestError:"The request returned error '{0}'. {1}",urlGetChoicesError:"The request returned empty data or the 'path' property is incorrect",exceedMaxSize:"The file size should not exceed {0}.",otherRequiredError:"Response required: enter another value.",uploadingFile:"Your file is uploading. Please wait several seconds and try again.",loadingFile:"Loading...",chooseFile:"Choose file(s)...",noFileChosen:"No file chosen",fileDragAreaPlaceholder:"Drop a file here or click the button below to load the file.",confirmDelete:"Do you want to delete the record?",keyDuplicationError:"This value should be unique.",addColumn:"Add column",addRow:"Add row",removeRow:"Remove",emptyRowsText:"There are no rows.",addPanel:"Add new",removePanel:"Remove",choices_Item:"item",matrix_column:"Column",matrix_row:"Row",multipletext_itemname:"text",savingData:"The results are being saved on the server...",savingDataError:"An error occurred and we could not save the results.",savingDataSuccess:"The results were saved successfully!",saveAgainButton:"Try again",timerMin:"min",timerSec:"sec",timerSpentAll:"You have spent {0} on this page and {1} in total.",timerSpentPage:"You have spent {0} on this page.",timerSpentSurvey:"You have spent {0} in total.",timerLimitAll:"You have spent {0} of {1} on this page and {2} of {3} in total.",timerLimitPage:"You have spent {0} of {1} on this page.",timerLimitSurvey:"You have spent {0} of {1} in total.",cleanCaption:"Clean",clearCaption:"Clear",signaturePlaceHolder:"Sign here",chooseFileCaption:"Choose file",removeFileCaption:"Remove this file",booleanCheckedLabel:"Yes",booleanUncheckedLabel:"No",confirmRemoveFile:"Are you sure that you want to remove this file: {0}?",confirmRemoveAllFiles:"Are you sure that you want to remove all files?",questionTitlePatternText:"Question Title",modalCancelButtonText:"Cancel",modalApplyButtonText:"Apply"},u={currentLocaleValue:"",defaultLocaleValue:"en",locales:{},localeNames:{},supportedLocales:[],get currentLocale(){return this.currentLocaleValue===this.defaultLocaleValue?"":this.currentLocaleValue},set currentLocale(e){"cz"===e&&(e="cs"),this.currentLocaleValue=e},get defaultLocale(){return this.defaultLocaleValue},set defaultLocale(e){"cz"===e&&(e="cs"),this.defaultLocaleValue=e},getLocaleStrings:function(e){return this.locales[e]},getCurrentStrings:function(){var e=this.currentLocale?this.locales[this.currentLocale]:this.locales[this.defaultLocale];return e||(e=this.locales[this.defaultLocale]),e},getString:function(e){var t=this.getCurrentStrings();t[e]||(t=this.locales[this.defaultLocale]);var n=t[e];return void 0===n&&(n=this.locales.en[e]),n},getLocales:function(e){void 0===e&&(e=!1);var t=[];t.push("");var n=this.locales;if(this.supportedLocales&&this.supportedLocales.length>0){n={};for(var o=0;o<this.supportedLocales.length;o++)n[this.supportedLocales[o]]=!0}for(var r in n)e&&r==this.defaultLocale||t.push(r);var i=function(e){if(!e)return"";var t=u.localeNames[e];return t||(t=e),t.toLowerCase()};return t.sort((function(e,t){var n=i(e),o=i(t);return n===o?0:n<o?-1:1})),t}},c=l;u.locales.en=l,u.localeNames.en="english";var p,d=function(){function e(e,t,n){void 0===t&&(t=!1),this.owner=e,this.useMarkdown=t,this.name=n,this.values={},this.htmlValues={},this.onCreating()}return Object.defineProperty(e,"defaultLocale",{get:function(){return a.defaultLocaleName},set:function(e){a.defaultLocaleName=e},enumerable:!1,configurable:!0}),e.prototype.getIsMultiple=function(){return!1},Object.defineProperty(e.prototype,"locale",{get:function(){return this.owner&&this.owner.getLocale?this.owner.getLocale():""},enumerable:!1,configurable:!0}),e.prototype.strChanged=function(){this.searchableText=void 0,void 0!==this.renderedText&&(this.calculatedTextValue=this.calcText(),this.renderedText!==this.calculatedTextValue&&(this.renderedText=void 0,this.calculatedTextValue=void 0),this.onChanged())},Object.defineProperty(e.prototype,"text",{get:function(){return this.pureText},set:function(e){this.setLocaleText(this.locale,e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"calculatedText",{get:function(){return this.renderedText=void 0!==this.calculatedTextValue?this.calculatedTextValue:this.calcText(),this.calculatedTextValue=void 0,this.renderedText},enumerable:!1,configurable:!0}),e.prototype.calcText=function(){var e=this.pureText;return e&&this.owner&&this.owner.getProcessedText&&e.indexOf("{")>-1&&(e=this.owner.getProcessedText(e)),this.onGetTextCallback&&(e=this.onGetTextCallback(e)),e},Object.defineProperty(e.prototype,"pureText",{get:function(){var e=this.locale;e||(e=a.defaultLocaleName);var t=this.getValue(e);return t||e!=a.defaultLocaleName||(t=this.getValue(u.defaultLocale)),t||e===a.defaultLocaleName||(t=this.getValue(a.defaultLocaleName)),!t&&this.localizationName&&(t=u.getString(this.localizationName)),t||(t=""),t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasHtml",{get:function(){return this.hasHtmlValue()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"html",{get:function(){return this.hasHtml?this.getHtmlValue():""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isEmpty",{get:function(){return 0==this.getValuesKeys().length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"textOrHtml",{get:function(){return this.hasHtml?this.getHtmlValue():this.calculatedText},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"renderedHtml",{get:function(){return this.textOrHtml},enumerable:!1,configurable:!0}),e.prototype.getLocaleText=function(e){e||(e=a.defaultLocaleName);var t=this.getValue(e);return t||""},e.prototype.setLocaleText=function(e,t){if(t!=this.getLocaleText(e)&&(!t||!e||e==a.defaultLocaleName||this.getValue(e)||t!=this.getLocaleText(a.defaultLocaleName))){var n=this.locale;e||(e=a.defaultLocaleName),n||(n=a.defaultLocaleName);var o=this.onStrChanged&&e===n,r=o?this.pureText:void 0;delete this.htmlValues[e],t?"string"==typeof t&&(e!=a.defaultLocaleName&&t==this.getLocaleText(a.defaultLocaleName)?this.setLocaleText(e,null):(this.setValue(e,t),e==a.defaultLocaleName&&this.deleteValuesEqualsToDefault(t))):this.getValue(e)&&this.deleteValue(e),this.strChanged(),o&&this.onStrChanged(r,t)}},e.prototype.hasNonDefaultText=function(){var e=this.getValuesKeys();return 0!=e.length&&(e.length>1||e[0]!=a.defaultLocaleName)},e.prototype.getLocales=function(){var e=this.getValuesKeys();return 0==e.length?[]:e},e.prototype.getJson=function(){if(this.sharedData)return this.sharedData.getJson();var e=this.getValuesKeys();return 0==e.length?null:1!=e.length||e[0]!=a.defaultLocaleName||a.serializeLocalizableStringAsObject?this.values:this.values[e[0]]},e.prototype.setJson=function(e){if(this.sharedData)this.sharedData.setJson(e);else if(this.values={},this.htmlValues={},e){if("string"==typeof e)this.setLocaleText(null,e);else for(var t in e)this.setLocaleText(t,e[t]);this.strChanged()}},Object.defineProperty(e.prototype,"renderAs",{get:function(){return this.owner&&"function"==typeof this.owner.getRenderer&&this.owner.getRenderer(this.name)||e.defaultRenderer},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"renderAsData",{get:function(){return this.owner&&"function"==typeof this.owner.getRendererContext&&this.owner.getRendererContext(this)||this},enumerable:!1,configurable:!0}),e.prototype.equals=function(e){return this.sharedData?this.sharedData.equals(e):!(!e||!e.values)&&s.isTwoValueEquals(this.values,e.values,!1,!0,!1)},e.prototype.setFindText=function(e){if(this.searchText!=e){if(this.searchText=e,!this.searchableText){var t=this.textOrHtml;this.searchableText=t?t.toLowerCase():""}var n=this.searchableText,o=n&&e?n.indexOf(e):void 0;return o<0&&(o=void 0),null==o&&this.searchIndex==o||(this.searchIndex=o,this.onSearchChanged&&this.onSearchChanged()),null!=this.searchIndex}},e.prototype.onChanged=function(){},e.prototype.onCreating=function(){},e.prototype.hasHtmlValue=function(){if(!this.owner||!this.useMarkdown)return!1;var e=this.calculatedText;if(!e)return!1;var t=this.locale;return t||(t=a.defaultLocaleName),this.htmlValues[t]=this.owner.getMarkdownHtml(e,this.name),!!this.htmlValues[t]},e.prototype.getHtmlValue=function(){var e=this.locale;return e||(e=a.defaultLocaleName),this.htmlValues[e]},e.prototype.deleteValuesEqualsToDefault=function(e){for(var t=this.getValuesKeys(),n=0;n<t.length;n++)t[n]!=a.defaultLocaleName&&this.getValue(t[n])==e&&this.deleteValue(t[n])},e.prototype.getValue=function(e){return this.sharedData?this.sharedData.getValue(e):this.values[e]},e.prototype.setValue=function(e,t){this.sharedData?this.sharedData.setValue(e,t):this.values[e]=t},e.prototype.deleteValue=function(e){this.sharedData?this.sharedData.deleteValue(e):delete this.values[e]},e.prototype.getValuesKeys=function(){return this.sharedData?this.sharedData.getValuesKeys():Object.keys(this.values)},e.SerializeAsObject=!1,e.defaultRenderer="sv-string-viewer",e.editableRenderer="sv-string-editor",e}(),h=function(){function e(e){this.owner=e,this.values={}}return e.prototype.getIsMultiple=function(){return!0},Object.defineProperty(e.prototype,"locale",{get:function(){return this.owner&&this.owner.getLocale?this.owner.getLocale():""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue("")},set:function(e){this.setValue("",e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"text",{get:function(){return Array.isArray(this.value)?this.value.join("\n"):""},set:function(e){this.value=e?e.split("\n"):[]},enumerable:!1,configurable:!0}),e.prototype.getLocaleText=function(e){var t=this.getValueCore(e,!e||e===this.locale);return t&&Array.isArray(t)&&0!=t.length?t.join("\n"):""},e.prototype.setLocaleText=function(e,t){var n=t?t.split("\n"):null;this.setValue(e,n)},e.prototype.getValue=function(e){return this.getValueCore(e)},e.prototype.getValueCore=function(e,t){if(void 0===t&&(t=!0),e=this.getLocale(e),this.values[e])return this.values[e];if(t){var n=a.defaultLocaleName;if(e!==n&&this.values[n])return this.values[n]}return[]},e.prototype.setValue=function(e,t){e=this.getLocale(e);var n=s.createCopy(this.values);t&&0!=t.length?this.values[e]=t:delete this.values[e],this.onValueChanged&&this.onValueChanged(n,this.values)},e.prototype.hasValue=function(e){return void 0===e&&(e=""),!this.isEmpty&&this.getValue(e).length>0},Object.defineProperty(e.prototype,"isEmpty",{get:function(){return 0==this.getValuesKeys().length},enumerable:!1,configurable:!0}),e.prototype.getLocale=function(e){return e||((e=this.locale)||a.defaultLocaleName)},e.prototype.getLocales=function(){var e=this.getValuesKeys();return 0==e.length?[]:e},e.prototype.getJson=function(){var e=this.getValuesKeys();return 0==e.length?null:1!=e.length||e[0]!=a.defaultLocaleName||a.serializeLocalizableStringAsObject?s.createCopy(this.values):this.values[e[0]]},e.prototype.setJson=function(e){if(this.values={},e)if(Array.isArray(e))this.setValue(null,e);else for(var t in e)this.setValue(t,e[t])},e.prototype.getValuesKeys=function(){return Object.keys(this.values)},e}(),f=(p=function(e,t){return(p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}p(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),m=function(e,t,n){if(n||2===arguments.length)for(var o,r=0,i=t.length;r<i;r++)!o&&r in t||(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))};function g(e,t,n){var o=e.getLocalizableString(n);o||(o=e.createLocalizableString(n,e,!0),"object"==typeof t.localizable&&"function"==typeof t.localizable.onGetTextCallback&&(o.onGetTextCallback=t.localizable.onGetTextCallback))}function y(e){return function(t,n){var o=function(e,t){if(t&&"object"==typeof t&&t.type===j.ComputedUpdaterType){L.startCollectDependencies((function(){return e[n]=t.updater()}),e,n);var o=t.updater(),r=L.finishCollectDependencies();return t.setDependencies(r),o}return t};e&&e.localizable?(Object.defineProperty(t,n,{get:function(){return g(this,e,n),this.getLocalizableStringText(n)||e.defaultValue||this[e.defaultSource]},set:function(t){g(this,e,n);var r=o(this,t);this.setLocalizableStringText(n,r),e&&e.onSet&&e.onSet(r,this)}}),Object.defineProperty(t,!0===e.localizable?"loc"+n.charAt(0).toUpperCase()+n.slice(1):e.localizable.name,{get:function(){return g(this,e,n),this.getLocalizableString(n)}})):Object.defineProperty(t,n,{get:function(){var t=this.getPropertyValue(n);if(void 0!==t)return t;if(e){if(void 0!==e.defaultValue)return e.defaultValue;if(void 0!==e.defaultSource)return this[e.defaultSource]}},set:function(t){var r=o(this,t);this.setPropertyValue(n,r),e&&e.onSet&&e.onSet(r,this)}})}}function v(e,t,n){e.ensureArray(n,(function(n,o){var r=t?t.onPush:null;r&&r(n,o,e)}),(function(n,o){var r=t?t.onRemove:null;r&&r(n,o,e)}))}function b(e){return function(t,n){Object.defineProperty(t,n,{get:function(){return v(this,e,n),this.getPropertyValue(n)},set:function(t){v(this,e,n);var o=this.getPropertyValue(n);t!==o&&(o?o.splice.apply(o,m([0,o.length],t||[],!1)):this.setPropertyValue(n,t),e&&e.onSet&&e.onSet(t,this))}})}}var x=function(){function e(t,n,o){void 0===o&&(o=!1),this.name=n,this.typeValue=null,this.choicesValue=null,this.baseValue=null,this.isRequiredValue=!1,this.isUniqueValue=!1,this.readOnlyValue=null,this.visibleValue=null,this.isLocalizableValue=null,this.choicesfunc=null,this.dependedProperties=null,this.isSerializable=!0,this.isLightSerializable=!0,this.isCustom=!1,this.isDynamicChoices=!1,this.isBindable=!1,this.className=null,this.alternativeName=null,this.classNamePart=null,this.baseClassName=null,this.defaultValueValue=null,this.serializationProperty=null,this.displayName=null,this.category="",this.categoryIndex=-1,this.visibleIndex=-1,this.nextToProperty=null,this.showMode=null,this.maxLength=-1,this.layout=null,this.onGetValue=null,this.onSetValue=null,this.visibleIf=null,this.isArray=!1,this.classInfoValue=t,this.isRequiredValue=o,this.idValue=e.Index++}return Object.defineProperty(e.prototype,"id",{get:function(){return this.idValue},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"classInfo",{get:function(){return this.classInfoValue},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"type",{get:function(){return this.typeValue?this.typeValue:"string"},set:function(e){"itemvalues"===e&&(e="itemvalue[]"),this.typeValue=e,this.typeValue.indexOf("[]")===this.typeValue.length-2&&(this.isArray=!0,this.className=this.typeValue.substr(0,this.typeValue.length-2))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isRequired",{get:function(){return this.isRequiredValue},set:function(e){this.isRequiredValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isUnique",{get:function(){return this.isUniqueValue},set:function(e){this.isUniqueValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasToUseGetValue",{get:function(){return this.onGetValue||this.serializationProperty},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"defaultValue",{get:function(){var t=this.defaultValueValue;return e.getItemValuesDefaultValue&&E.metaData.isDescendantOf(this.className,"itemvalue")&&(t=e.getItemValuesDefaultValue(this.defaultValueValue||[])),t},set:function(e){this.defaultValueValue=e},enumerable:!1,configurable:!0}),e.prototype.isDefaultValue=function(e){return s.isValueEmpty(this.defaultValue)?!1===e&&("boolean"==this.type||"switch"==this.type)||""===e||s.isValueEmpty(e):this.defaultValue==e},e.prototype.getValue=function(e){return this.onGetValue?this.onGetValue(e):this.serializationProperty&&e[this.serializationProperty]?e[this.serializationProperty].getJson():e[this.name]},e.prototype.getPropertyValue=function(e){return this.isLocalizable?e[this.serializationProperty]?e[this.serializationProperty].text:null:this.getValue(e)},Object.defineProperty(e.prototype,"hasToUseSetValue",{get:function(){return this.onSetValue||this.serializationProperty},enumerable:!1,configurable:!0}),e.prototype.setValue=function(e,t,n){this.onSetValue?this.onSetValue(e,t,n):this.serializationProperty&&e[this.serializationProperty]?e[this.serializationProperty].setJson(t):(t&&"string"==typeof t&&("number"==this.type&&(t=parseInt(t)),"boolean"!=this.type&&"switch"!=this.type||(t="true"===t.toLowerCase())),e[this.name]=t)},e.prototype.getObjType=function(e){return this.classNamePart?e.replace(this.classNamePart,""):e},e.prototype.getClassName=function(e){return e&&(e=e.toLowerCase()),this.classNamePart&&e.indexOf(this.classNamePart)<0?e+this.classNamePart:e},Object.defineProperty(e.prototype,"choices",{get:function(){return this.getChoices(null)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasChoices",{get:function(){return!!this.choicesValue||!!this.choicesfunc},enumerable:!1,configurable:!0}),e.prototype.getChoices=function(e,t){return void 0===t&&(t=null),null!=this.choicesValue?this.choicesValue:null!=this.choicesfunc?this.choicesfunc(e,t):null},e.prototype.setChoices=function(e,t){void 0===t&&(t=null),this.choicesValue=e,this.choicesfunc=t},e.prototype.getBaseValue=function(){return this.baseValue?"function"==typeof this.baseValue?this.baseValue():this.baseValue:""},e.prototype.setBaseValue=function(e){this.baseValue=e},Object.defineProperty(e.prototype,"readOnly",{get:function(){return null!=this.readOnlyValue&&this.readOnlyValue},set:function(e){this.readOnlyValue=e},enumerable:!1,configurable:!0}),e.prototype.isVisible=function(e,t){void 0===t&&(t=null);var n=!this.layout||this.layout==e;return!(!this.visible||!n)&&(!this.visibleIf||!t||this.visibleIf(t))},Object.defineProperty(e.prototype,"visible",{get:function(){return null==this.visibleValue||this.visibleValue},set:function(e){this.visibleValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isLocalizable",{get:function(){return null!=this.isLocalizableValue&&this.isLocalizableValue},set:function(e){this.isLocalizableValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dataList",{get:function(){return Array.isArray(this.dataListValue)?this.dataListValue:[]},set:function(e){this.dataListValue=e},enumerable:!1,configurable:!0}),e.prototype.mergeWith=function(t){for(var n=e.mergableValues,o=0;o<n.length;o++)this.mergeValue(t,n[o])},e.prototype.addDependedProperty=function(e){this.dependedProperties||(this.dependedProperties=[]),this.dependedProperties.indexOf(e)<0&&this.dependedProperties.push(e)},e.prototype.getDependedProperties=function(){return this.dependedProperties?this.dependedProperties:[]},e.prototype.schemaType=function(){return this.className||this.baseClassName?"array":"boolean"==this.type||"number"==this.type?this.type:"string"},e.prototype.mergeValue=function(e,t){null==this[t]&&null!=e[t]&&(this[t]=e[t])},e.Index=1,e.mergableValues=["typeValue","choicesValue","baseValue","readOnlyValue","visibleValue","isSerializable","isLightSerializable","isCustom","isBindable","isUnique","isDynamicChoices","isLocalizableValue","className","alternativeName","layout","classNamePart","baseClassName","defaultValue","serializationProperty","onGetValue","onSetValue","displayName","category","categoryIndex","visibleIndex","nextToProperty","showMode","dependedProperties","visibleIf","onPropertyEditorUpdate","maxLength","maxValue","minValue","dataListValue"],e}(),C=function(){function e(){}return e.addProperty=function(t,n){t=t.toLowerCase();var o=e.properties;o[t]||(o[t]=[]),o[t].push(n)},e.removeProperty=function(t,n){t=t.toLowerCase();var o=e.properties;if(o[t])for(var r=o[t],i=0;i<r.length;i++)if(r[i].name==n){o[t].splice(i,1);break}},e.addClass=function(t,n){t=t.toLowerCase(),n&&(n=n.toLowerCase()),e.parentClasses[t]=n},e.getProperties=function(t){t=t.toLowerCase();for(var n=[],o=e.properties;t;){var r=o[t];if(r)for(var i=0;i<r.length;i++)n.push(r[i]);t=e.parentClasses[t]}return n},e.createProperties=function(t){t&&t.getType&&e.createPropertiesCore(t,t.getType())},e.createPropertiesCore=function(t,n){var o=e.properties;o[n]&&e.createPropertiesInObj(t,o[n]);var r=e.parentClasses[n];r&&e.createPropertiesCore(t,r)},e.createPropertiesInObj=function(t,n){for(var o=0;o<n.length;o++)e.createPropertyInObj(t,n[o])},e.createPropertyInObj=function(e,t){if(!e[t.name]&&!e.hasOwnProperty(t.name))if(t.isLocalizable&&t.serializationProperty&&!e[t.serializationProperty]&&e.createCustomLocalizableObj){e.createCustomLocalizableObj(t.name);var n={get:function(){return e.getLocalizableString(t.name)}};Object.defineProperty(e,t.serializationProperty,n);var o={get:function(){return e.getLocalizableStringText(t.name,t.defaultValue)},set:function(n){e.setLocalizableStringText(t.name,n)}};Object.defineProperty(e,t.name,o)}else{var r=t.defaultValue,i=!1;if("function"==typeof e.createNewArray&&(E.metaData.isDescendantOf(t.className,"itemvalue")&&(e.createNewArray(t.name,(function(n){n.locOwner=e,n.ownerPropertyName=t.name})),i=!0),"multiplevalues"===t.type&&(e.createNewArray(t.name),i=!0),i&&(Array.isArray(r)&&e.setPropertyValue(t.name,r),r=null)),e.getPropertyValue&&e.setPropertyValue){o={get:function(){return t.onGetValue?t.onGetValue(e):e.getPropertyValue(t.name,r)},set:function(n){t.onSetValue?t.onSetValue(e,n,null):e.setPropertyValue(t.name,n)}};Object.defineProperty(e,t.name,o)}}},e.properties={},e.parentClasses={},e}(),w=function(){function e(e,t,n,o){void 0===n&&(n=null),void 0===o&&(o=null),this.name=e,this.creator=n,this.parentName=o,this.properties=null,e=e.toLowerCase(),this.parentName&&(this.parentName=this.parentName.toLowerCase(),C.addClass(e,this.parentName)),this.properties=new Array;for(var r=0;r<t.length;r++){var i=this.createProperty(t[r]);i&&this.properties.push(i)}}return e.prototype.find=function(e){for(var t=0;t<this.properties.length;t++)if(this.properties[t].name==e)return this.properties[t];return null},e.prototype.createProperty=function(t){var n="string"==typeof t?t:t.name;if(n){var o=null,r=n.indexOf(e.typeSymbol);r>-1&&(o=n.substring(r+1),n=n.substring(0,r));var i=this.getIsPropertyNameRequired(n)||!!t.isRequired;n=this.getPropertyName(n);var a=new x(this,n,i);if(o&&(a.type=o),"object"==typeof t){if(t.type&&(a.type=t.type),s.isValueEmpty(t.default)||(a.defaultValue=t.default),s.isValueEmpty(t.isSerializable)||(a.isSerializable=t.isSerializable),s.isValueEmpty(t.isLightSerializable)||(a.isLightSerializable=t.isLightSerializable),s.isValueEmpty(t.maxLength)||(a.maxLength=t.maxLength),s.isValueEmpty(t.displayName)||(a.displayName=t.displayName),s.isValueEmpty(t.category)||(a.category=t.category),s.isValueEmpty(t.categoryIndex)||(a.categoryIndex=t.categoryIndex),s.isValueEmpty(t.nextToProperty)||(a.nextToProperty=t.nextToProperty),s.isValueEmpty(t.visibleIndex)||(a.visibleIndex=t.visibleIndex),s.isValueEmpty(t.showMode)||(a.showMode=t.showMode),s.isValueEmpty(t.maxValue)||(a.maxValue=t.maxValue),s.isValueEmpty(t.minValue)||(a.minValue=t.minValue),s.isValueEmpty(t.dataList)||(a.dataList=t.dataList),s.isValueEmpty(t.isDynamicChoices)||(a.isDynamicChoices=t.isDynamicChoices),s.isValueEmpty(t.isBindable)||(a.isBindable=t.isBindable),s.isValueEmpty(t.isUnique)||(a.isUnique=t.isUnique),!0!==t.visible&&!1!==t.visible||(a.visible=t.visible),t.visibleIf&&(a.visibleIf=t.visibleIf),t.onPropertyEditorUpdate&&(a.onPropertyEditorUpdate=t.onPropertyEditorUpdate),!0===t.readOnly&&(a.readOnly=!0),t.choices){var l="function"==typeof t.choices?t.choices:null,u="function"!=typeof t.choices?t.choices:null;a.setChoices(u,l)}if(t.baseValue&&a.setBaseValue(t.baseValue),t.onGetValue&&(a.onGetValue=t.onGetValue),t.onSetValue&&(a.onSetValue=t.onSetValue),t.isLocalizable&&(t.serializationProperty="loc"+a.name),t.serializationProperty)a.serializationProperty=t.serializationProperty,a.serializationProperty&&0==a.serializationProperty.indexOf("loc")&&(a.isLocalizable=!0);t.isLocalizable&&(a.isLocalizable=t.isLocalizable),t.className&&(a.className=t.className),t.baseClassName&&(a.baseClassName=t.baseClassName),t.classNamePart&&(a.classNamePart=t.classNamePart),t.alternativeName&&(a.alternativeName=t.alternativeName),t.layout&&(a.layout=t.layout),t.dependsOn&&this.addDependsOnProperties(a,t.dependsOn)}return a}},e.prototype.addDependsOnProperties=function(e,t){if(Array.isArray(t))for(var n=0;n<t.length;n++)this.addDependsOnProperty(e,t[n]);else this.addDependsOnProperty(e,t)},e.prototype.addDependsOnProperty=function(e,t){var n=this.find(t);n||(n=R.findProperty(this.parentName,t)),n&&n.addDependedProperty(e.name)},e.prototype.getIsPropertyNameRequired=function(t){return t.length>0&&t[0]==e.requiredSymbol},e.prototype.getPropertyName=function(e){return this.getIsPropertyNameRequired(e)?e=e.slice(1):e},e.requiredSymbol="!",e.typeSymbol=":",e}(),P=function(){function e(){this.classes={},this.alternativeNames={},this.childrenClasses={},this.classProperties={},this.classHashProperties={}}return e.prototype.getObjPropertyValue=function(e,t){if(this.isObjWrapper(e)){var n=e.getOriginalObj();if(o=R.findProperty(n.getType(),t))return this.getObjPropertyValueCore(n,o)}var o;return(o=R.findProperty(e.getType(),t))?this.getObjPropertyValueCore(e,o):e[t]},e.prototype.setObjPropertyValue=function(e,t,n){e[t]!==n&&(e[t]&&e[t].setJson?e[t].setJson(n):e[t]=n)},e.prototype.getObjPropertyValueCore=function(e,t){if(!t.isSerializable)return e[t.name];if(t.isLocalizable){if(t.isArray)return e[t.name];if(t.serializationProperty)return e[t.serializationProperty].text}return e.getPropertyValue(t.name)},e.prototype.isObjWrapper=function(e){return!!e.getOriginalObj&&!!e.getOriginalObj()},e.prototype.addClass=function(e,t,n,o){void 0===n&&(n=null),void 0===o&&(o=null),e=e.toLowerCase();var r=new w(e,t,n,o);(this.classes[e]=r,o)&&(o=o.toLowerCase(),this.childrenClasses[o]||(this.childrenClasses[o]=[]),this.childrenClasses[o].push(r));return r},e.prototype.removeClass=function(e){var t=this.findClass(e);if(t&&(delete this.classes[t.name],t.parentName)){var n=this.childrenClasses[t.parentName].indexOf(t);n>-1&&this.childrenClasses[t.parentName].splice(n,1)}},e.prototype.overrideClassCreatore=function(e,t){this.overrideClassCreator(e,t)},e.prototype.overrideClassCreator=function(e,t){e=e.toLowerCase();var n=this.findClass(e);n&&(n.creator=t)},e.prototype.getProperties=function(e){var t=this.findClass(e);if(!t)return[];var n=this.classProperties[t.name];return n||(this.fillPropertiesForClass(t.name),this.classProperties[t.name])},e.prototype.getHashProperties=function(e){var t=this.findClass(e);if(!t)return{};var n=this.classHashProperties[t.name];return n||(this.fillPropertiesForClass(t.name),this.classHashProperties[t.name])},e.prototype.fillPropertiesForClass=function(e){var t=new Array,n={};this.fillProperties(e,t,n),this.classProperties[e]=t,this.classHashProperties[e]=n},e.prototype.getPropertiesByObj=function(e){if(!e||!e.getType)return[];for(var t={},n=this.getProperties(e.getType()),o=0;o<n.length;o++)t[n[o].name]=n[o];var r=e.getDynamicType?this.getProperties(e.getDynamicType()):null;if(r&&r.length>0)for(o=0;o<r.length;o++){var i=r[o];t[i.name]||(t[i.name]=i)}return Object.keys(t).map((function(e){return t[e]}))},e.prototype.getDynamicPropertiesByObj=function(e,t){if(void 0===t&&(t=null),!e||!e.getType||!e.getDynamicType&&!t)return[];var n=t||e.getDynamicType();if(!n)return[];var o=this.getProperties(n);if(!o||0==o.length)return[];for(var r={},i=this.getProperties(e.getType()),a=0;a<i.length;a++)r[i[a].name]=i[a];var s=[];for(a=0;a<o.length;a++){var l=o[a];r[l.name]||s.push(l)}return s},e.prototype.hasOriginalProperty=function(e,t){return!!this.getOriginalProperty(e,t)},e.prototype.getOriginalProperty=function(e,t){var n=this.findProperty(e.getType(),t);return n||(this.isObjWrapper(e)?this.findProperty(e.getOriginalObj().getType(),t):null)},e.prototype.getProperty=function(e,t){var n=this.findProperty(e,t);if(!n)return n;var o=this.findClass(e);if(n.classInfo===o)return n;var r=new x(o,t,n.isRequired);return r.mergeWith(n),o.properties.push(r),this.emptyClassPropertiesHash(o),r},e.prototype.findProperty=function(e,t){var n=this.getHashProperties(e)[t];return n||null},e.prototype.findProperties=function(e,t){for(var n=[],o=this.getHashProperties(e),r=0;r<t.length;r++){var i=o[t[r]];i&&n.push(i)}return n},e.prototype.getAllPropertiesByName=function(e){for(var t=new Array,n=this.getAllClasses(),o=0;o<n.length;o++)for(var r=this.findClass(n[o]),i=0;i<r.properties.length;i++)if(r.properties[i].name==e){t.push(r.properties[i]);break}return t},e.prototype.getAllClasses=function(){var e=new Array;for(var t in this.classes)e.push(t);return e},e.prototype.createClass=function(e,t){void 0===t&&(t=void 0),e=e.toLowerCase();var n=this.findClass(e);if(!n)return null;if(n.creator)return n.creator(t);for(var o=n.parentName;o;){if(!(n=this.findClass(o)))return null;if(o=n.parentName,n.creator)return this.createCustomType(e,n.creator,t)}return null},e.prototype.createCustomType=function(e,t,n){void 0===n&&(n=void 0),e=e.toLowerCase();var o=t(n),r=e,i=o.getTemplate?o.getTemplate():o.getType();return o.getType=function(){return r},o.getTemplate=function(){return i},C.createProperties(o),o},e.prototype.getChildrenClasses=function(e,t){void 0===t&&(t=!1),e=e.toLowerCase();var n=[];return this.fillChildrenClasses(e,t,n),n},e.prototype.getRequiredProperties=function(e){for(var t=this.getProperties(e),n=[],o=0;o<t.length;o++)t[o].isRequired&&n.push(t[o].name);return n},e.prototype.addProperties=function(e,t){e=e.toLowerCase();for(var n=this.findClass(e),o=0;o<t.length;o++)this.addCustomPropertyCore(n,t[o])},e.prototype.addProperty=function(e,t){return this.addCustomPropertyCore(this.findClass(e),t)},e.prototype.addCustomPropertyCore=function(e,t){if(!e)return null;var n=e.createProperty(t);return n&&(n.isCustom=!0,this.addPropertyToClass(e,n),this.emptyClassPropertiesHash(e),C.addProperty(e.name,n)),n},e.prototype.removeProperty=function(e,t){var n=this.findClass(e);if(!n)return!1;var o=n.find(t);o&&(this.removePropertyFromClass(n,o),this.emptyClassPropertiesHash(n),C.removeProperty(n.name,t))},e.prototype.addPropertyToClass=function(e,t){null==e.find(t.name)&&e.properties.push(t)},e.prototype.removePropertyFromClass=function(e,t){var n=e.properties.indexOf(t);n<0||e.properties.splice(n,1)},e.prototype.emptyClassPropertiesHash=function(e){this.classProperties[e.name]=null,this.classHashProperties[e.name]=null;for(var t=this.getChildrenClasses(e.name),n=0;n<t.length;n++)this.classProperties[t[n].name]=null,this.classHashProperties[t[n].name]=null},e.prototype.fillChildrenClasses=function(e,t,n){var o=this.childrenClasses[e];if(o)for(var r=0;r<o.length;r++)t&&!o[r].creator||n.push(o[r]),this.fillChildrenClasses(o[r].name,t,n)},e.prototype.findClass=function(e){e=e.toLowerCase();var t=this.classes[e];if(!t){var n=this.alternativeNames[e];if(n&&n!=e)return this.findClass(n)}return t},e.prototype.isDescendantOf=function(e,t){if(!e||!t)return!1;e=e.toLowerCase(),t=t.toLowerCase();var n=this.findClass(e);if(!n)return!1;var o=n;do{if(o.name===t)return!0;o=this.classes[o.parentName]}while(o);return!1},e.prototype.addAlterNativeClassName=function(e,t){this.alternativeNames[t.toLowerCase()]=e.toLowerCase()},e.prototype.generateSchema=function(e){void 0===e&&(e=void 0),e||(e="survey");var t=this.findClass(e);if(!t)return null;var n={$schema:"http://json-schema.org/draft-07/schema#",title:"SurveyJS Library json schema",type:"object",properties:{},definitions:{}};return this.generateSchemaProperties(t,n.properties,n.definitions),n},e.prototype.generateSchemaProperties=function(e,t,n){if(e)for(var o=0;o<e.properties.length;o++){var r=e.properties[o];t[r.name]=this.generateSchemaProperty(r,n)}},e.prototype.generateSchemaProperty=function(e,t){var n={type:e.schemaType()};if(e.hasChoices&&(n.enum=e.getChoices(null)),e.className&&(n.items={$ref:"#"+e.className},this.generateChemaClass(e.className,t)),e.baseClassName){var o=this.getChildrenClasses(e.baseClassName,!0);"question"==e.baseClassName&&o.push(this.findClass("panel")),n.items=[];for(var r=0;r<o.length;r++){var i=o[r].name;n.items.push({$ref:"#"+i}),this.generateChemaClass(i,t)}}return n},e.prototype.generateChemaClass=function(e,t){if(!t[e]){var n=this.findClass(e);if(n){var o=!!n.parentName&&"base"!=n.parentName;o&&this.generateChemaClass(n.parentName,t);var r={type:"object",$id:"#"+e};t[e]=r;var i={};this.generateSchemaProperties(n,i,t),o?r.allOff=[{$ref:"#"+n.parentName},{properties:i}]:r.properties=i}}},e.prototype.fillProperties=function(e,t,n){var o=this.findClass(e);if(o){o.parentName&&this.fillProperties(o.parentName,t,n);for(var r=0;r<o.properties.length;r++){var i=o.properties[r];this.addPropertyCore(i,t,n),n[i.name]=i}}},e.prototype.addPropertyCore=function(e,t,n){if(n[e.name]){for(var o=-1,r=0;r<t.length;r++)if(t[r].name==e.name){o=r;break}e.mergeWith(t[o]),t[o]=e}else t.push(e)},e}(),_=function(){function e(e,t){this.type=e,this.message=t,this.description="",this.at=-1}return e.prototype.getFullDescription=function(){return this.message+(this.description?"\n"+this.description:"")},e}(),V=function(e){function t(t,n){var o=e.call(this,"unknownproperty","The property '"+t+"' in class '"+n+"' is unknown.")||this;o.propertyName=t,o.className=n;var r=E.metaData.getProperties(n);if(r){o.description="The list of available properties are: ";for(var i=0;i<r.length;i++)i>0&&(o.description+=", "),o.description+=r[i].name;o.description+="."}return o}return f(t,e),t}(_),T=function(e){function t(t,n,o){var r=e.call(this,n,o)||this;r.baseClassName=t,r.type=n,r.message=o,r.description="The following types are available: ";for(var i=E.metaData.getChildrenClasses(t,!0),a=0;a<i.length;a++)a>0&&(r.description+=", "),r.description+="'"+i[a].name+"'";return r.description+=".",r}return f(t,e),t}(_),k=function(e){function t(t,n){var o=e.call(this,n,"missingtypeproperty","The property type is missing in the object. Please take a look at property: '"+t+"'.")||this;return o.propertyName=t,o.baseClassName=n,o}return f(t,e),t}(T),S=function(e){function t(t,n){var o=e.call(this,n,"incorrecttypeproperty","The property type is incorrect in the object. Please take a look at property: '"+t+"'.")||this;return o.propertyName=t,o.baseClassName=n,o}return f(t,e),t}(T),O=function(e){function t(t,n){var o=e.call(this,"requiredproperty","The property '"+t+"' is required in class '"+n+"'.")||this;return o.propertyName=t,o.className=n,o}return f(t,e),t}(_),E=function(){function e(){this.errors=new Array,this.lightSerializing=!1}return Object.defineProperty(e,"metaData",{get:function(){return e.metaDataValue},enumerable:!1,configurable:!0}),e.prototype.toJsonObject=function(e,t){return void 0===t&&(t=!1),this.toJsonObjectCore(e,null,t)},e.prototype.toObject=function(e,t){this.toObjectCore(e,t);var n=this.getRequiredError(t,e);n&&this.addNewError(n,e)},e.prototype.toObjectCore=function(t,n){if(t){var o=null,r=void 0,i=!0;if(n.getType&&(r=n.getType(),o=e.metaData.getProperties(r),i=!!r&&!e.metaData.isDescendantOf(r,"itemvalue")),o){for(var a in n.startLoadingFromJson&&n.startLoadingFromJson(),o=this.addDynamicProperties(n,t,o),t)if(a!==e.typePropertyName)if(a!==e.positionPropertyName){var s=this.findProperty(o,a);s?this.valueToObj(t[a],n,s):i&&this.addNewError(new V(a.toString(),r),t)}else n[a]=t[a];n.endLoadingFromJson&&n.endLoadingFromJson()}}},e.prototype.toJsonObjectCore=function(t,n,o){if(void 0===o&&(o=!1),!t||!t.getType)return t;if("function"==typeof t.getData)return t.getData();var r={};return null==n||n.className||(r[e.typePropertyName]=n.getObjType(t.getType())),this.propertiesToJson(t,e.metaData.getProperties(t.getType()),r,o),this.propertiesToJson(t,this.getDynamicProperties(t),r,o),r},e.prototype.getDynamicProperties=function(e){return R.getDynamicPropertiesByObj(e)},e.prototype.addDynamicProperties=function(e,t,n){if(!e.getDynamicPropertyName)return n;var o=e.getDynamicPropertyName();if(!o)return n;t[o]&&(e[o]=t[o]);for(var r=this.getDynamicProperties(e),i=[],a=0;a<n.length;a++)i.push(n[a]);for(a=0;a<r.length;a++)i.push(r[a]);return i},e.prototype.propertiesToJson=function(e,t,n,o){void 0===o&&(o=!1);for(var r=0;r<t.length;r++)this.valueToJson(e,n,t[r],o)},e.prototype.valueToJson=function(e,t,n,o){if(void 0===o&&(o=!1),!(!1===n.isSerializable||!1===n.isLightSerializable&&this.lightSerializing)){var r=n.getValue(e);if(o||!n.isDefaultValue(r)){if(this.isValueArray(r)){for(var i=[],a=0;a<r.length;a++)i.push(this.toJsonObjectCore(r[a],n,o));r=i.length>0?i:null}else r=this.toJsonObjectCore(r,n,o);var s="function"==typeof e.getPropertyValue&&null!==e.getPropertyValue(n.name,null);(o&&s||!n.isDefaultValue(r))&&(t[n.name]=r)}}},e.prototype.valueToObj=function(e,t,n){if(null!=e)if(this.removePos(n,e),null!=n&&n.hasToUseSetValue)n.setValue(t,e,this);else if(this.isValueArray(e))this.valueToArray(e,t,n.name,n);else{var o=this.createNewObj(e,n);o.newObj&&(this.toObjectCore(e,o.newObj),e=o.newObj),o.error||(null!=n?n.setValue(t,e,this):t[n.name]=e)}},e.prototype.removePos=function(e,t){!e||!e.type||e.type.indexOf("value")<0||this.removePosFromObj(t)},e.prototype.removePosFromObj=function(t){if(t){if(Array.isArray(t))for(var n=0;n<t.length;n++)this.removePosFromObj(t[n]);t[e.positionPropertyName]&&delete t[e.positionPropertyName]}},e.prototype.isValueArray=function(e){return e&&Array.isArray(e)},e.prototype.createNewObj=function(t,n){var o={newObj:null,error:null},r=t[e.typePropertyName];return!r&&null!=n&&n.className&&(r=n.className),r=n.getClassName(r),o.newObj=r?e.metaData.createClass(r,t):null,o.error=this.checkNewObjectOnErrors(o.newObj,t,n,r),o},e.prototype.checkNewObjectOnErrors=function(e,t,n,o){var r=null;return e?r=this.getRequiredError(e,t):n.baseClassName&&(r=o?new S(n.name,n.baseClassName):new k(n.name,n.baseClassName)),r&&this.addNewError(r,t),r},e.prototype.getRequiredError=function(t,n){if(!t.getType||"function"==typeof t.getData)return null;var o=t.getType(),r=e.metaData.getRequiredProperties(o);if(!r)return null;for(var i=0;i<r.length;i++)if(!n[r[i]])return new O(r[i],o);return null},e.prototype.addNewError=function(t,n){n&&n[e.positionPropertyName]&&(t.at=n[e.positionPropertyName].start),this.errors.push(t)},e.prototype.valueToArray=function(e,t,n,o){t[n]&&e.length>0&&t[n].splice(0,t[n].length);var r=t[n]?t[n]:[];this.addValuesIntoArray(e,r,o),t[n]||(t[n]=r)},e.prototype.addValuesIntoArray=function(e,t,n){for(var o=0;o<e.length;o++){var r=this.createNewObj(e[o],n);r.newObj?(e[o].name&&(r.newObj.name=e[o].name),t.push(r.newObj),this.toObjectCore(e[o],r.newObj)):r.error||t.push(e[o])}},e.prototype.findProperty=function(e,t){if(!e)return null;for(var n=0;n<e.length;n++){var o=e[n];if(o.name==t||o.alternativeName==t)return o}return null},e.typePropertyName="type",e.positionPropertyName="pos",e.metaDataValue=new P,e}(),R=E.metaData,I=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),q=function(e,t,n){if(n||2===arguments.length)for(var o,r=0,i=t.length;r<i;r++)!o&&r in t||(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))},D=function(){function e(e){this.obj=e,this.properties=null,this.values=null}return e.prototype.getType=function(){return"bindings"},e.prototype.getNames=function(){var e=[];this.fillProperties();for(var t=0;t<this.properties.length;t++)this.properties[t].isVisible("",this.obj)&&e.push(this.properties[t].name);return e},e.prototype.getProperties=function(){var e=[];this.fillProperties();for(var t=0;t<this.properties.length;t++)e.push(this.properties[t]);return e},e.prototype.setBinding=function(e,t){this.values||(this.values={}),t?this.values[e]=t:(delete this.values[e],0==Object.keys(this.values).length&&(this.values=null))},e.prototype.clearBinding=function(e){this.setBinding(e,"")},e.prototype.isEmpty=function(){return!this.values},e.prototype.getValueNameByPropertyName=function(e){if(this.values)return this.values[e]},e.prototype.getPropertiesByValueName=function(e){if(!this.values)return[];var t=[];for(var n in this.values)this.values[n]==e&&t.push(n);return t},e.prototype.getJson=function(){if(this.isEmpty())return null;var e={};for(var t in this.values)e[t]=this.values[t];return e},e.prototype.setJson=function(e){if(this.values=null,e)for(var t in this.values={},e)this.values[t]=e[t]},e.prototype.fillProperties=function(){if(null===this.properties){this.properties=[];for(var e=R.getPropertiesByObj(this.obj),t=0;t<e.length;t++)e[t].isBindable&&this.properties.push(e[t])}},e}(),A=function(){function e(t,n,o){this.currentDependency=t,this.target=n,this.property=o,this.dependencies=[],this.id=""+ ++e.DependenciesCount}return e.prototype.addDependency=function(e,t){this.target===e&&this.property===t||this.dependencies.some((function(n){return n.obj===e&&n.prop===t}))||(this.dependencies.push({obj:e,prop:t,id:this.id}),e.registerFunctionOnPropertiesValueChanged([t],this.currentDependency,this.id))},e.prototype.dispose=function(){this.dependencies.forEach((function(e){e.obj.unRegisterFunctionOnPropertiesValueChanged([e.prop],e.id)}))},e.DependenciesCount=0,e}(),j=function(){function e(t){this._updater=t,this.dependencies=void 0,this.type=e.ComputedUpdaterType}return Object.defineProperty(e.prototype,"updater",{get:function(){return this._updater},enumerable:!1,configurable:!0}),e.prototype.setDependencies=function(e){this.clearDependencies(),this.dependencies=e},e.prototype.getDependencies=function(){return this.dependencies},e.prototype.clearDependencies=function(){this.dependencies&&(this.dependencies.dispose(),this.dependencies=void 0)},e.prototype.dispose=function(){this.clearDependencies()},e.ComputedUpdaterType="__dependency_computed",e}(),L=function(){function e(){this.propertyHash={},this.eventList=[],this.isLoadingFromJsonValue=!1,this.loadingOwner=null,this.onPropertyChanged=this.addEvent(),this.onItemValuePropertyChanged=this.addEvent(),this.isCreating=!0,this.bindingsValue=new D(this),C.createProperties(this),this.onBaseCreating(),this.isCreating=!1}return e.finishCollectDependencies=function(){var t=e.currentDependencis;return e.currentDependencis=void 0,t},e.startCollectDependencies=function(t,n,o){if(void 0!==e.currentDependencis)throw new Error("Attempt to collect nested dependencies. Nested dependencies are not supported.");e.currentDependencis=new A(t,n,o)},e.collectDependency=function(t,n){void 0!==e.currentDependencis&&e.currentDependencis.addDependency(t,n)},Object.defineProperty(e,"commentPrefix",{get:function(){return a.commentPrefix},set:function(e){a.commentPrefix=e},enumerable:!1,configurable:!0}),e.prototype.isValueEmpty=function(e,t){return void 0===t&&(t=!0),t&&(e=this.trimValue(e)),s.isValueEmpty(e)},e.prototype.trimValue=function(e){return e&&("string"==typeof e||e instanceof String)?e.trim():e},e.prototype.IsPropertyEmpty=function(e){return""!==e&&this.isValueEmpty(e)},e.prototype.dispose=function(){for(var e=0;e<this.eventList.length;e++)this.eventList[e].clear();this.onPropertyValueChangedCallback=void 0,this.isDisposedValue=!0},Object.defineProperty(e.prototype,"isDisposed",{get:function(){return!0===this.isDisposedValue},enumerable:!1,configurable:!0}),e.prototype.addEvent=function(){var e=new F;return this.eventList.push(e),e},e.prototype.onBaseCreating=function(){},e.prototype.getType=function(){return"base"},e.prototype.getSurvey=function(e){return void 0===e&&(e=!1),null},Object.defineProperty(e.prototype,"inSurvey",{get:function(){return!!this.getSurvey(!0)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bindings",{get:function(){return this.bindingsValue},enumerable:!1,configurable:!0}),e.prototype.checkBindings=function(e,t){},e.prototype.updateBindings=function(e,t){var n=this.bindings.getValueNameByPropertyName(e);n&&this.updateBindingValue(n,t)},e.prototype.updateBindingValue=function(e,t){},e.prototype.getTemplate=function(){return this.getType()},Object.defineProperty(e.prototype,"isLoadingFromJson",{get:function(){return this.getIsLoadingFromJson()},enumerable:!1,configurable:!0}),e.prototype.getIsLoadingFromJson=function(){return!(!this.loadingOwner||!this.loadingOwner.isLoadingFromJson)||this.isLoadingFromJsonValue},e.prototype.startLoadingFromJson=function(){this.isLoadingFromJsonValue=!0},e.prototype.endLoadingFromJson=function(){this.isLoadingFromJsonValue=!1},e.prototype.toJSON=function(){return(new E).toJsonObject(this)},e.prototype.fromJSON=function(e){(new E).toObject(e,this),this.onSurveyLoad()},e.prototype.onSurveyLoad=function(){},e.prototype.clone=function(){var e=R.createClass(this.getType());return e.fromJSON(this.toJSON()),e},e.prototype.getPropertyByName=function(e){return R.findProperty(this.getType(),e)},e.prototype.isPropertyVisible=function(e){var t=this.getPropertyByName(e);return!!t&&t.isVisible("",this)},e.createProgressInfo=function(){return{questionCount:0,answeredQuestionCount:0,requiredQuestionCount:0,requiredAnsweredQuestionCount:0}},e.prototype.getProgressInfo=function(){return e.createProgressInfo()},e.prototype.localeChanged=function(){},e.prototype.locStrsChanged=function(){if(this.arraysInfo)for(var t in this.arraysInfo){if((o=this.arraysInfo[t])&&o.isItemValues){var n=this.getPropertyValue(t);n&&e.itemValueLocStrChanged&&e.itemValueLocStrChanged(n)}}if(this.localizableStrings)for(var t in this.localizableStrings){var o;(o=this.getLocalizableString(t))&&o.strChanged()}},e.prototype.getPropertyValue=function(e,t){void 0===t&&(t=null);var n=this.getPropertyValueCore(this.propertyHash,e);if(this.IsPropertyEmpty(n)){if(null!=t)return t;var o=R.findProperty(this.getType(),e);if(o&&(!o.isCustom||!this.isCreating)){if(!this.IsPropertyEmpty(o.defaultValue)&&!Array.isArray(o.defaultValue))return o.defaultValue;if("boolean"==o.type||"switch"==o.type)return!1;if(o.isCustom&&o.onGetValue)return o.onGetValue(this)}}return n},e.prototype.getPropertyValueCore=function(t,n){return e.collectDependency(this,n),this.getPropertyValueCoreHandler?this.getPropertyValueCoreHandler(t,n):t[n]},e.prototype.geValueFromHash=function(){return this.propertyHash.value},e.prototype.setPropertyValueCore=function(e,t,n){this.setPropertyValueCoreHandler?this.isDisposedValue?console.warn("Attempt to set property '"+t+"' of a disposed object '"+this.getType()+"'"):this.setPropertyValueCoreHandler(e,t,n):e[t]=n},Object.defineProperty(e.prototype,"isEditingSurveyElement",{get:function(){var e=this.getSurvey();return!!e&&e.isEditingSurveyElement},enumerable:!1,configurable:!0}),e.prototype.iteratePropertiesHash=function(e){var t=this,n=[];for(var o in this.propertyHash)"value"===o&&this.isEditingSurveyElement&&Array.isArray(this.value)||n.push(o);n.forEach((function(n){return e(t.propertyHash,n)}))},e.prototype.setPropertyValue=function(e,t){var n=this.getPropertyValue(e);if(n&&Array.isArray(n)&&this.arraysInfo&&(!t||Array.isArray(t))){if(this.isTwoValueEquals(n,t))return;var o=this.arraysInfo[e];this.setArray(e,n,t,!!o&&o.isItemValues,o?o.onPush:null)}else this.setPropertyValueDirectly(e,t),this.isDisposedValue||this.isTwoValueEquals(n,t)||this.propertyValueChanged(e,n,t)},e.prototype.setPropertyValueDirectly=function(e,t){this.setPropertyValueCore(this.propertyHash,e,t)},e.prototype.clearPropertyValue=function(e){this.setPropertyValueCore(this.propertyHash,e,null),delete this.propertyHash[e]},e.prototype.onPropertyValueChangedCallback=function(e,t,n,o,r){},e.prototype.itemValuePropertyChanged=function(e,t,n,o){this.onItemValuePropertyChanged.fire(this,{obj:e,name:t,oldValue:n,newValue:o,propertyName:e.ownerPropertyName})},e.prototype.onPropertyValueChanged=function(e,t,n){},e.prototype.propertyValueChanged=function(e,t,n,o,r){if(!this.isLoadingFromJson&&(this.updateBindings(e,n),this.onPropertyValueChanged(e,t,n),this.onPropertyChanged.fire(this,{name:e,oldValue:t,newValue:n}),this.doPropertyValueChangedCallback(e,t,n,o,this),this.onPropChangeFunctions))for(var i=0;i<this.onPropChangeFunctions.length;i++)this.onPropChangeFunctions[i].name==e&&this.onPropChangeFunctions[i].func(n)},Object.defineProperty(e.prototype,"isInternal",{get:function(){return!1},enumerable:!1,configurable:!0}),e.prototype.doPropertyValueChangedCallback=function(e,t,n,o,r){if(!this.isInternal){r||(r=this);var i=this.getSurvey();i||(i=this),i.onPropertyValueChangedCallback&&i.onPropertyValueChangedCallback(e,t,n,r,o),i!==this&&this.onPropertyValueChangedCallback&&this.onPropertyValueChangedCallback(e,t,n,r,o)}},e.prototype.registerFunctionOnPropertyValueChanged=function(e,t,n){if(void 0===n&&(n=null),this.onPropChangeFunctions||(this.onPropChangeFunctions=[]),n)for(var o=0;o<this.onPropChangeFunctions.length;o++){var r=this.onPropChangeFunctions[o];if(r.name==e&&r.key==n)return void(r.func=t)}this.onPropChangeFunctions.push({name:e,func:t,key:n})},e.prototype.registerFunctionOnPropertiesValueChanged=function(e,t,n){void 0===n&&(n=null);for(var o=0;o<e.length;o++)this.registerFunctionOnPropertyValueChanged(e[o],t,n)},e.prototype.unRegisterFunctionOnPropertyValueChanged=function(e,t){if(void 0===t&&(t=null),this.onPropChangeFunctions)for(var n=0;n<this.onPropChangeFunctions.length;n++){var o=this.onPropChangeFunctions[n];if(o.name==e&&o.key==t)return void this.onPropChangeFunctions.splice(n,1)}},e.prototype.unRegisterFunctionOnPropertiesValueChanged=function(e,t){void 0===t&&(t=null);for(var n=0;n<e.length;n++)this.unRegisterFunctionOnPropertyValueChanged(e[n],t)},e.prototype.createCustomLocalizableObj=function(e){!this.getLocalizableString(e)&&this.getLocale&&this.createLocalizableString(e,this)},e.prototype.createLocalizableString=function(e,t,n,o){var r=this;void 0===n&&(n=!1),void 0===o&&(o=!1);var i=new d(t,n,e);return o&&(i.localizationName=e),i.onStrChanged=function(t,n){r.propertyValueChanged(e,t,n)},this.localizableStrings||(this.localizableStrings={}),this.localizableStrings[e]=i,i},e.prototype.getLocalizableString=function(e){return this.localizableStrings?this.localizableStrings[e]:null},e.prototype.getLocalizableStringText=function(e,t){void 0===t&&(t="");var n=this.getLocalizableString(e);if(!n)return"";var o=n.text;return o||t},e.prototype.setLocalizableStringText=function(e,t){var n=this.getLocalizableString(e);n&&(n.text=t)},e.prototype.addUsedLocales=function(e){if(this.localizableStrings)for(var t in this.localizableStrings){(r=this.getLocalizableString(t))&&this.AddLocStringToUsedLocales(r,e)}if(this.arraysInfo)for(var t in this.arraysInfo){var n=this.getPropertyValue(t);if(n&&n.length)for(var o=0;o<n.length;o++){var r;(r=n[o])&&r.addUsedLocales&&r.addUsedLocales(e)}}},e.prototype.searchText=function(e,t){var n=[];this.getSearchableLocalizedStrings(n);for(var o=0;o<n.length;o++)n[o].setFindText(e)&&t.push({element:this,str:n[o]})},e.prototype.getSearchableLocalizedStrings=function(e){if(this.localizableStrings){var t=[];this.getSearchableLocKeys(t);for(var n=0;n<t.length;n++){var o=this.getLocalizableString(t[n]);o&&e.push(o)}}if(this.arraysInfo){var r=[];this.getSearchableItemValueKeys(r);for(n=0;n<r.length;n++){var i=this.getPropertyValue(r[n]);if(i)for(var a=0;a<i.length;a++)e.push(i[a].locText)}}},e.prototype.getSearchableLocKeys=function(e){},e.prototype.getSearchableItemValueKeys=function(e){},e.prototype.AddLocStringToUsedLocales=function(e,t){for(var n=e.getLocales(),o=0;o<n.length;o++)t.indexOf(n[o])<0&&t.push(n[o])},e.prototype.createItemValues=function(e){var t=this,n=this.createNewArray(e,(function(n){n.locOwner=t,n.ownerPropertyName=e}));return this.arraysInfo[e].isItemValues=!0,n},e.prototype.notifyArrayChanged=function(e,t){e.onArrayChanged&&e.onArrayChanged(t)},e.prototype.createNewArrayCore=function(e){var t=null;return this.createArrayCoreHandler&&(t=this.createArrayCoreHandler(this.propertyHash,e)),t||(t=new Array,this.setPropertyValueCore(this.propertyHash,e,t)),t},e.prototype.ensureArray=function(e,t,n){if(void 0===t&&(t=null),void 0===n&&(n=null),!this.arraysInfo||!this.arraysInfo[e])return this.createNewArray(e,t,n)},e.prototype.createNewArray=function(e,t,n){void 0===t&&(t=null),void 0===n&&(n=null);var o=this.createNewArrayCore(e);this.arraysInfo||(this.arraysInfo={}),this.arraysInfo[e]={onPush:t,isItemValues:!1};var r=this;return o.push=function(n){var i=Object.getPrototypeOf(o).push.call(o,n);if(!r.isDisposedValue){t&&t(n,o.length-1);var a=new N(o.length-1,0,[n],[]);r.propertyValueChanged(e,o,o,a),r.notifyArrayChanged(o,a)}return i},o.unshift=function(n){var i=Object.getPrototypeOf(o).unshift.call(o,n);if(!r.isDisposedValue){t&&t(n,o.length-1);var a=new N(0,0,[n],[]);r.propertyValueChanged(e,o,o,a),r.notifyArrayChanged(o,a)}return i},o.pop=function(){var t=Object.getPrototypeOf(o).pop.call(o);if(!r.isDisposedValue){n&&n(t);var i=new N(o.length-1,1,[],[]);r.propertyValueChanged(e,o,o,i),r.notifyArrayChanged(o,i)}return t},o.splice=function(i,a){for(var s,l=[],u=2;u<arguments.length;u++)l[u-2]=arguments[u];i||(i=0),a||(a=0);var c=(s=Object.getPrototypeOf(o).splice).call.apply(s,q([o,i,a],l,!1));if(l||(l=[]),!r.isDisposedValue){if(n&&c)for(var p=0;p<c.length;p++)n(c[p]);if(t)for(p=0;p<l.length;p++)t(l[p],i+p);var d=new N(i,a,l,c);r.propertyValueChanged(e,o,o,d),r.notifyArrayChanged(o,d)}return c},o},e.prototype.getItemValueType=function(){},e.prototype.setArray=function(t,n,o,r,i){var a=[].concat(n);if(Object.getPrototypeOf(n).splice.call(n,0,n.length),o)for(var s=0;s<o.length;s++){var l=o[s];r&&e.createItemValue&&(l=e.createItemValue(l,this.getItemValueType())),Object.getPrototypeOf(n).push.call(n,l),i&&i(n[s])}var u=new N(0,a.length,n,a);this.propertyValueChanged(t,a,n,u),this.notifyArrayChanged(n,u)},e.prototype.isTwoValueEquals=function(e,t,n,o){return void 0===n&&(n=!1),void 0===o&&(o=!1),s.isTwoValueEquals(e,t,!1,!n,o)},e.copyObject=function(e,t){for(var n in t){var o=t[n];"object"==typeof o&&(o={},this.copyObject(o,t[n])),e[n]=o}},e.prototype.copyCssClasses=function(t,n){n&&("string"==typeof n||n instanceof String?t.root=n:e.copyObject(t,n))},e.prototype.getValueInLowCase=function(e){return e&&"string"==typeof e?e.toLowerCase():e},e.currentDependencis=void 0,e}(),N=function(e,t,n,o){this.index=e,this.deleteCount=t,this.itemsToAdd=n,this.deletedItems=o},M=function(){function e(){}return Object.defineProperty(e.prototype,"isEmpty",{get:function(){return!this.callbacks||0==this.callbacks.length},enumerable:!1,configurable:!0}),e.prototype.fire=function(e,t){if(this.callbacks)for(var n=0;n<this.callbacks.length;n++)if(this.callbacks[n](e,t),!this.callbacks)return},e.prototype.clear=function(){this.callbacks=void 0},e.prototype.add=function(e){this.hasFunc(e)||(this.callbacks||(this.callbacks=new Array),this.callbacks.push(e),this.fireCallbackChanged())},e.prototype.remove=function(e){if(this.hasFunc(e)){var t=this.callbacks.indexOf(e,0);this.callbacks.splice(t,1),this.fireCallbackChanged()}},e.prototype.hasFunc=function(e){return null!=this.callbacks&&this.callbacks.indexOf(e,0)>-1},e.prototype.fireCallbackChanged=function(){this.onCallbacksChanged&&this.onCallbacksChanged()},e}(),F=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return I(t,e),t}(M),B=function(){function e(e,t){void 0===e&&(e=null),void 0===t&&(t=null),this.text=e,this.errorOwner=t,this.visible=!0}return Object.defineProperty(e.prototype,"locText",{get:function(){return this.locTextValue||(this.locTextValue=new d(this.errorOwner,!0),this.locTextValue.text=this.getText()),this.locTextValue},enumerable:!1,configurable:!0}),e.prototype.getText=function(){var e=this.text;return e||(e=this.getDefaultText()),this.errorOwner&&(e=this.errorOwner.getErrorCustomText(e,this)),e},e.prototype.getErrorType=function(){return"base"},e.prototype.getDefaultText=function(){return""},e}(),z=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),H=function(e){function t(t,n){void 0===t&&(t=null),void 0===n&&(n=null);var o=e.call(this,t,n)||this;return o.text=t,o}return z(t,e),t.prototype.getErrorType=function(){return"required"},t.prototype.getDefaultText=function(){return u.getString("requiredError")},t}(B),Q=function(e){function t(t,n){void 0===t&&(t=null),void 0===n&&(n=null);var o=e.call(this,t,n)||this;return o.text=t,o}return z(t,e),t.prototype.getErrorType=function(){return"requireoneanswer"},t.prototype.getDefaultText=function(){return u.getString("requiredErrorInPanel")},t}(B),$=function(e){function t(t,n){void 0===t&&(t=null),void 0===n&&(n=null);var o=e.call(this,t,n)||this;return o.text=t,o}return z(t,e),t.prototype.getErrorType=function(){return"requirenumeric"},t.prototype.getDefaultText=function(){return u.getString("numericError")},t}(B),U=function(e){function t(t,n){void 0===n&&(n=null);var o=e.call(this,null,n)||this;return o.maxSize=t,o.locText.text=o.getText(),o}return z(t,e),t.prototype.getErrorType=function(){return"exceedsize"},t.prototype.getDefaultText=function(){return u.getString("exceedMaxSize").format(this.getTextSize())},t.prototype.getTextSize=function(){if(0===this.maxSize)return"0 Byte";var e=Math.floor(Math.log(this.maxSize)/Math.log(1024));return(this.maxSize/Math.pow(1024,e)).toFixed([0,0,2,3,3][e])+" "+["Bytes","KB","MB","GB","TB"][e]},t}(B),W=function(e){function t(t,n,o){void 0===o&&(o=null);var r=e.call(this,null,o)||this;return r.status=t,r.response=n,r}return z(t,e),t.prototype.getErrorType=function(){return"webrequest"},t.prototype.getDefaultText=function(){return u.getString("urlRequestError").format(this.status,this.response)},t}(B),G=function(e){function t(t,n){void 0===n&&(n=null);var o=e.call(this,t,n)||this;return o.text=t,o}return z(t,e),t.prototype.getErrorType=function(){return"webrequestempty"},t.prototype.getDefaultText=function(){return u.getString("urlGetChoicesError")},t}(B),J=function(e){function t(t,n){void 0===n&&(n=null);var o=e.call(this,t,n)||this;return o.text=t,o}return z(t,e),t.prototype.getErrorType=function(){return"otherempty"},t.prototype.getDefaultText=function(){return u.getString("otherRequiredError")},t}(B),K=function(e){function t(t,n){void 0===n&&(n=null);var o=e.call(this,t,n)||this;return o.text=t,o}return z(t,e),t.prototype.getErrorType=function(){return"uploadingfile"},t.prototype.getDefaultText=function(){return u.getString("uploadingFile")},t}(B),X=function(e){function t(t,n){void 0===n&&(n=null);var o=e.call(this,t,n)||this;return o.text=t,o}return z(t,e),t.prototype.getErrorType=function(){return"requiredinallrowserror"},t.prototype.getDefaultText=function(){return u.getString("requiredInAllRowsError")},t}(B),Z=function(e){function t(t,n){void 0===n&&(n=null);var o=e.call(this,null,n)||this;return o.minRowCount=t,o}return z(t,e),t.prototype.getErrorType=function(){return"minrowcounterror"},t.prototype.getDefaultText=function(){return u.getString("minRowCountError").format(this.minRowCount)},t}(B),Y=function(e){function t(t,n){void 0===n&&(n=null);var o=e.call(this,t,n)||this;return o.text=t,o}return z(t,e),t.prototype.getErrorType=function(){return"keyduplicationerror"},t.prototype.getDefaultText=function(){return u.getString("keyDuplicationError")},t}(B),ee=function(e){function t(t,n){void 0===n&&(n=null);var o=e.call(this,t,n)||this;return o.text=t,o}return z(t,e),t.prototype.getErrorType=function(){return"custom"},t}(B),te=function(){function e(){this.values=null,this.properties=null}return e.prototype.getFirstName=function(e,t){if(void 0===t&&(t=null),!e)return e;var n="";if(t&&(n=this.getFirstPropertyName(e,t)))return n;for(var o=0;o<e.length;o++){var r=e[o];if("."==r||"["==r)break;n+=r}return n},e.prototype.hasValue=function(e,t){return void 0===t&&(t=null),t||(t=this.values),this.getValueCore(e,t).hasValue},e.prototype.getValue=function(e,t){return void 0===t&&(t=null),t||(t=this.values),this.getValueCore(e,t).value},e.prototype.setValue=function(e,t,n){if(t){var o=this.getNonNestedObject(e,t,!0);o&&(e=o.value,t=o.text,e&&t&&(e[t]=n))}},e.prototype.getValueInfo=function(e){if(e.path)return e.value=this.getValueFromPath(e.path,this.values),e.hasValue=null!==e.value&&!s.isValueEmpty(e.value),void(!e.hasValue&&e.path.length>1&&"length"==e.path[e.path.length-1]&&(e.hasValue=!0,e.value=0));var t=this.getValueCore(e.name,this.values);e.value=t.value,e.hasValue=t.hasValue,e.path=t.hasValue?t.path:null},e.prototype.getValueFromPath=function(e,t){for(var n=0;t&&n<e.length;){var o=e[n];if(s.isNumber(o)&&Array.isArray(t)&&o>=t.length)return null;t=t[o],n++}return t},e.prototype.getValueCore=function(e,t){var n={hasValue:!1,value:null,path:null},o=t;if(!o&&0!==o&&!1!==o)return n;e&&e.lastIndexOf(".length")>-1&&e.lastIndexOf(".length")===e.length-".length".length&&(n.value=0,n.hasValue=!0);var r=this.getNonNestedObject(o,e,!1);return r?(n.path=r.path,n.value=r.text?this.getObjectValue(r.value,r.text):r.value,n.hasValue=!s.isValueEmpty(n.value),n):n},e.prototype.getNonNestedObject=function(e,t,n){for(var o=this.getFirstPropertyName(t,e,n),r=o?[o]:null;t!=o&&e;){if("["==t[0]){var i=this.getObjInArray(e,t);if(!i)return null;e=i.value,t=i.text,r.push(i.index)}else{if(!o&&t==this.getFirstName(t))return{value:e,text:t,path:r};if(e=this.getObjectValue(e,o),s.isValueEmpty(e)&&!n)return null;t=t.substr(o.length)}t&&"."==t[0]&&(t=t.substr(1)),(o=this.getFirstPropertyName(t,e,n))&&r.push(o)}return{value:e,text:t,path:r}},e.prototype.getObjInArray=function(e,t){if(!Array.isArray(e))return null;for(var n=1,o="";n<t.length&&"]"!=t[n];)o+=t[n],n++;return t=n<t.length?t.substr(n+1):"",(n=this.getIntValue(o))<0||n>=e.length?null:{value:e[n],text:t,index:n}},e.prototype.getFirstPropertyName=function(e,t,n){if(void 0===n&&(n=!1),!e)return e;if(t||(t={}),t.hasOwnProperty(e))return e;var o=e.toLowerCase(),r=o[0],i=r.toUpperCase();for(var a in t){var s=a[0];if(s===i||s===r){var l=a.toLowerCase();if(l==o)return a;if(o.length<=l.length)continue;var u=o[l.length];if("."!=u&&"["!=u)continue;if(l==o.substr(0,l.length))return a}}if(n&&"["!==e[0]){var c=e.indexOf(".");return c>-1&&(t[e=e.substr(0,c)]={}),e}return""},e.prototype.getObjectValue=function(e,t){return t?e[t]:null},e.prototype.getIntValue=function(e){return"0"==e||(0|e)>0&&e%1==0?Number(e):-1},e}(),ne=function(){function e(){this.functionHash={},this.isAsyncHash={}}return e.prototype.register=function(e,t,n){void 0===n&&(n=!1),this.functionHash[e]=t,n&&(this.isAsyncHash[e]=!0)},e.prototype.unregister=function(e){delete this.functionHash[e],delete this.isAsyncHash[e]},e.prototype.hasFunction=function(e){return!!this.functionHash[e]},e.prototype.isAsyncFunction=function(e){return!!this.isAsyncHash[e]},e.prototype.clear=function(){this.functionHash={}},e.prototype.getAll=function(){var e=[];for(var t in this.functionHash)e.push(t);return e.sort()},e.prototype.run=function(e,t,n){void 0===n&&(n=null);var o=this.functionHash[e];if(!o)return null;var r={func:o};if(n)for(var i in n)r[i]=n[i];return r.func(t)},e.Instance=new e,e}(),oe=ne.Instance.register;function re(e,t){if(null!=e)if(Array.isArray(e))for(var n=0;n<e.length;n++)re(e[n],t);else s.isNumber(e)&&(e=parseFloat(e)),t.push(e)}function ie(e,t){var n=[];re(e,n);for(var o=void 0,r=0;r<n.length;r++)void 0===o&&(o=n[r]),t?o>n[r]&&(o=n[r]):o<n[r]&&(o=n[r]);return o}function ae(e,t){var n=function(e){if(2!=e.length)return null;var t=e[0];if(!t)return null;if(!Array.isArray(t)&&!Array.isArray(Object.keys(t)))return null;var n=e[1];return"string"==typeof n||n instanceof String?{data:t,name:n}:null}(e);if(n){var o=void 0;if(Array.isArray(n.data))for(var r=0;r<n.data.length;r++){(a=n.data[r])&&a[n.name]&&(o=t(o,a[n.name]))}else for(var i in n.data){var a;(a=n.data[i])&&a[n.name]&&(o=t(o,a[n.name]))}return o}}function se(e){var t=ae(e,(function(e,t){return null==e&&(e=0),+e+ +t}));return void 0!==t?t:0}function le(e){var t=ae(e,(function(e,t){return null==e&&(e=0),e+1}));return void 0!==t?t:0}function ue(e){if(!e)return!1;for(var t=e.questions,n=0;n<t.length;n++)if(t[n].hasErrors(!1))return!1;return!0}ne.Instance.register("sum",(function(e){var t=[];re(e,t);for(var n=0,o=0;o<t.length;o++)n+=t[o];return n})),ne.Instance.register("min",(function(e){return ie(e,!0)})),ne.Instance.register("max",(function(e){return ie(e,!1)})),ne.Instance.register("count",(function(e){var t=[];return re(e,t),t.length})),ne.Instance.register("avg",(function(e){var t=[];re(e,t);for(var n=0,o=0;o<t.length;o++)n+=t[o];return t.length>0?n/t.length:0})),ne.Instance.register("sumInArray",se),ne.Instance.register("minInArray",(function(e){return ae(e,(function(e,t){return null==e?t:e<t?e:t}))})),ne.Instance.register("maxInArray",(function(e){return ae(e,(function(e,t){return null==e?t:e>t?e:t}))})),ne.Instance.register("countInArray",le),ne.Instance.register("avgInArray",(function(e){var t=le(e);return 0==t?0:se(e)/t})),ne.Instance.register("iif",(function(e){return e||3===e.length?e[0]?e[1]:e[2]:""})),ne.Instance.register("getDate",(function(e){return!e&&e.length<1?null:e[0]?new Date(e[0]):null})),ne.Instance.register("age",(function(e){if(!e&&e.length<1)return null;if(!e[0])return null;var t=new Date(e[0]),n=new Date,o=n.getFullYear()-t.getFullYear(),r=n.getMonth()-t.getMonth();return(r<0||0===r&&n.getDate()<t.getDate())&&(o-=o>0?1:0),o})),ne.Instance.register("isContainerReady",(function(e){if(!e&&e.length<1)return!1;if(!e[0]||!this.survey)return!1;var t=e[0],n=this.survey.getPageByName(t);if(n||(n=this.survey.getPanelByName(t)),!n){var o=this.survey.getQuestionByName(t);if(!o||!Array.isArray(o.panels))return!1;if(!(e.length>1)){for(var r=0;r<o.panels.length;r++)if(!ue(o.panels[r]))return!1;return!0}e[1]<o.panels.length&&(n=o.panels[e[1]])}return ue(n)})),ne.Instance.register("isDisplayMode",(function(){return this.survey&&this.survey.isDisplayMode})),ne.Instance.register("currentDate",(function(){return new Date})),ne.Instance.register("today",(function(e){var t=new Date;return Array.isArray(e)&&1==e.length&&t.setDate(t.getDate()+e[0]),t})),ne.Instance.register("getYear",(function(e){if(1===e.length&&e[0])return new Date(e[0]).getFullYear()})),ne.Instance.register("currentYear",(function(){return(new Date).getFullYear()})),ne.Instance.register("diffDays",(function(e){if(!Array.isArray(e)||2!==e.length)return 0;if(!e[0]||!e[1])return 0;var t=new Date(e[0]),n=new Date(e[1]),o=Math.abs(n-t);return Math.ceil(o/864e5)}));var ce=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),pe=function(){function e(){}return e.prototype.toString=function(e){return void 0===e&&(e=void 0),""},e.prototype.hasFunction=function(){return!1},e.prototype.hasAsyncFunction=function(){return!1},e.prototype.addToAsyncList=function(e){},e.prototype.isEqual=function(e){return!!e&&e.getType()===this.getType()&&this.isContentEqual(e)},e.prototype.areOperatorsEquals=function(e,t){return!e&&!t||!!e&&e.isEqual(t)},e}(),de=function(e){function t(t,n,o,r){void 0===n&&(n=null),void 0===o&&(o=null),void 0===r&&(r=!1);var i=e.call(this)||this;return i.operatorName=t,i.left=n,i.right=o,i.isArithmeticValue=r,i.consumer=r?ve.binaryFunctions.arithmeticOp(t):ve.binaryFunctions[t],null==i.consumer&&ve.throwInvalidOperatorError(t),i}return ce(t,e),t.prototype.getType=function(){return"binary"},Object.defineProperty(t.prototype,"isArithmetic",{get:function(){return this.isArithmeticValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isConjunction",{get:function(){return"or"==this.operatorName||"and"==this.operatorName},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"conjunction",{get:function(){return this.isConjunction?this.operatorName:""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"operator",{get:function(){return this.operatorName},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"leftOperand",{get:function(){return this.left},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rightOperand",{get:function(){return this.right},enumerable:!1,configurable:!0}),t.prototype.isContentEqual=function(e){var t=e;return t.operator===this.operator&&this.areOperatorsEquals(this.left,t.left)&&this.areOperatorsEquals(this.right,t.right)},t.prototype.evaluateParam=function(e,t){return null==e?null:e.evaluate(t)},t.prototype.evaluate=function(e){return this.consumer.call(this,this.evaluateParam(this.left,e),this.evaluateParam(this.right,e))},t.prototype.toString=function(e){if(void 0===e&&(e=void 0),e){var t=e(this);if(t)return t}return"("+ve.safeToString(this.left,e)+" "+ve.operatorToString(this.operatorName)+" "+ve.safeToString(this.right,e)+")"},t.prototype.setVariables=function(e){null!=this.left&&this.left.setVariables(e),null!=this.right&&this.right.setVariables(e)},t.prototype.hasFunction=function(){return!!this.left&&this.left.hasFunction()||!!this.right&&this.right.hasFunction()},t.prototype.hasAsyncFunction=function(){return!!this.left&&this.left.hasAsyncFunction()||!!this.right&&this.right.hasAsyncFunction()},t.prototype.addToAsyncList=function(e){this.left&&this.left.addToAsyncList(e),this.right&&this.right.addToAsyncList(e)},t}(pe),he=function(e){function t(t,n){var o=e.call(this)||this;return o.expressionValue=t,o.operatorName=n,o.consumer=ve.unaryFunctions[n],null==o.consumer&&ve.throwInvalidOperatorError(n),o}return ce(t,e),Object.defineProperty(t.prototype,"operator",{get:function(){return this.operatorName},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"expression",{get:function(){return this.expressionValue},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"unary"},t.prototype.toString=function(e){if(void 0===e&&(e=void 0),e){var t=e(this);if(t)return t}return ve.operatorToString(this.operatorName)+" "+this.expression.toString(e)},t.prototype.isContentEqual=function(e){var t=e;return t.operator==this.operator&&this.areOperatorsEquals(this.expression,t.expression)},t.prototype.evaluate=function(e){var t=this.expression.evaluate(e);return this.consumer.call(this,t)},t.prototype.setVariables=function(e){this.expression.setVariables(e)},t}(pe),fe=function(e){function t(t){var n=e.call(this)||this;return n.values=t,n}return ce(t,e),t.prototype.getType=function(){return"array"},t.prototype.toString=function(e){if(void 0===e&&(e=void 0),e){var t=e(this);if(t)return t}return"["+this.values.map((function(t){return t.toString(e)})).join(", ")+"]"},t.prototype.evaluate=function(e){return this.values.map((function(t){return t.evaluate(e)}))},t.prototype.setVariables=function(e){this.values.forEach((function(t){t.setVariables(e)}))},t.prototype.hasFunction=function(){return this.values.some((function(e){return e.hasFunction()}))},t.prototype.hasAsyncFunction=function(){return this.values.some((function(e){return e.hasAsyncFunction()}))},t.prototype.addToAsyncList=function(e){this.values.forEach((function(t){return t.addToAsyncList(e)}))},t.prototype.isContentEqual=function(e){var t=e;if(t.values.length!==this.values.length)return!1;for(var n=0;n<this.values.length;n++)if(!t.values[n].isEqual(this.values[n]))return!1;return!0},t}(pe),me=function(e){function t(t){var n=e.call(this)||this;return n.value=t,n}return ce(t,e),t.prototype.getType=function(){return"const"},t.prototype.toString=function(e){if(void 0===e&&(e=void 0),e){var t=e(this);if(t)return t}return this.value.toString()},Object.defineProperty(t.prototype,"correctValue",{get:function(){return this.getCorrectValue(this.value)},enumerable:!1,configurable:!0}),t.prototype.evaluate=function(){return this.getCorrectValue(this.value)},t.prototype.setVariables=function(e){},t.prototype.getCorrectValue=function(e){return e&&"string"==typeof e?this.isBooleanValue(e)?"true"===e.toLowerCase():e.length>1&&this.isQuote(e[0])&&this.isQuote(e[e.length-1])?e.substr(1,e.length-2):ve.isNumeric(e)?0==e.indexOf("0x")?parseInt(e):e.length>1&&"0"==e[0]?e:parseFloat(e):e:e},t.prototype.isContentEqual=function(e){return e.value==this.value},t.prototype.isQuote=function(e){return"'"==e||'"'==e},t.prototype.isBooleanValue=function(e){return e&&("true"===e.toLowerCase()||"false"===e.toLowerCase())},t}(pe),ge=function(e){function t(n){var o=e.call(this,n)||this;return o.variableName=n,o.valueInfo={},o.useValueAsItIs=!1,o.variableName&&o.variableName.length>1&&o.variableName[0]===t.DisableConversionChar&&(o.variableName=o.variableName.substr(1),o.useValueAsItIs=!0),o}return ce(t,e),t.prototype.getType=function(){return"variable"},t.prototype.toString=function(e){if(void 0===e&&(e=void 0),e){var n=e(this);if(n)return n}return"{"+(this.useValueAsItIs?t.DisableConversionChar:"")+this.variableName+"}"},Object.defineProperty(t.prototype,"variable",{get:function(){return this.variableName},enumerable:!1,configurable:!0}),t.prototype.evaluate=function(e){return this.valueInfo.name=this.variableName,e.getValueInfo(this.valueInfo),this.valueInfo.hasValue?this.getCorrectValue(this.valueInfo.value):null},t.prototype.setVariables=function(e){e.push(this.variableName)},t.prototype.getCorrectValue=function(t){return this.useValueAsItIs?t:e.prototype.getCorrectValue.call(this,t)},t.prototype.isContentEqual=function(e){return e.variable==this.variable},t.DisableConversionChar="#",t}(me),ye=function(e){function t(t,n){var o=e.call(this)||this;return o.originalValue=t,o.parameters=n,o.isReadyValue=!1,Array.isArray(n)&&0===n.length&&(o.parameters=new fe([])),o}return ce(t,e),t.prototype.getType=function(){return"function"},t.prototype.evaluateAsync=function(e){var t=this;this.isReadyValue=!1;var n=new te;n.values=s.createCopy(e.values),n.properties=s.createCopy(e.properties),n.properties.returnResult=function(e){t.asynResult=e,t.isReadyValue=!0,t.onAsyncReady()},this.evaluateCore(n)},t.prototype.evaluate=function(e){return this.isReady?this.asynResult:this.evaluateCore(e)},t.prototype.evaluateCore=function(e){return ne.Instance.run(this.originalValue,this.parameters.evaluate(e),e.properties)},t.prototype.toString=function(e){if(void 0===e&&(e=void 0),e){var t=e(this);if(t)return t}return this.originalValue+"("+this.parameters.toString(e)+")"},t.prototype.setVariables=function(e){this.parameters.setVariables(e)},Object.defineProperty(t.prototype,"isReady",{get:function(){return this.isReadyValue},enumerable:!1,configurable:!0}),t.prototype.hasFunction=function(){return!0},t.prototype.hasAsyncFunction=function(){return ne.Instance.isAsyncFunction(this.originalValue)},t.prototype.addToAsyncList=function(e){this.hasAsyncFunction()&&e.push(this)},t.prototype.isContentEqual=function(e){var t=e;return t.originalValue==this.originalValue&&this.areOperatorsEquals(t.parameters,this.parameters)},t}(pe),ve=function(){function e(){}return e.throwInvalidOperatorError=function(e){throw new Error("Invalid operator: '"+e+"'")},e.safeToString=function(e,t){return null==e?"":e.toString(t)},e.toOperandString=function(t){return!t||e.isNumeric(t)||e.isBooleanValue(t)||(t="'"+t+"'"),t},e.isSpaceString=function(e){return!!e&&!e.replace(" ","")},e.isNumeric=function(t){return(!t||!(t.indexOf("-")>-1||t.indexOf("+")>1||t.indexOf("*")>-1||t.indexOf("^")>-1||t.indexOf("/")>-1||t.indexOf("%")>-1))&&(!e.isSpaceString(t)&&s.isNumber(t))},e.isBooleanValue=function(e){return!!e&&("true"===e.toLowerCase()||"false"===e.toLowerCase())},e.countDecimals=function(e){if(Math.floor(e)!==e){var t=e.toString().split(".");return t.length>1&&t[1].length||0}return 0},e.plusMinus=function(t,n,o){var r=e.countDecimals(t),i=e.countDecimals(n);if(r>0||i>0){var a=Math.max(r,i);o=parseFloat(o.toFixed(a))}return o},e.isTwoValueEquals=function(e,t){return"undefined"===e&&(e=void 0),"undefined"===t&&(t=void 0),s.isTwoValueEquals(e,t,!0)},e.operatorToString=function(t){var n=e.signs[t];return null==n?t:n},e.unaryFunctions={empty:function(e){return s.isValueEmpty(e)},notempty:function(t){return!e.unaryFunctions.empty(t)},negate:function(e){return!e}},e.binaryFunctions={arithmeticOp:function(t){return function(n,o){s.isValueEmpty(n)&&!e.isSpaceString(n)&&(n="string"==typeof o?"":0),s.isValueEmpty(o)&&!e.isSpaceString(o)&&(o="string"==typeof n?"":0);var r=e.binaryFunctions[t];return null==r?null:r.call(this,n,o)}},and:function(e,t){return e&&t},or:function(e,t){return e||t},plus:function(t,n){return e.plusMinus(t,n,t+n)},minus:function(t,n){return e.plusMinus(t,n,t-n)},mul:function(t,n){var o=t*n,r=e.countDecimals(t)+e.countDecimals(n);return r>0&&(o=parseFloat(o.toFixed(r))),o},div:function(e,t){return t?e/t:null},mod:function(e,t){return t?e%t:null},power:function(e,t){return Math.pow(e,t)},greater:function(e,t){return null!=e&&null!=t&&e>t},less:function(e,t){return null!=e&&null!=t&&e<t},greaterorequal:function(t,n){return!!e.binaryFunctions.equal(t,n)||e.binaryFunctions.greater(t,n)},lessorequal:function(t,n){return!!e.binaryFunctions.equal(t,n)||e.binaryFunctions.less(t,n)},equal:function(t,n){return e.isTwoValueEquals(t,n)},notequal:function(t,n){return!e.binaryFunctions.equal(t,n)},contains:function(t,n){return e.binaryFunctions.containsCore(t,n,!0)},notcontains:function(t,n){return!t&&!s.isValueEmpty(n)||e.binaryFunctions.containsCore(t,n,!1)},anyof:function(t,n){if(s.isValueEmpty(t)&&s.isValueEmpty(n))return!0;if(s.isValueEmpty(t)||!Array.isArray(t)&&0===t.length)return!1;if(s.isValueEmpty(n))return!0;if(!Array.isArray(t))return e.binaryFunctions.contains(n,t);if(!Array.isArray(n))return e.binaryFunctions.contains(t,n);for(var o=0;o<n.length;o++)if(e.binaryFunctions.contains(t,n[o]))return!0;return!1},allof:function(t,n){if(!t&&!s.isValueEmpty(n))return!1;if(!Array.isArray(n))return e.binaryFunctions.contains(t,n);for(var o=0;o<n.length;o++)if(!e.binaryFunctions.contains(t,n[o]))return!1;return!0},containsCore:function(t,n,o){if(!t&&0!==t&&!1!==t)return!1;if(t.length||(t=t.toString(),("string"==typeof n||n instanceof String)&&(t=t.toUpperCase(),n=n.toUpperCase())),"string"==typeof t||t instanceof String){if(!n)return!1;n=n.toString();var r=t.indexOf(n)>-1;return o?r:!r}for(var i=Array.isArray(n)?n:[n],a=0;a<i.length;a++){var s=0;for(n=i[a];s<t.length&&!e.isTwoValueEquals(t[s],n);s++);if(s==t.length)return!o}return o}},e.signs={less:"<",lessorequal:"<=",greater:">",greaterorequal:">=",equal:"==",notequal:"!=",plus:"+",minus:"-",mul:"*",div:"/",and:"and",or:"or",power:"^",mod:"%",negate:"!"},e}(),be=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),xe=function(e){function t(n,o,r,i){var a=e.call(this)||this;return a.message=n,a.expected=o,a.found=r,a.location=i,a.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(a,t),a}return be(t,e),t.buildMessage=function(e,t){function n(e){return e.charCodeAt(0).toString(16).toUpperCase()}function o(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+n(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+n(e)}))}function r(e){return e.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+n(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+n(e)}))}function i(e){switch(e.type){case"literal":return'"'+o(e.text)+'"';case"class":var t=e.parts.map((function(e){return Array.isArray(e)?r(e[0])+"-"+r(e[1]):r(e)}));return"["+(e.inverted?"^":"")+t+"]";case"any":return"any character";case"end":return"end of input";case"other":return e.description}}return"Expected "+function(e){var t,n,o=e.map(i);if(o.sort(),o.length>0){for(t=1,n=1;t<o.length;t++)o[t-1]!==o[t]&&(o[n]=o[t],n++);o.length=n}switch(o.length){case 1:return o[0];case 2:return o[0]+" or "+o[1];default:return o.slice(0,-1).join(", ")+", or "+o[o.length-1]}}(e)+" but "+(((a=t)?'"'+o(a)+'"':"end of input")+" found.");var a},t}(Error);var Ce=function(e,t){t=void 0!==t?t:{};var n,o={},r={Expression:Ge},i=Ge,a=function(e,t){return vt(e,t,!0)},s=Be("||",!1),l=Be("or",!0),u=Be("&&",!1),c=Be("and",!0),p=function(e,t){return vt(e,t)},d=Be("<=",!1),h=Be("lessorequal",!0),f=Be(">=",!1),m=Be("greaterorequal",!0),g=Be("=",!1),y=Be("equal",!0),v=Be("!=",!1),b=Be("notequal",!0),x=Be("<",!1),C=Be("less",!0),w=Be(">",!1),P=Be("greater",!0),_=Be("+",!1),V=Be("-",!1),T=Be("*",!1),k=Be("/",!1),S=Be("%",!1),O=Be("^",!1),E=Be("power",!0),R=Be("*=",!1),I=Be("contains",!0),q=Be("contain",!0),D=Be("notcontains",!0),A=Be("notcontain",!0),j=Be("anyof",!0),L=Be("allof",!0),N=Be("(",!1),M=Be(")",!1),F=Be("!",!1),B=Be("negate",!0),z=Be("empty",!0),H=Be("notempty",!0),Q=Be("undefined",!1),$=Be("null",!1),U=Be("{",!1),W=Be("}",!1),G=Be("''",!1),J=Be('""',!1),K=Be("'",!1),X=function(e){return"'"+e+"'"},Z=Be('"',!1),Y=Be("[",!1),ee=Be("]",!1),te=Be(",",!1),ne=Be("true",!0),oe=Be("false",!0),re=Be("0x",!1),ie=/^[\-]/,ae=ze(["-"],!1,!1),se=Be(".",!1),le=Be("0",!1),ue=function(e){return e.join("")},ce=Be("\\'",!1),pe=Be('\\"',!1),ve=/^[^"']/,be=ze(['"',"'"],!0,!1),Ce=function(){return Fe()},we=/^[^{}]/,Pe=ze(["{","}"],!0,!1),_e=/^[0-9]/,Ve=ze([["0","9"]],!1,!1),Te=/^[1-9]/,ke=ze([["1","9"]],!1,!1),Se=/^[a-zA-Z]/,Oe=ze([["a","z"],["A","Z"]],!1,!1),Ee=He("whitespace"),Re=/^[ \t\n\r]/,Ie=ze([" ","\t","\n","\r"],!1,!1),qe=0,De=0,Ae=[{line:1,column:1}],je=0,Le=[],Ne=0,Me={};if(void 0!==t.startRule){if(!(t.startRule in r))throw new Error("Can't start parsing from rule \""+t.startRule+'".');i=r[t.startRule]}function Fe(){return e.substring(De,qe)}function Be(e,t){return{type:"literal",text:e,ignoreCase:t}}function ze(e,t,n){return{type:"class",parts:e,inverted:t,ignoreCase:n}}function He(e){return{type:"other",description:e}}function Qe(t){var n,o=Ae[t];if(o)return o;for(n=t-1;!Ae[n];)n--;for(o={line:(o=Ae[n]).line,column:o.column};n<t;)10===e.charCodeAt(n)?(o.line++,o.column=1):o.column++,n++;return Ae[t]=o,o}function $e(e,t){var n=Qe(e),o=Qe(t);return{start:{offset:e,line:n.line,column:n.column},end:{offset:t,line:o.line,column:o.column}}}function Ue(e){qe<je||(qe>je&&(je=qe,Le=[]),Le.push(e))}function We(e,t,n){return new xe(xe.buildMessage(e,t),e,t,n)}function Ge(){var e,t,n,r,i,s,l,u,c=34*qe+0,p=Me[c];if(p)return qe=p.nextPos,p.result;if(e=qe,yt()!==o)if((t=Ke())!==o){for(n=[],r=qe,(i=yt())!==o&&(s=Je())!==o&&(l=yt())!==o&&(u=Ke())!==o?r=i=[i,s,l,u]:(qe=r,r=o);r!==o;)n.push(r),r=qe,(i=yt())!==o&&(s=Je())!==o&&(l=yt())!==o&&(u=Ke())!==o?r=i=[i,s,l,u]:(qe=r,r=o);n!==o&&(r=yt())!==o?(De=e,e=a(t,n)):(qe=e,e=o)}else qe=e,e=o;else qe=e,e=o;return Me[c]={nextPos:qe,result:e},e}function Je(){var t,n,r=34*qe+1,i=Me[r];return i?(qe=i.nextPos,i.result):(t=qe,"||"===e.substr(qe,2)?(n="||",qe+=2):(n=o,0===Ne&&Ue(s)),n===o&&("or"===e.substr(qe,2).toLowerCase()?(n=e.substr(qe,2),qe+=2):(n=o,0===Ne&&Ue(l))),n!==o&&(De=t,n="or"),t=n,Me[r]={nextPos:qe,result:t},t)}function Ke(){var e,t,n,r,i,s,l,u,c=34*qe+2,p=Me[c];if(p)return qe=p.nextPos,p.result;if(e=qe,(t=Ze())!==o){for(n=[],r=qe,(i=yt())!==o&&(s=Xe())!==o&&(l=yt())!==o&&(u=Ze())!==o?r=i=[i,s,l,u]:(qe=r,r=o);r!==o;)n.push(r),r=qe,(i=yt())!==o&&(s=Xe())!==o&&(l=yt())!==o&&(u=Ze())!==o?r=i=[i,s,l,u]:(qe=r,r=o);n!==o?(De=e,e=t=a(t,n)):(qe=e,e=o)}else qe=e,e=o;return Me[c]={nextPos:qe,result:e},e}function Xe(){var t,n,r=34*qe+3,i=Me[r];return i?(qe=i.nextPos,i.result):(t=qe,"&&"===e.substr(qe,2)?(n="&&",qe+=2):(n=o,0===Ne&&Ue(u)),n===o&&("and"===e.substr(qe,3).toLowerCase()?(n=e.substr(qe,3),qe+=3):(n=o,0===Ne&&Ue(c))),n!==o&&(De=t,n="and"),t=n,Me[r]={nextPos:qe,result:t},t)}function Ze(){var e,t,n,r,i,a,s,l,u=34*qe+4,c=Me[u];if(c)return qe=c.nextPos,c.result;if(e=qe,(t=et())!==o){for(n=[],r=qe,(i=yt())!==o&&(a=Ye())!==o&&(s=yt())!==o&&(l=et())!==o?r=i=[i,a,s,l]:(qe=r,r=o);r!==o;)n.push(r),r=qe,(i=yt())!==o&&(a=Ye())!==o&&(s=yt())!==o&&(l=et())!==o?r=i=[i,a,s,l]:(qe=r,r=o);n!==o?(De=e,e=t=p(t,n)):(qe=e,e=o)}else qe=e,e=o;return Me[u]={nextPos:qe,result:e},e}function Ye(){var t,n,r=34*qe+5,i=Me[r];return i?(qe=i.nextPos,i.result):(t=qe,"<="===e.substr(qe,2)?(n="<=",qe+=2):(n=o,0===Ne&&Ue(d)),n===o&&("lessorequal"===e.substr(qe,11).toLowerCase()?(n=e.substr(qe,11),qe+=11):(n=o,0===Ne&&Ue(h))),n!==o&&(De=t,n="lessorequal"),(t=n)===o&&(t=qe,">="===e.substr(qe,2)?(n=">=",qe+=2):(n=o,0===Ne&&Ue(f)),n===o&&("greaterorequal"===e.substr(qe,14).toLowerCase()?(n=e.substr(qe,14),qe+=14):(n=o,0===Ne&&Ue(m))),n!==o&&(De=t,n="greaterorequal"),(t=n)===o&&(t=qe,61===e.charCodeAt(qe)?(n="=",qe++):(n=o,0===Ne&&Ue(g)),n===o&&("equal"===e.substr(qe,5).toLowerCase()?(n=e.substr(qe,5),qe+=5):(n=o,0===Ne&&Ue(y))),n!==o&&(De=t,n="equal"),(t=n)===o&&(t=qe,"!="===e.substr(qe,2)?(n="!=",qe+=2):(n=o,0===Ne&&Ue(v)),n===o&&("notequal"===e.substr(qe,8).toLowerCase()?(n=e.substr(qe,8),qe+=8):(n=o,0===Ne&&Ue(b))),n!==o&&(De=t,n="notequal"),(t=n)===o&&(t=qe,60===e.charCodeAt(qe)?(n="<",qe++):(n=o,0===Ne&&Ue(x)),n===o&&("less"===e.substr(qe,4).toLowerCase()?(n=e.substr(qe,4),qe+=4):(n=o,0===Ne&&Ue(C))),n!==o&&(De=t,n="less"),(t=n)===o&&(t=qe,62===e.charCodeAt(qe)?(n=">",qe++):(n=o,0===Ne&&Ue(w)),n===o&&("greater"===e.substr(qe,7).toLowerCase()?(n=e.substr(qe,7),qe+=7):(n=o,0===Ne&&Ue(P))),n!==o&&(De=t,n="greater"),t=n))))),Me[r]={nextPos:qe,result:t},t)}function et(){var e,t,n,r,i,s,l,u,c=34*qe+6,p=Me[c];if(p)return qe=p.nextPos,p.result;if(e=qe,(t=nt())!==o){for(n=[],r=qe,(i=yt())!==o&&(s=tt())!==o&&(l=yt())!==o&&(u=nt())!==o?r=i=[i,s,l,u]:(qe=r,r=o);r!==o;)n.push(r),r=qe,(i=yt())!==o&&(s=tt())!==o&&(l=yt())!==o&&(u=nt())!==o?r=i=[i,s,l,u]:(qe=r,r=o);n!==o?(De=e,e=t=a(t,n)):(qe=e,e=o)}else qe=e,e=o;return Me[c]={nextPos:qe,result:e},e}function tt(){var t,n,r=34*qe+7,i=Me[r];return i?(qe=i.nextPos,i.result):(t=qe,43===e.charCodeAt(qe)?(n="+",qe++):(n=o,0===Ne&&Ue(_)),n!==o&&(De=t,n="plus"),(t=n)===o&&(t=qe,45===e.charCodeAt(qe)?(n="-",qe++):(n=o,0===Ne&&Ue(V)),n!==o&&(De=t,n="minus"),t=n),Me[r]={nextPos:qe,result:t},t)}function nt(){var e,t,n,r,i,s,l,u,c=34*qe+8,p=Me[c];if(p)return qe=p.nextPos,p.result;if(e=qe,(t=rt())!==o){for(n=[],r=qe,(i=yt())!==o&&(s=ot())!==o&&(l=yt())!==o&&(u=rt())!==o?r=i=[i,s,l,u]:(qe=r,r=o);r!==o;)n.push(r),r=qe,(i=yt())!==o&&(s=ot())!==o&&(l=yt())!==o&&(u=rt())!==o?r=i=[i,s,l,u]:(qe=r,r=o);n!==o?(De=e,e=t=a(t,n)):(qe=e,e=o)}else qe=e,e=o;return Me[c]={nextPos:qe,result:e},e}function ot(){var t,n,r=34*qe+9,i=Me[r];return i?(qe=i.nextPos,i.result):(t=qe,42===e.charCodeAt(qe)?(n="*",qe++):(n=o,0===Ne&&Ue(T)),n!==o&&(De=t,n="mul"),(t=n)===o&&(t=qe,47===e.charCodeAt(qe)?(n="/",qe++):(n=o,0===Ne&&Ue(k)),n!==o&&(De=t,n="div"),(t=n)===o&&(t=qe,37===e.charCodeAt(qe)?(n="%",qe++):(n=o,0===Ne&&Ue(S)),n!==o&&(De=t,n="mod"),t=n)),Me[r]={nextPos:qe,result:t},t)}function rt(){var e,t,n,r,i,s,l,u,c=34*qe+10,p=Me[c];if(p)return qe=p.nextPos,p.result;if(e=qe,(t=at())!==o){for(n=[],r=qe,(i=yt())!==o&&(s=it())!==o&&(l=yt())!==o&&(u=at())!==o?r=i=[i,s,l,u]:(qe=r,r=o);r!==o;)n.push(r),r=qe,(i=yt())!==o&&(s=it())!==o&&(l=yt())!==o&&(u=at())!==o?r=i=[i,s,l,u]:(qe=r,r=o);n!==o?(De=e,e=t=a(t,n)):(qe=e,e=o)}else qe=e,e=o;return Me[c]={nextPos:qe,result:e},e}function it(){var t,n,r=34*qe+11,i=Me[r];return i?(qe=i.nextPos,i.result):(t=qe,94===e.charCodeAt(qe)?(n="^",qe++):(n=o,0===Ne&&Ue(O)),n===o&&("power"===e.substr(qe,5).toLowerCase()?(n=e.substr(qe,5),qe+=5):(n=o,0===Ne&&Ue(E))),n!==o&&(De=t,n="power"),t=n,Me[r]={nextPos:qe,result:t},t)}function at(){var e,t,n,r,i,a,s,l,u=34*qe+12,c=Me[u];if(c)return qe=c.nextPos,c.result;if(e=qe,(t=lt())!==o){for(n=[],r=qe,(i=yt())!==o&&(a=st())!==o&&(s=yt())!==o?((l=lt())===o&&(l=null),l!==o?r=i=[i,a,s,l]:(qe=r,r=o)):(qe=r,r=o);r!==o;)n.push(r),r=qe,(i=yt())!==o&&(a=st())!==o&&(s=yt())!==o?((l=lt())===o&&(l=null),l!==o?r=i=[i,a,s,l]:(qe=r,r=o)):(qe=r,r=o);n!==o?(De=e,e=t=p(t,n)):(qe=e,e=o)}else qe=e,e=o;return Me[u]={nextPos:qe,result:e},e}function st(){var t,n,r=34*qe+13,i=Me[r];return i?(qe=i.nextPos,i.result):(t=qe,"*="===e.substr(qe,2)?(n="*=",qe+=2):(n=o,0===Ne&&Ue(R)),n===o&&("contains"===e.substr(qe,8).toLowerCase()?(n=e.substr(qe,8),qe+=8):(n=o,0===Ne&&Ue(I)),n===o&&("contain"===e.substr(qe,7).toLowerCase()?(n=e.substr(qe,7),qe+=7):(n=o,0===Ne&&Ue(q)))),n!==o&&(De=t,n="contains"),(t=n)===o&&(t=qe,"notcontains"===e.substr(qe,11).toLowerCase()?(n=e.substr(qe,11),qe+=11):(n=o,0===Ne&&Ue(D)),n===o&&("notcontain"===e.substr(qe,10).toLowerCase()?(n=e.substr(qe,10),qe+=10):(n=o,0===Ne&&Ue(A))),n!==o&&(De=t,n="notcontains"),(t=n)===o&&(t=qe,"anyof"===e.substr(qe,5).toLowerCase()?(n=e.substr(qe,5),qe+=5):(n=o,0===Ne&&Ue(j)),n!==o&&(De=t,n="anyof"),(t=n)===o&&(t=qe,"allof"===e.substr(qe,5).toLowerCase()?(n=e.substr(qe,5),qe+=5):(n=o,0===Ne&&Ue(L)),n!==o&&(De=t,n="allof"),t=n))),Me[r]={nextPos:qe,result:t},t)}function lt(){var t,n,r,i,a=34*qe+14,s=Me[a];return s?(qe=s.nextPos,s.result):(t=qe,40===e.charCodeAt(qe)?(n="(",qe++):(n=o,0===Ne&&Ue(N)),n!==o&&yt()!==o&&(r=Ge())!==o&&yt()!==o?(41===e.charCodeAt(qe)?(i=")",qe++):(i=o,0===Ne&&Ue(M)),i===o&&(i=null),i!==o?(De=t,t=n=r):(qe=t,t=o)):(qe=t,t=o),t===o&&(t=function(){var t,n,r,i,a,s=34*qe+15,l=Me[s];if(l)return qe=l.nextPos,l.result;t=qe,(n=ft())!==o?(40===e.charCodeAt(qe)?(r="(",qe++):(r=o,0===Ne&&Ue(N)),r!==o&&(i=ct())!==o?(41===e.charCodeAt(qe)?(a=")",qe++):(a=o,0===Ne&&Ue(M)),a===o&&(a=null),a!==o?(De=t,n=new ye(n,i),t=n):(qe=t,t=o)):(qe=t,t=o)):(qe=t,t=o);return Me[s]={nextPos:qe,result:t},t}())===o&&(t=function(){var t,n,r,i=34*qe+16,a=Me[i];if(a)return qe=a.nextPos,a.result;t=qe,33===e.charCodeAt(qe)?(n="!",qe++):(n=o,0===Ne&&Ue(F));n===o&&("negate"===e.substr(qe,6).toLowerCase()?(n=e.substr(qe,6),qe+=6):(n=o,0===Ne&&Ue(B)));n!==o&&yt()!==o&&(r=Ge())!==o?(De=t,n=new he(r,"negate"),t=n):(qe=t,t=o);t===o&&(t=qe,(n=ut())!==o&&yt()!==o&&(r=function(){var t,n,r=34*qe+17,i=Me[r];if(i)return qe=i.nextPos,i.result;t=qe,"empty"===e.substr(qe,5).toLowerCase()?(n=e.substr(qe,5),qe+=5):(n=o,0===Ne&&Ue(z));n!==o&&(De=t,n="empty");(t=n)===o&&(t=qe,"notempty"===e.substr(qe,8).toLowerCase()?(n=e.substr(qe,8),qe+=8):(n=o,0===Ne&&Ue(H)),n!==o&&(De=t,n="notempty"),t=n);return Me[r]={nextPos:qe,result:t},t}())!==o?(De=t,n=function(e,t){return new he(e,t)}(n,r),t=n):(qe=t,t=o));return Me[i]={nextPos:qe,result:t},t}())===o&&(t=ut())===o&&(t=function(){var t,n,r,i,a=34*qe+20,s=Me[a];if(s)return qe=s.nextPos,s.result;t=qe,91===e.charCodeAt(qe)?(n="[",qe++):(n=o,0===Ne&&Ue(Y));n!==o&&(r=ct())!==o?(93===e.charCodeAt(qe)?(i="]",qe++):(i=o,0===Ne&&Ue(ee)),i!==o?(De=t,t=n=r):(qe=t,t=o)):(qe=t,t=o);return Me[a]={nextPos:qe,result:t},t}()),Me[a]={nextPos:qe,result:t},t)}function ut(){var t,n,r,i,a=34*qe+18,s=Me[a];return s?(qe=s.nextPos,s.result):(t=qe,yt()!==o?("undefined"===e.substr(qe,9)?(n="undefined",qe+=9):(n=o,0===Ne&&Ue(Q)),n===o&&("null"===e.substr(qe,4)?(n="null",qe+=4):(n=o,0===Ne&&Ue($))),n!==o?(De=t,t=null):(qe=t,t=o)):(qe=t,t=o),t===o&&(t=qe,yt()!==o&&(n=function(){var t,n,r,i,a=34*qe+19,s=Me[a];if(s)return qe=s.nextPos,s.result;t=qe,(n=function(){var t,n,r=34*qe+22,i=Me[r];if(i)return qe=i.nextPos,i.result;t=qe,"true"===e.substr(qe,4).toLowerCase()?(n=e.substr(qe,4),qe+=4):(n=o,0===Ne&&Ue(ne));n!==o&&(De=t,n=!0);(t=n)===o&&(t=qe,"false"===e.substr(qe,5).toLowerCase()?(n=e.substr(qe,5),qe+=5):(n=o,0===Ne&&Ue(oe)),n!==o&&(De=t,n=!1),t=n);return Me[r]={nextPos:qe,result:t},t}())!==o&&(De=t,n=n);(t=n)===o&&(t=qe,(n=function(){var t,n,r,i=34*qe+23,a=Me[i];if(a)return qe=a.nextPos,a.result;t=qe,"0x"===e.substr(qe,2)?(n="0x",qe+=2):(n=o,0===Ne&&Ue(re));n!==o&&(r=mt())!==o?(De=t,n=parseInt(Fe(),16),t=n):(qe=t,t=o);t===o&&(t=qe,ie.test(e.charAt(qe))?(n=e.charAt(qe),qe++):(n=o,0===Ne&&Ue(ae)),n===o&&(n=null),n!==o&&(r=function(){var t,n,r,i=34*qe+24,a=Me[i];if(a)return qe=a.nextPos,a.result;t=qe,(n=mt())!==o?(46===e.charCodeAt(qe)?(r=".",qe++):(r=o,0===Ne&&Ue(se)),r!==o&&mt()!==o?(De=t,n=parseFloat(Fe()),t=n):(qe=t,t=o)):(qe=t,t=o);t===o&&(t=qe,(n=function(){var t,n,r=34*qe+31,i=Me[r];if(i)return qe=i.nextPos,i.result;t=[],Te.test(e.charAt(qe))?(n=e.charAt(qe),qe++):(n=o,0===Ne&&Ue(ke));if(n!==o)for(;n!==o;)t.push(n),Te.test(e.charAt(qe))?(n=e.charAt(qe),qe++):(n=o,0===Ne&&Ue(ke));else t=o;return Me[r]={nextPos:qe,result:t},t}())!==o?((r=mt())===o&&(r=null),r!==o?(De=t,n=parseInt(Fe(),10),t=n):(qe=t,t=o)):(qe=t,t=o),t===o&&(t=qe,48===e.charCodeAt(qe)?(n="0",qe++):(n=o,0===Ne&&Ue(le)),n!==o&&(De=t,n=0),t=n));return Me[i]={nextPos:qe,result:t},t}())!==o?(De=t,s=r,t=n=null==n?s:-s):(qe=t,t=o));var s;return Me[i]={nextPos:qe,result:t},t}())!==o&&(De=t,n=n),(t=n)===o&&(t=qe,(n=ft())!==o&&(De=t,n=n),(t=n)===o&&(t=qe,"''"===e.substr(qe,2)?(n="''",qe+=2):(n=o,0===Ne&&Ue(G)),n!==o&&(De=t,n=""),(t=n)===o&&(t=qe,'""'===e.substr(qe,2)?(n='""',qe+=2):(n=o,0===Ne&&Ue(J)),n!==o&&(De=t,n=""),(t=n)===o&&(t=qe,39===e.charCodeAt(qe)?(n="'",qe++):(n=o,0===Ne&&Ue(K)),n!==o&&(r=pt())!==o?(39===e.charCodeAt(qe)?(i="'",qe++):(i=o,0===Ne&&Ue(K)),i!==o?(De=t,n=X(r),t=n):(qe=t,t=o)):(qe=t,t=o),t===o&&(t=qe,34===e.charCodeAt(qe)?(n='"',qe++):(n=o,0===Ne&&Ue(Z)),n!==o&&(r=pt())!==o?(34===e.charCodeAt(qe)?(i='"',qe++):(i=o,0===Ne&&Ue(Z)),i!==o?(De=t,n=X(r),t=n):(qe=t,t=o)):(qe=t,t=o)))))));return Me[a]={nextPos:qe,result:t},t}())!==o?(De=t,t=new me(n)):(qe=t,t=o),t===o&&(t=qe,yt()!==o?(123===e.charCodeAt(qe)?(n="{",qe++):(n=o,0===Ne&&Ue(U)),n!==o&&(r=function(){var e,t,n,r=34*qe+25,i=Me[r];if(i)return qe=i.nextPos,i.result;if(e=qe,t=[],(n=ht())!==o)for(;n!==o;)t.push(n),n=ht();else t=o;t!==o&&(De=e,t=ue(t));return e=t,Me[r]={nextPos:qe,result:e},e}())!==o?(125===e.charCodeAt(qe)?(i="}",qe++):(i=o,0===Ne&&Ue(W)),i!==o?(De=t,t=function(e){return new ge(e)}(r)):(qe=t,t=o)):(qe=t,t=o)):(qe=t,t=o))),Me[a]={nextPos:qe,result:t},t)}function ct(){var t,n,r,i,a,s,l,u,c=34*qe+21,p=Me[c];if(p)return qe=p.nextPos,p.result;if(t=qe,(n=Ge())===o&&(n=null),n!==o){for(r=[],i=qe,(a=yt())!==o?(44===e.charCodeAt(qe)?(s=",",qe++):(s=o,0===Ne&&Ue(te)),s!==o&&(l=yt())!==o&&(u=Ge())!==o?i=a=[a,s,l,u]:(qe=i,i=o)):(qe=i,i=o);i!==o;)r.push(i),i=qe,(a=yt())!==o?(44===e.charCodeAt(qe)?(s=",",qe++):(s=o,0===Ne&&Ue(te)),s!==o&&(l=yt())!==o&&(u=Ge())!==o?i=a=[a,s,l,u]:(qe=i,i=o)):(qe=i,i=o);r!==o?(De=t,t=n=function(e,t){if(null==e)return new fe([]);var n=[e];if(Array.isArray(t))for(var o=function(e){return[].concat.apply([],e)}(t),r=3;r<o.length;r+=4)n.push(o[r]);return new fe(n)}(n,r)):(qe=t,t=o)}else qe=t,t=o;return Me[c]={nextPos:qe,result:t},t}function pt(){var e,t,n,r=34*qe+26,i=Me[r];if(i)return qe=i.nextPos,i.result;if(e=qe,t=[],(n=dt())!==o)for(;n!==o;)t.push(n),n=dt();else t=o;return t!==o&&(De=e,t=ue(t)),e=t,Me[r]={nextPos:qe,result:e},e}function dt(){var t,n,r=34*qe+27,i=Me[r];return i?(qe=i.nextPos,i.result):(t=qe,"\\'"===e.substr(qe,2)?(n="\\'",qe+=2):(n=o,0===Ne&&Ue(ce)),n!==o&&(De=t,n="'"),(t=n)===o&&(t=qe,'\\"'===e.substr(qe,2)?(n='\\"',qe+=2):(n=o,0===Ne&&Ue(pe)),n!==o&&(De=t,n='"'),(t=n)===o&&(t=qe,ve.test(e.charAt(qe))?(n=e.charAt(qe),qe++):(n=o,0===Ne&&Ue(be)),n!==o&&(De=t,n=Ce()),t=n)),Me[r]={nextPos:qe,result:t},t)}function ht(){var t,n,r=34*qe+28,i=Me[r];return i?(qe=i.nextPos,i.result):(t=qe,we.test(e.charAt(qe))?(n=e.charAt(qe),qe++):(n=o,0===Ne&&Ue(Pe)),n!==o&&(De=t,n=Ce()),t=n,Me[r]={nextPos:qe,result:t},t)}function ft(){var e,t,n,r,i,a,s=34*qe+29,l=Me[s];if(l)return qe=l.nextPos,l.result;if(e=qe,gt()!==o){if(t=[],n=qe,(r=mt())!==o){for(i=[],a=gt();a!==o;)i.push(a),a=gt();i!==o?n=r=[r,i]:(qe=n,n=o)}else qe=n,n=o;for(;n!==o;)if(t.push(n),n=qe,(r=mt())!==o){for(i=[],a=gt();a!==o;)i.push(a),a=gt();i!==o?n=r=[r,i]:(qe=n,n=o)}else qe=n,n=o;t!==o?(De=e,e=Ce()):(qe=e,e=o)}else qe=e,e=o;return Me[s]={nextPos:qe,result:e},e}function mt(){var t,n,r=34*qe+30,i=Me[r];if(i)return qe=i.nextPos,i.result;if(t=[],_e.test(e.charAt(qe))?(n=e.charAt(qe),qe++):(n=o,0===Ne&&Ue(Ve)),n!==o)for(;n!==o;)t.push(n),_e.test(e.charAt(qe))?(n=e.charAt(qe),qe++):(n=o,0===Ne&&Ue(Ve));else t=o;return Me[r]={nextPos:qe,result:t},t}function gt(){var t,n,r=34*qe+32,i=Me[r];if(i)return qe=i.nextPos,i.result;if(t=[],Se.test(e.charAt(qe))?(n=e.charAt(qe),qe++):(n=o,0===Ne&&Ue(Oe)),n!==o)for(;n!==o;)t.push(n),Se.test(e.charAt(qe))?(n=e.charAt(qe),qe++):(n=o,0===Ne&&Ue(Oe));else t=o;return Me[r]={nextPos:qe,result:t},t}function yt(){var t,n,r=34*qe+33,i=Me[r];if(i)return qe=i.nextPos,i.result;for(Ne++,t=[],Re.test(e.charAt(qe))?(n=e.charAt(qe),qe++):(n=o,0===Ne&&Ue(Ie));n!==o;)t.push(n),Re.test(e.charAt(qe))?(n=e.charAt(qe),qe++):(n=o,0===Ne&&Ue(Ie));return Ne--,t===o&&(n=o,0===Ne&&Ue(Ee)),Me[r]={nextPos:qe,result:t},t}function vt(e,t,n){return void 0===n&&(n=!1),t.reduce((function(e,t){return new de(t[1],e,t[3],n)}),e)}if((n=i())!==o&&qe===e.length)return n;throw n!==o&&qe<e.length&&Ue({type:"end"}),We(Le,je<e.length?e.charAt(je):null,je<e.length?$e(je,je+1):$e(je,je))},we=function(e,t){this.at=e,this.code=t},Pe=function(){function e(){}return e.prototype.patchExpression=function(e){return e.replace(/=>/g,">=").replace(/=</g,"<=").replace(/<>/g,"!=").replace(/==/g,"= ").replace(/equals/g,"equal ").replace(/notequals/g,"notequal ")},e.prototype.createCondition=function(e){return this.parseExpression(e)},e.prototype.parseExpression=function(t){try{var n=e.parserCache[t];return void 0===n&&((n=Ce(this.patchExpression(t))).hasAsyncFunction()||(e.parserCache[t]=n)),n}catch(e){e instanceof xe&&(this.conditionError=new we(e.location.start.offset,e.message))}},Object.defineProperty(e.prototype,"error",{get:function(){return this.conditionError},enumerable:!1,configurable:!0}),e.parserCache={},e}(),_e=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ve=function(){function e(e){this.processValue=new te,this.parser=new Pe,this.isAsyncValue=!1,this.hasFunctionValue=!1,this.expression=e}return Object.defineProperty(e.prototype,"expression",{get:function(){return this.expressionValue},set:function(e){this.expression!==e&&(this.expressionValue=e,this.operand=this.parser.parseExpression(e),this.hasFunctionValue=!!this.canRun()&&this.operand.hasFunction(),this.isAsyncValue=!!this.hasFunction()&&this.operand.hasAsyncFunction())},enumerable:!1,configurable:!0}),e.prototype.getVariables=function(){if(!this.operand)return[];var e=[];return this.operand.setVariables(e),e},e.prototype.hasFunction=function(){return this.hasFunctionValue},Object.defineProperty(e.prototype,"isAsync",{get:function(){return this.isAsyncValue},enumerable:!1,configurable:!0}),e.prototype.canRun=function(){return!!this.operand},e.prototype.runCore=function(e,t){var n=this;if(void 0===t&&(t=null),!this.operand)return null;if(this.processValue.values=e,this.processValue.properties=t,!this.isAsync)return this.runValues();this.asyncFuncList=[],this.operand.addToAsyncList(this.asyncFuncList);for(var o=0;o<this.asyncFuncList.length;o++)this.asyncFuncList[o].onAsyncReady=function(){n.doAsyncFunctionReady()};for(o=0;o<this.asyncFuncList.length;o++)this.asyncFuncList[o].evaluateAsync(this.processValue);return!1},e.prototype.doAsyncFunctionReady=function(){for(var e=0;e<this.asyncFuncList.length;e++)if(!this.asyncFuncList[e].isReady)return;this.runValues()},e.prototype.runValues=function(){var e=this.operand.evaluate(this.processValue);return this.doOnComplete(e),e},e.prototype.doOnComplete=function(e){},e}(),Te=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return _e(t,e),t.prototype.run=function(e,t){return void 0===t&&(t=null),1==this.runCore(e,t)},t.prototype.doOnComplete=function(e){this.onRunComplete&&this.onRunComplete(1==e)},t}(Ve),ke=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return _e(t,e),t.prototype.run=function(e,t){return void 0===t&&(t=null),this.runCore(e,t)},t.prototype.doOnComplete=function(e){this.onRunComplete&&this.onRunComplete(e)},t}(Ve),Se=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Oe=function(e,t){void 0===t&&(t=null),this.value=e,this.error=t},Ee=function(e){function t(){var t=e.call(this)||this;return t.createLocalizableString("text",t,!0),t}return Se(t,e),t.prototype.getSurvey=function(e){return void 0===e&&(e=!1),this.errorOwner&&this.errorOwner.getSurvey?this.errorOwner.getSurvey():null},Object.defineProperty(t.prototype,"text",{get:function(){return this.getLocalizableStringText("text")},set:function(e){this.setLocalizableStringText("text",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isValidateAllValues",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locText",{get:function(){return this.getLocalizableString("text")},enumerable:!1,configurable:!0}),t.prototype.getErrorText=function(e){return this.text?this.text:this.getDefaultErrorText(e)},t.prototype.getDefaultErrorText=function(e){return""},t.prototype.validate=function(e,t,n,o){return void 0===t&&(t=null),void 0===n&&(n=null),void 0===o&&(o=null),null},Object.defineProperty(t.prototype,"isRunning",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAsync",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.getLocale=function(){return this.errorOwner?this.errorOwner.getLocale():""},t.prototype.getMarkdownHtml=function(e,t){return this.errorOwner?this.errorOwner.getMarkdownHtml(e,t):null},t.prototype.getRenderer=function(e){return this.errorOwner?this.errorOwner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.errorOwner?this.errorOwner.getRendererContext(e):e},t.prototype.getProcessedText=function(e){return this.errorOwner?this.errorOwner.getProcessedText(e):e},t.prototype.createCustomError=function(e){return new ee(this.getErrorText(e),this.errorOwner)},t.prototype.toString=function(){var e=this.getType().replace("validator","");return this.text&&(e+=", "+this.text),e},t}(L),Re=function(){function e(){}return e.prototype.run=function(e){var t=this,n=[],o=null,r=null;this.prepareAsyncValidators();for(var i=[],a=e.getValidators(),s=0;s<a.length;s++){var l=a[s];!o&&l.isValidateAllValues&&(o=e.getDataFilteredValues(),r=e.getDataFilteredProperties()),l.isAsync&&(this.asyncValidators.push(l),l.onAsyncCompleted=function(e){if(e&&e.error&&i.push(e.error),t.onAsyncCompleted){for(var n=0;n<t.asyncValidators.length;n++)if(t.asyncValidators[n].isRunning)return;t.onAsyncCompleted(i)}})}a=e.getValidators();for(s=0;s<a.length;s++){var u=(l=a[s]).validate(e.validatedValue,e.getValidatorTitle(),o,r);u&&u.error&&n.push(u.error)}return 0==this.asyncValidators.length&&this.onAsyncCompleted&&this.onAsyncCompleted([]),n},e.prototype.prepareAsyncValidators=function(){if(this.asyncValidators)for(var e=0;e<this.asyncValidators.length;e++)this.asyncValidators[e].onAsyncCompleted=null;this.asyncValidators=[]},e}(),Ie=function(e){function t(t,n){void 0===t&&(t=null),void 0===n&&(n=null);var o=e.call(this)||this;return o.minValue=t,o.maxValue=n,o}return Se(t,e),t.prototype.getType=function(){return"numericvalidator"},t.prototype.validate=function(e,t,n,o){if(void 0===t&&(t=null),void 0===n&&(n=null),void 0===o&&(o=null),this.isValueEmpty(e))return null;if(!s.isNumber(e))return new Oe(null,new $(null,this.errorOwner));var r=new Oe(parseFloat(e));return null!==this.minValue&&this.minValue>r.value||null!==this.maxValue&&this.maxValue<r.value?(r.error=this.createCustomError(t),r):"number"==typeof e?null:r},t.prototype.getDefaultErrorText=function(e){var t=e||u.getString("value");return null!==this.minValue&&null!==this.maxValue?u.getString("numericMinMax").format(t,this.minValue,this.maxValue):null!==this.minValue?u.getString("numericMin").format(t,this.minValue):u.getString("numericMax").format(t,this.maxValue)},Object.defineProperty(t.prototype,"minValue",{get:function(){return this.getPropertyValue("minValue")},set:function(e){this.setPropertyValue("minValue",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxValue",{get:function(){return this.getPropertyValue("maxValue")},set:function(e){this.setPropertyValue("maxValue",e)},enumerable:!1,configurable:!0}),t}(Ee),qe=function(e){function t(t,n,o){void 0===t&&(t=0),void 0===n&&(n=0),void 0===o&&(o=!0);var r=e.call(this)||this;return r.minLength=t,r.maxLength=n,r.allowDigits=o,r}return Se(t,e),t.prototype.getType=function(){return"textvalidator"},t.prototype.validate=function(e,t,n,o){if(void 0===t&&(t=null),void 0===n&&(n=null),void 0===o&&(o=null),this.isValueEmpty(e))return null;if(!this.allowDigits){if(!/^[A-Za-z\s]*$/.test(e))return new Oe(null,this.createCustomError(t))}return this.minLength>0&&e.length<this.minLength||this.maxLength>0&&e.length>this.maxLength?new Oe(null,this.createCustomError(t)):null},t.prototype.getDefaultErrorText=function(e){return this.minLength>0&&this.maxLength>0?u.getString("textMinMaxLength").format(this.minLength,this.maxLength):this.minLength>0?u.getString("textMinLength").format(this.minLength):u.getString("textMaxLength").format(this.maxLength)},Object.defineProperty(t.prototype,"minLength",{get:function(){return this.getPropertyValue("minLength")},set:function(e){this.setPropertyValue("minLength",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxLength",{get:function(){return this.getPropertyValue("maxLength")},set:function(e){this.setPropertyValue("maxLength",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowDigits",{get:function(){return this.getPropertyValue("allowDigits",!0)},set:function(e){this.setPropertyValue("allowDigits",e)},enumerable:!1,configurable:!0}),t}(Ee),De=function(e){function t(t,n){void 0===t&&(t=null),void 0===n&&(n=null);var o=e.call(this)||this;return o.minCount=t,o.maxCount=n,o}return Se(t,e),t.prototype.getType=function(){return"answercountvalidator"},t.prototype.validate=function(e,t,n,o){if(void 0===t&&(t=null),void 0===n&&(n=null),void 0===o&&(o=null),null==e||e.constructor!=Array)return null;var r=e.length;return 0==r?null:this.minCount&&r<this.minCount?new Oe(null,this.createCustomError(u.getString("minSelectError").format(this.minCount))):this.maxCount&&r>this.maxCount?new Oe(null,this.createCustomError(u.getString("maxSelectError").format(this.maxCount))):null},t.prototype.getDefaultErrorText=function(e){return e},Object.defineProperty(t.prototype,"minCount",{get:function(){return this.getPropertyValue("minCount")},set:function(e){this.setPropertyValue("minCount",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxCount",{get:function(){return this.getPropertyValue("maxCount")},set:function(e){this.setPropertyValue("maxCount",e)},enumerable:!1,configurable:!0}),t}(Ee),Ae=function(e){function t(t){void 0===t&&(t=null);var n=e.call(this)||this;return n.regex=t,n}return Se(t,e),t.prototype.getType=function(){return"regexvalidator"},t.prototype.validate=function(e,t,n,o){if(void 0===t&&(t=null),void 0===n&&(n=null),void 0===o&&(o=null),!this.regex||this.isValueEmpty(e))return null;var r=new RegExp(this.regex);if(Array.isArray(e))for(var i=0;i<e.length;i++){var a=this.hasError(r,e[i],t);if(a)return a}return this.hasError(r,e,t)},t.prototype.hasError=function(e,t,n){return e.test(t)?null:new Oe(t,this.createCustomError(n))},Object.defineProperty(t.prototype,"regex",{get:function(){return this.getPropertyValue("regex")},set:function(e){this.setPropertyValue("regex",e)},enumerable:!1,configurable:!0}),t}(Ee),je=function(e){function t(){var t=e.call(this)||this;return t.re=/^(([^<>()\[\]\.,;:\s@\"]+(\.[^<>()\[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()=[\]\.,;:\s@\"]+\.)+[^<>()=[\]\.,;:\s@\"]{2,})$/i,t}return Se(t,e),t.prototype.getType=function(){return"emailvalidator"},t.prototype.validate=function(e,t,n,o){return void 0===t&&(t=null),void 0===n&&(n=null),void 0===o&&(o=null),e?this.re.test(e)?null:new Oe(e,this.createCustomError(t)):null},t.prototype.getDefaultErrorText=function(e){return u.getString("invalidEmail")},t}(Ee),Le=function(e){function t(t){void 0===t&&(t=null);var n=e.call(this)||this;return n.conditionRunner=null,n.isRunningValue=!1,n.expression=t,n}return Se(t,e),t.prototype.getType=function(){return"expressionvalidator"},Object.defineProperty(t.prototype,"isValidateAllValues",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAsync",{get:function(){return!!this.ensureConditionRunner()&&this.conditionRunner.isAsync},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRunning",{get:function(){return this.isRunningValue},enumerable:!1,configurable:!0}),t.prototype.validate=function(e,t,n,o){var r=this;if(void 0===t&&(t=null),void 0===n&&(n=null),void 0===o&&(o=null),!this.ensureConditionRunner())return null;this.conditionRunner.onRunComplete=function(n){r.isRunningValue=!1,r.onAsyncCompleted&&r.onAsyncCompleted(r.generateError(n,e,t))},this.isRunningValue=!0;var i=this.conditionRunner.run(n,o);return this.conditionRunner.isAsync?null:(this.isRunningValue=!1,this.generateError(i,e,t))},t.prototype.generateError=function(e,t,n){return e?null:new Oe(t,this.createCustomError(n))},t.prototype.getDefaultErrorText=function(e){return u.getString("invalidExpression").format(this.expression)},t.prototype.ensureConditionRunner=function(){return this.conditionRunner?(this.conditionRunner.expression=this.expression,!0):!!this.expression&&(this.conditionRunner=new Te(this.expression),!0)},Object.defineProperty(t.prototype,"expression",{get:function(){return this.getPropertyValue("expression")},set:function(e){this.setPropertyValue("expression",e)},enumerable:!1,configurable:!0}),t}(Ee);R.addClass("surveyvalidator",[{name:"text",serializationProperty:"locText"}]),R.addClass("numericvalidator",["minValue:number","maxValue:number"],(function(){return new Ie}),"surveyvalidator"),R.addClass("textvalidator",["minLength:number","maxLength:number","allowDigits:boolean"],(function(){return new qe}),"surveyvalidator"),R.addClass("answercountvalidator",["minCount:number","maxCount:number"],(function(){return new De}),"surveyvalidator"),R.addClass("regexvalidator",["regex"],(function(){return new Ae}),"surveyvalidator"),R.addClass("emailvalidator",[],(function(){return new je}),"surveyvalidator"),R.addClass("expressionvalidator",["expression:condition"],(function(){return new Le}),"surveyvalidator");var Ne=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Me=function(e,t,n){if(n||2===arguments.length)for(var o,r=0,i=t.length;r<i;r++)!o&&r in t||(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))},Fe=function(e){function t(t,n,o){void 0===n&&(n=null),void 0===o&&(o="itemvalue");var r=e.call(this)||this;return r.typeName=o,r.ownerPropertyName="",r.isVisibleValue=!0,r.locTextValue=new d(null,!0),r.locTextValue.onStrChanged=function(e,t){t==r.value&&(t=void 0),r.propertyValueChanged("text",e,t)},r.locTextValue.onGetTextCallback=function(e){return e||(s.isValueEmpty(r.value)?null:r.value.toString())},n&&(r.locText.text=n),t&&"object"==typeof t?r.setData(t):r.value=t,"itemvalue"!=r.getType()&&C.createProperties(r),r.onCreating(),r}return Ne(t,e),Object.defineProperty(t,"Separator",{get:function(){return a.itemValueSeparator},set:function(e){a.itemValueSeparator=e},enumerable:!1,configurable:!0}),t.createArray=function(e){var n=[];return t.setupArray(n,e),n},t.setupArray=function(e,t){e.push=function(e){var n=Array.prototype.push.call(this,e);return e.locOwner=t,n},e.unshift=function(e){var n=Array.prototype.unshift.call(this,e);return e.locOwner=t,n},e.splice=function(e,n){for(var o,r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];var a=(o=Array.prototype.splice).call.apply(o,Me([this,e,n],r,!1));r||(r=[]);for(var s=0;s<r.length;s++)r[s].locOwner=t;return a}},t.setData=function(e,n){e.length=0;for(var o=0;o<n.length;o++){var r,i=n[o];(r="function"==typeof i.getType?R.createClass(i.getType()):new t(null)).setData(i),i.originalItem&&(r.originalItem=i.originalItem),e.push(r)}},t.getData=function(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n].getData());return t},t.getItemByValue=function(e,t){if(!Array.isArray(e))return null;for(var n=s.isValueEmpty(t),o=0;o<e.length;o++){if(n&&s.isValueEmpty(e[o].value))return e[o];if(s.isTwoValueEquals(e[o].value,t,!1,!0,!1))return e[o]}return null},t.getTextOrHtmlByValue=function(e,n){var o=t.getItemByValue(e,n);return null!==o?o.locText.textOrHtml:""},t.locStrsChanged=function(e){for(var t=0;t<e.length;t++)e[t].locStrsChanged()},t.runConditionsForItems=function(e,n,o,r,i,a){return void 0===a&&(a=!0),t.runConditionsForItemsCore(e,n,o,r,i,!0,a)},t.runEnabledConditionsForItems=function(e,n,o,r,i){return t.runConditionsForItemsCore(e,null,n,o,r,!1,!0,i)},t.runConditionsForItemsCore=function(e,t,n,o,r,i,a,s){void 0===a&&(a=!0),o||(o={});for(var l=o.item,u=o.choice,c=!1,p=0;p<e.length;p++){var d=e[p];o.item=d.value,o.choice=d.value;var h=!(!a||!d.getConditionRunner)&&d.getConditionRunner(i);h||(h=n);var f=!0;h&&(f=h.run(o,r)),f&&s&&(f=s(d)),t&&f&&t.push(d),f!=(i?d.isVisible:d.isEnabled)&&(c=!0,i?d.setIsVisible&&d.setIsVisible(f):d.setIsEnabled&&d.setIsEnabled(f))}return l?o.item=l:delete o.item,u?o.choice=u:delete o.choice,c},t.prototype.onCreating=function(){},t.prototype.getType=function(){return this.typeName?this.typeName:"itemvalue"},t.prototype.getSurvey=function(e){return void 0===e&&(e=!1),this.locOwner&&this.locOwner.getSurvey?this.locOwner.getSurvey():null},t.prototype.getLocale=function(){return this.locText&&this.locText.locale||""},Object.defineProperty(t.prototype,"locText",{get:function(){return this.locTextValue},enumerable:!1,configurable:!0}),t.prototype.setLocText=function(e){this.locTextValue=e},Object.defineProperty(t.prototype,"locOwner",{get:function(){return this.locText.owner},set:function(e){this.locText.owner=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.getPropertyValue("value")},set:function(e){var t=void 0;if(!s.isValueEmpty(e)){var n=e.toString(),o=n.indexOf(a.itemValueSeparator);o>-1&&(e=n.slice(0,o),t=n.slice(o+1))}this.setPropertyValue("value",e),t&&(this.text=t)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasText",{get:function(){return!!this.locText.pureText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pureText",{get:function(){return this.locText.pureText},set:function(e){this.text=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"text",{get:function(){return this.locText.calculatedText},set:function(e){this.locText.text=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"calculatedText",{get:function(){return this.locText.calculatedText},enumerable:!1,configurable:!0}),t.prototype.getData=function(){var e=this.toJSON();return e.value&&e.value.pos&&delete e.value.pos,1!=Object.keys(e).length||s.isValueEmpty(e.value)?e:this.value},t.prototype.toJSON=function(){var e={},t=R.getProperties(this.getType());t&&0!=t.length||(t=R.getProperties("itemvalue"));for(var n=new E,o=0;o<t.length;o++)n.valueToJson(this,e,t[o]);return e},t.prototype.setData=function(e){if(!s.isValueEmpty(e)){if(void 0!==e.value){var t=e;"function"==typeof e.toJSON&&(t=e.toJSON()),(new E).toObject(t,this)}else this.value=e;this.locText.strChanged()}},Object.defineProperty(t.prototype,"visibleIf",{get:function(){return this.getPropertyValue("visibleIf","")},set:function(e){this.setPropertyValue("visibleIf",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"enableIf",{get:function(){return this.getPropertyValue("enableIf","")},set:function(e){this.setPropertyValue("enableIf",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return this.isVisibleValue},enumerable:!1,configurable:!0}),t.prototype.setIsVisible=function(e){this.isVisibleValue=e},Object.defineProperty(t.prototype,"isEnabled",{get:function(){return this.getPropertyValue("isEnabled",!0)},enumerable:!1,configurable:!0}),t.prototype.setIsEnabled=function(e){this.setPropertyValue("isEnabled",e)},t.prototype.addUsedLocales=function(e){this.AddLocStringToUsedLocales(this.locTextValue,e)},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.locText.strChanged()},t.prototype.onPropertyValueChanged=function(e,t,n){"value"!==e||this.hasText||this.locText.onChanged();this.locOwner&&this.locOwner.itemValuePropertyChanged&&this.locOwner.itemValuePropertyChanged(this,e,t,n)},t.prototype.getConditionRunner=function(e){return e?this.getVisibleConditionRunner():this.getEnableConditionRunner()},t.prototype.getVisibleConditionRunner=function(){return this.visibleIf?(this.visibleConditionRunner||(this.visibleConditionRunner=new Te(this.visibleIf)),this.visibleConditionRunner.expression=this.visibleIf,this.visibleConditionRunner):null},t.prototype.getEnableConditionRunner=function(){return this.enableIf?(this.enableConditionRunner||(this.enableConditionRunner=new Te(this.enableIf)),this.enableConditionRunner.expression=this.enableIf,this.enableConditionRunner):null},t}(L);L.createItemValue=function(e,t){var n=null;return(n=t?E.metaData.createClass(t,{}):"function"==typeof e.getType?new Fe(null,void 0,e.getType()):new Fe(null)).setData(e),n},L.itemValueLocStrChanged=function(e){Fe.locStrsChanged(e)},x.getItemValuesDefaultValue=function(e){var t=new Array;return Fe.setData(t,e||[]),t},R.addClass("itemvalue",["!value",{name:"text",serializationProperty:"locText"},{name:"visibleIf:condition",showMode:"form"},{name:"enableIf:condition",showMode:"form",visibleIf:function(e){return!e||"rateValues"!==e.ownerPropertyName}}],(function(e){return new Fe(e)}));var Be=function(){function e(){this.renderersHash={}}return e.prototype.unregisterRenderer=function(e,t){delete this.renderersHash[e][t]},e.prototype.registerRenderer=function(e,t,n){this.renderersHash[e]||(this.renderersHash[e]={}),this.renderersHash[e][t]=n},e.prototype.getRenderer=function(e,t){return this.renderersHash[e]&&this.renderersHash[e][t]||"default"},e.prototype.getRendererByQuestion=function(e){return this.getRenderer(e.getType(),e.renderAs)},e.prototype.clear=function(){this.renderersHash={}},e.Instance=new e,e}(),ze=function(){function e(){this.classes=[]}return e.prototype.isEmpty=function(){return""===this.toString()},e.prototype.append=function(e,t){return void 0===t&&(t=!0),e&&t&&this.classes.push(e),this},e.prototype.toString=function(){return this.classes.join(" ")},e}(),He=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Qe=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},$e=function(e){function t(t){var n=e.call(this)||this;if(n.iconSize=24,t)for(var o in t)n[o]=t[o];return n}return He(t,e),t.prototype.raiseUpdate=function(){this.updateCallback&&this.updateCallback()},Object.defineProperty(t.prototype,"disabled",{get:function(){return void 0!==this.enabled&&!this.enabled},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitle",{get:function(){return("small"!=this.mode&&(this.showTitle||void 0===this.showTitle)||!this.iconName)&&!!this.title},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return this.visible&&"popup"!==this.mode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canShrink",{get:function(){return!!this.iconName},enumerable:!1,configurable:!0}),t.prototype.getActionRootCss=function(){return(new ze).append("sv-action").append(this.css).append("sv-action--hidden",!this.isVisible).toString()},t.prototype.getActionBarItemCss=function(){return(new ze).append("sv-action-bar-item__title").append("sv-action-bar-item__title--with-icon",!!this.iconName).toString()},t.prototype.getActionBarItemActiveCss=function(){return(new ze).append("sv-action-bar-item").append("sv-action-bar-item--active",!!this.active).append(this.innerCss).toString()},Qe([y()],t.prototype,"id",void 0),Qe([y()],t.prototype,"iconName",void 0),Qe([y()],t.prototype,"iconSize",void 0),Qe([y({defaultValue:!0,onSet:function(e,t){t.raiseUpdate()}})],t.prototype,"visible",void 0),Qe([y()],t.prototype,"title",void 0),Qe([y()],t.prototype,"tooltip",void 0),Qe([y()],t.prototype,"enabled",void 0),Qe([y()],t.prototype,"showTitle",void 0),Qe([y()],t.prototype,"action",void 0),Qe([y()],t.prototype,"css",void 0),Qe([y()],t.prototype,"innerCss",void 0),Qe([y()],t.prototype,"data",void 0),Qe([y()],t.prototype,"popupModel",void 0),Qe([y()],t.prototype,"needSeparator",void 0),Qe([y()],t.prototype,"active",void 0),Qe([y()],t.prototype,"template",void 0),Qe([y()],t.prototype,"component",void 0),Qe([y()],t.prototype,"items",void 0),Qe([y()],t.prototype,"visibleIndex",void 0),Qe([y({defaultValue:"large"})],t.prototype,"mode",void 0),Qe([y()],t.prototype,"disableTabStop",void 0),t}(L),Ue=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),We=function(){function e(e,t,n,o){var r=this;void 0===o&&(o=48),this.container=e,this.model=t,this.itemsSelector=n,this.dotsItemSize=o,this.resizeObserver=void 0,this.isInitialized=!1,this.minDimensionConst=56,this.separatorSize=17,this.getComputedStyle=window.getComputedStyle.bind(window),this.model.updateCallback=function(e){e?r.isInitialized=!1:r.process()},"undefined"!=typeof ResizeObserver&&(this.resizeObserver=new ResizeObserver((function(e){return r.process()})),this.resizeObserver.observe(this.container.parentElement))}return e.prototype.getDimensions=function(e){return{scroll:e.scrollWidth,offset:e.offsetWidth}},e.prototype.getAvailableSpace=function(){var e=this.getComputedStyle(this.container),t=this.container.offsetWidth;return"border-box"===e.boxSizing&&(t-=parseFloat(e.paddingLeft)+parseFloat(e.paddingRight)),t},e.prototype.calcItemSize=function(e){return e.offsetWidth},e.prototype.calcItemsSizes=function(){var e=this,t=this.model.actions;this.container.querySelectorAll(this.itemsSelector).forEach((function(n,o){var r=t[o];r.maxDimension=e.calcItemSize(n),r.minDimension=r.canShrink?e.minDimensionConst+(r.needSeparator?e.separatorSize:0):r.maxDimension}))},Object.defineProperty(e.prototype,"isContainerVisible",{get:function(){return!!(this.container.offsetWidth||this.container.offsetHeight||this.container.getClientRects().length)},enumerable:!1,configurable:!0}),e.prototype.process=function(){this.isContainerVisible&&(this.isInitialized||(this.model.actions.forEach((function(e){return e.mode="large"})),this.calcItemsSizes(),this.isInitialized=!0),this.model.fit(this.getAvailableSpace(),this.dotsItemSize))},e.prototype.dispose=function(){this.model.updateCallback=void 0,this.resizeObserver&&this.resizeObserver.disconnect()},e}(),Ge=function(e){function t(t,n,o,r){var i=e.call(this,t,n,o,r)||this;return i.minDimensionConst=40,i}return Ue(t,e),t.prototype.getDimensions=function(){return{scroll:this.container.scrollHeight,offset:this.container.offsetHeight}},t.prototype.getAvailableSpace=function(){var e=this.getComputedStyle(this.container),t=this.container.offsetHeight;return"border-box"===e.boxSizing&&(t-=parseFloat(e.paddingTop)+parseFloat(e.paddingBottom)),t},t.prototype.calcItemSize=function(e){return e.offsetHeight},t}(We),Je=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ke=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Xe=function(e,t,n){if(n||2===arguments.length)for(var o,r=0,i=t.length;r<i;r++)!o&&r in t||(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))},Ze=function(e){function t(n,o,r,i){var a=e.call(this)||this;return a.onItemSelect=o,a.allowSelection=r,a.selectItem=function(e){a.isExpanded=!1,a.allowSelection&&(a.selectedItem=e),a.onItemSelect&&a.onItemSelect(e)},a.isItemDisabled=function(e){return void 0!==e.enabled&&!e.enabled},a.isItemSelected=function(e){return a.allowSelection&&a.selectedItem==e},a.getItemClass=function(e){return(new ze).append("sv-list__item").append("sv-list__item--disabled",a.isItemDisabled(e)).append("sv-list__item--selected",a.isItemSelected(e)).toString()},a.getItemIndent=function(e){return((e.level||0)+1)*t.INDENT+"px"},a.createNewArray("items"),a.items=n,a.selectedItem=i,a}return Je(t,e),Object.defineProperty(t.prototype,"items",{get:function(){return this.getPropertyValue("items")},set:function(e){var t;(t=this.items).splice.apply(t,Xe([0,this.items.length],e||[],!1))},enumerable:!1,configurable:!0}),t.prototype.onKeyDown=function(e){var t=e.target;"ArrowDown"===e.key||40===e.keyCode?(t.nextElementSibling?t.nextElementSibling.focus():t.parentElement.firstElementChild&&t.parentElement.firstElementChild.focus(),e.preventDefault()):"ArrowUp"!==e.key&&38!==e.keyCode||(t.previousElementSibling?t.previousElementSibling.focus():t.parentElement.lastElementChild&&t.parentElement.lastElementChild.focus(),e.preventDefault())},t.INDENT=16,Ke([y({defaultValue:!1})],t.prototype,"isExpanded",void 0),Ke([y()],t.prototype,"selectedItem",void 0),t}(L),Ye=function(){function e(){}return e.calculatePosition=function(e,t,n,o,r,i){if("center"==r)var a=(e.left+e.right-n)/2;else a="left"==r?e.left-n:e.right;if("middle"==o)var s=(e.top+e.bottom-t)/2;else s="top"==o?e.top-t:e.bottom;return i&&"center"!=r&&"middle"!=o&&("top"==o?s+=e.height:s-=e.height),{left:Math.round(a),top:Math.round(s)}},e.updateVerticalDimensions=function(e,t,n){var o;if(e<0)o={height:t+e,top:0};else if(t+e>n){o={height:Math.min(t,n-e),top:e}}return o},e.updateVerticalPosition=function(e,t,n,o,r){var i=t-(e.top+(o?e.height:0)),a=t+e.bottom-(o?e.height:0)-r;return i>0&&a<=0&&"top"==n?n="bottom":a>0&&i<=0&&"bottom"==n?n="top":a>0&&i>0&&(n=i<a?"top":"bottom"),n},e.calculatePopupDirection=function(e,t){var n;return"center"==t&&"middle"!=e?n=e:"center"!=t&&(n=t),n},e.calculatePointerTarget=function(e,t,n,o,r){var i={};return"center"!=r?(i.top=e.top+e.height/2,i.left=e[r]):"middle"!=o&&(i.top=e[o],i.left=e.left+e.width/2),i.left=Math.round(i.left-n),i.top=Math.round(i.top-t),i},e}(),et=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),tt=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},nt=function(e){function t(t,n,o,r,i,a,s,l,u,c,p,d){void 0===o&&(o="bottom"),void 0===r&&(r="left"),void 0===i&&(i=!0),void 0===a&&(a=!1),void 0===s&&(s=function(){}),void 0===l&&(l=function(){return!0}),void 0===u&&(u=function(){}),void 0===c&&(c=function(){}),void 0===p&&(p=""),void 0===d&&(d="");var h=e.call(this)||this;return h.contentComponentName=t,h.contentComponentData=n,h.verticalPosition=o,h.horizontalPosition=r,h.showPointer=i,h.isModal=a,h.onCancel=s,h.onApply=l,h.onHide=u,h.onShow=c,h.cssClass=p,h.title=d,h}return et(t,e),Object.defineProperty(t.prototype,"isVisible",{get:function(){return this.getPropertyValue("isVisible",!1)},set:function(e){this.isVisible!==e&&(this.setPropertyValue("isVisible",e),this.onVisibilityChanged&&this.onVisibilityChanged(e),this.isVisible?this.onShow():this.onHide())},enumerable:!1,configurable:!0}),t.prototype.toggleVisibility=function(){this.isVisible=!this.isVisible},tt([y()],t.prototype,"contentComponentName",void 0),tt([y()],t.prototype,"contentComponentData",void 0),tt([y({defaultValue:"bottom"})],t.prototype,"verticalPosition",void 0),tt([y({defaultValue:"left"})],t.prototype,"horizontalPosition",void 0),tt([y({defaultValue:!1})],t.prototype,"showPointer",void 0),tt([y({defaultValue:!1})],t.prototype,"isModal",void 0),tt([y({defaultValue:function(){}})],t.prototype,"onCancel",void 0),tt([y({defaultValue:function(){return!0}})],t.prototype,"onApply",void 0),tt([y({defaultValue:function(){}})],t.prototype,"onHide",void 0),tt([y({defaultValue:function(){}})],t.prototype,"onShow",void 0),tt([y({defaultValue:""})],t.prototype,"cssClass",void 0),tt([y({defaultValue:""})],t.prototype,"title",void 0),t}(L);function ot(e,t,n,o,r,i,a,s){void 0===r&&(r=function(){}),void 0===i&&(i=function(){});var l=new nt(e,t,"top","left",!1,!0,o,n,r,i,a,s),u=new it(l,void 0);return u.initializePopupContainer(),u}var rt='input:not(:disabled):not([readonly]):not([type=hidden]),select:not(:disabled):not([readonly]),textarea:not(:disabled):not([readonly]), button:not(:disabled):not([readonly]), [tabindex]:not([tabindex^="-"])',it=function(e){function t(t,n){var o=e.call(this)||this;return o.targetElement=n,o.scrollEventCallBack=function(){return o.hidePopup()},o.model=t,o}return et(t,e),t.prototype.hidePopup=function(){this.model.isVisible=!1},Object.defineProperty(t.prototype,"model",{get:function(){return this._model},set:function(e){var t=this;this.model&&this.model.unRegisterFunctionOnPropertiesValueChanged(["isVisible"],"PopupBaseViewModel"),this._model=e;var n=function(){e.isVisible||t.updateOnHiding(),t.isVisible=e.isVisible};e.registerFunctionOnPropertyValueChanged("isVisible",n,"PopupBaseViewModel"),n()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.model.title},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"contentComponentName",{get:function(){return this.model.contentComponentName},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"contentComponentData",{get:function(){return this.model.contentComponentData},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showPointer",{get:function(){return this.model.showPointer},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isModal",{get:function(){return this.model.isModal},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"styleClass",{get:function(){return(new ze).append(this.model.cssClass).append("sv-popup--modal",this.isModal).append("sv-popup--show-pointer",!this.isModal&&this.showPointer).append("sv-popup--"+this.popupDirection,!this.isModal&&this.showPointer).toString()},enumerable:!1,configurable:!0}),t.prototype.onKeyDown=function(e){"Tab"===e.key||9===e.keyCode?this.trapFocus(e):"Escape"!==e.key&&27!==e.keyCode||(this.isModal&&this.model.onCancel(),this.hidePopup())},t.prototype.trapFocus=function(e){var t=this.container.querySelectorAll(rt),n=t[0],o=t[t.length-1];e.shiftKey?document.activeElement===n&&(o.focus(),e.preventDefault()):document.activeElement===o&&(n.focus(),e.preventDefault())},t.prototype.updateOnShowing=function(){this.prevActiveElement=document.activeElement,this.isModal||this.updatePosition(),this.focusFirstInput(),this.isModal||window.addEventListener("scroll",this.scrollEventCallBack)},t.prototype.updateOnHiding=function(){this.prevActiveElement&&this.prevActiveElement.focus(),this.isModal||window.removeEventListener("scroll",this.scrollEventCallBack)},t.prototype.updatePosition=function(){var e=this.targetElement.getBoundingClientRect(),t=this.container.children[0],n=t.children[0],o=t.children[0].querySelector(".sv-popup__scrolling-content"),r=n.offsetHeight-o.offsetHeight+o.scrollHeight,i=n.offsetWidth;this.height="auto";var a=this.model.verticalPosition;window&&(r=Math.min(r,.9*window.innerHeight),a=Ye.updateVerticalPosition(e,r,this.model.verticalPosition,this.model.showPointer,window.innerHeight)),this.popupDirection=Ye.calculatePopupDirection(a,this.model.horizontalPosition);var s=Ye.calculatePosition(e,r,i,a,this.model.horizontalPosition,this.showPointer);if(window){var l=Ye.updateVerticalDimensions(s.top,r,window.innerHeight);l&&(this.height=l.height+"px",s.top=l.top)}this.left=s.left+"px",this.top=s.top+"px",this.showPointer&&(this.pointerTarget=Ye.calculatePointerTarget(e,s.top,s.left,a,this.model.horizontalPosition)),this.pointerTarget.top+="px",this.pointerTarget.left+="px"},t.prototype.focusFirstInput=function(){var e=this;setTimeout((function(){var t=e.container.querySelector(rt);t?t.focus():e.container.children[0].focus()}),100)},t.prototype.clickOutside=function(){this.isModal||this.hidePopup()},t.prototype.cancel=function(){this.model.onCancel(),this.hidePopup()},t.prototype.apply=function(){this.model.onApply&&!this.model.onApply()||this.hidePopup()},Object.defineProperty(t.prototype,"cancelButtonText",{get:function(){return u.getString("modalCancelButtonText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"applyButtonText",{get:function(){return u.getString("modalApplyButtonText")},enumerable:!1,configurable:!0}),t.prototype.dispose=function(){e.prototype.dispose.call(this),this.model.onVisibilityChanged=void 0},t.prototype.createPopupContainer=function(){var e=document.createElement("div");this.container=e},t.prototype.mountPopupContainer=function(){document.body.appendChild(this.container)},t.prototype.initializePopupContainer=function(){this.createPopupContainer(),this.mountPopupContainer()},t.prototype.destroyPopupContainer=function(){this.container.remove(),this.container=void 0},tt([y({defaultValue:"0px"})],t.prototype,"top",void 0),tt([y({defaultValue:"0px"})],t.prototype,"left",void 0),tt([y({defaultValue:"auto"})],t.prototype,"height",void 0),tt([y({defaultValue:!1})],t.prototype,"isVisible",void 0),tt([y({defaultValue:"left"})],t.prototype,"popupDirection",void 0),tt([y({defaultValue:{left:"0px",top:"0px"}})],t.prototype,"pointerTarget",void 0),t}(L),at=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),st=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},lt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return at(t,e),t.prototype.getRenderedActions=function(){return this.actions},t.prototype.raiseUpdate=function(e){this.updateCallback&&this.updateCallback(e)},t.prototype.onSet=function(){this.raiseUpdate(!0)},t.prototype.onPush=function(e){this.raiseUpdate(!0)},t.prototype.onRemove=function(e){this.raiseUpdate(!0)},Object.defineProperty(t.prototype,"hasActions",{get:function(){return(this.actions||[]).length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedActions",{get:function(){return this.getRenderedActions()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visibleActions",{get:function(){return this.actions.filter((function(e){return!1!==e.visible}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"css",{get:function(){return"sv-action-bar"+(this.containerCss?" "+this.containerCss:"")},enumerable:!1,configurable:!0}),t.prototype.sortItems=function(e){return[].concat(e.filter((function(e){return e.visibleIndex>=0||void 0===e.visibleIndex}))).sort((function(e,t){return e.visibleIndex-t.visibleIndex}))},t.prototype.setItems=function(e,t){void 0===t&&(t=!0);var n=e.map((function(e){return e instanceof $e?e:new $e(e)}));this.actions=t?this.sortItems(n):n},t.prototype.initResponsivityManager=function(e){},t.prototype.resetResponsivityManager=function(){},st([b({onSet:function(e,t){t.onSet()},onPush:function(e,t,n){n.onPush(e)},onRemove:function(e,t,n){n.onRemove(e)}})],t.prototype,"actions",void 0),t}(L),ut=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ct=function(e){function t(){var t=e.call(this)||this;return t.invisibleItemsListModel=new Ze([],(function(e){t.invisibleItemSelected(e),t.dotsItemPopupModel.toggleVisibility()}),!1),t.dotsItemPopupModel=new nt("sv-list",{model:t.invisibleItemsListModel}),t.dotsItem=new $e({id:"dotsItem-id",component:"sv-action-bar-item-dropdown",css:"sv-dots",innerCss:"sv-dots__item",iconName:"icon-dots",visible:!1,action:function(e){t.dotsItemPopupModel.toggleVisibility()},popupModel:t.dotsItemPopupModel}),t}return ut(t,e),t.prototype.invisibleItemSelected=function(e){e&&"function"==typeof e.action&&e.action()},t.prototype.hideItemsGreaterN=function(e){var t=[];this.visibleActions.forEach((function(n){e<=0&&(n.mode="popup",t.push(n)),e--})),this.invisibleItemsListModel.items=t},t.prototype.getVisibleItemsCount=function(e){for(var t=this.visibleActions.map((function(e){return e.minDimension})),n=0,o=0;o<t.length;o++)if((n+=t[o])>e)return o;return o},t.prototype.updateItemMode=function(e,t){for(var n=this.visibleActions,o=n.length-1;o>=0;o--)t>e?(t-=n[o].maxDimension-n[o].minDimension,n[o].mode="small"):n[o].mode="large"},t.prototype.onSet=function(){var t=this;this.actions.forEach((function(e){return e.updateCallback=function(){return t.raiseUpdate(!1)}})),e.prototype.onSet.call(this)},t.prototype.onPush=function(t){var n=this;t.updateCallback=function(){return n.raiseUpdate(!1)},e.prototype.onPush.call(this,t)},t.prototype.getRenderedActions=function(){return this.actions.concat([this.dotsItem])},t.prototype.fit=function(e,t){if(!(e<=0)){this.dotsItem.visible=!1;var n=0,o=0,r=this.visibleActions;r.forEach((function(e){n+=e.minDimension,o+=e.maxDimension})),e>=o?r.forEach((function(e){return e.mode="large"})):e<n?(r.forEach((function(e){return e.mode="small"})),this.hideItemsGreaterN(this.getVisibleItemsCount(e-t)),this.dotsItem.visible=!0):this.updateItemMode(e,o)}},t.prototype.initResponsivityManager=function(e){this.responsivityManager=new We(e,this,".sv-action:not(.sv-dots)>.sv-action__content")},t.prototype.resetResponsivityManager=function(){this.responsivityManager&&(this.responsivityManager.dispose(),this.responsivityManager=void 0)},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.resetResponsivityManager()},t}(lt),pt=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),dt=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ht=function(e){function t(){var t=e.call(this)||this;return t.createLocTitleProperty(),t.createLocalizableString("description",t,!0),t}return pt(t,e),t.prototype.createLocTitleProperty=function(){return this.createLocalizableString("title",this,!0)},Object.defineProperty(t.prototype,"title",{get:function(){return this.getLocalizableStringText("title",this.getDefaultTitleValue())},set:function(e){this.setLocalizableStringText("title",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTitle",{get:function(){return this.getLocalizableString("title")},enumerable:!1,configurable:!0}),t.prototype.getDefaultTitleValue=function(){},Object.defineProperty(t.prototype,"description",{get:function(){return this.getLocalizableStringText("description")},set:function(e){this.setLocalizableStringText("description",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locDescription",{get:function(){return this.getLocalizableString("description")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleTagName",{get:function(){var e=this.getDefaultTitleTagName(),t=this.getSurvey();return t?t.getElementTitleTagName(this,e):e},enumerable:!1,configurable:!0}),t.prototype.getDefaultTitleTagName=function(){return a.titleTags[this.getType()]},Object.defineProperty(t.prototype,"hasTitle",{get:function(){return this.title.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleActions",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleEvents",{get:function(){return this.hasTitleActions},enumerable:!1,configurable:!0}),t.prototype.getTitleToolbar=function(){return null},t.prototype.getTitleOwner=function(){},Object.defineProperty(t.prototype,"isTitleOwner",{get:function(){return!!this.getTitleOwner()},enumerable:!1,configurable:!0}),t.prototype.toggleState=function(){},Object.defineProperty(t.prototype,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssTitle",{get:function(){return""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaTitleId",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleTabIndex",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleAriaExpanded",{get:function(){},enumerable:!1,configurable:!0}),t}(L),ft=function(e){function t(n){var o=e.call(this)||this;return o.selectedElementInDesignValue=o,o.disableDesignActions=t.CreateDisabledDesignElements,o.isContentElement=!1,o.isEditableTemplateElement=!1,o.isInteractiveDesignElement=!0,o.name=n,o.createNewArray("errors"),o.createNewArray("titleActions"),o.registerFunctionOnPropertyValueChanged("isReadOnly",(function(){o.onReadOnlyChanged()})),o.registerFunctionOnPropertyValueChanged("errors",(function(){o.updateVisibleErrors()})),o}return pt(t,e),t.getProgressInfoByElements=function(e,t){for(var n=L.createProgressInfo(),o=0;o<e.length;o++)if(e[o].isVisible){var r=e[o].getProgressInfo();n.questionCount+=r.questionCount,n.answeredQuestionCount+=r.answeredQuestionCount,n.requiredQuestionCount+=r.requiredQuestionCount,n.requiredAnsweredQuestionCount+=r.requiredAnsweredQuestionCount}return t&&n.questionCount>0&&(0==n.requiredQuestionCount&&(n.requiredQuestionCount=1),n.answeredQuestionCount>0&&(n.requiredAnsweredQuestionCount=1)),n},t.ScrollElementToTop=function(e){if(!e||"undefined"==typeof document)return!1;var t=document.getElementById(e);if(!t||!t.scrollIntoView)return!1;var n=t.getBoundingClientRect().top;return n<0&&t.scrollIntoView(),n<0},t.GetFirstNonTextElement=function(e,t){if(void 0===t&&(t=!1),!e||!e.length||0==e.length)return null;if(t){var n=e[0];"#text"===n.nodeName&&(n.data=""),"#text"===(n=e[e.length-1]).nodeName&&(n.data="")}for(var o=0;o<e.length;o++)if("#text"!=e[o].nodeName&&"#comment"!=e[o].nodeName)return e[o];return null},t.FocusElement=function(e){if(!e||"undefined"==typeof document)return!1;var n=t.focusElementCore(e);return n||setTimeout((function(){t.focusElementCore(e)}),10),n},t.focusElementCore=function(e){var t=document.getElementById(e);return!!t&&(t.focus(),!0)},t.prototype.onPropertyValueChanged=function(t,n,o){e.prototype.onPropertyValueChanged.call(this,t,n,o),"state"===t&&("default"===n||"default"===o?this.updateTitleActions():this.updateExpandAction(),this.stateChangedCallback&&this.stateChangedCallback())},t.prototype.getSkeletonComponentNameCore=function(){return this.survey?this.survey.getSkeletonComponentName(this):""},Object.defineProperty(t.prototype,"skeletonComponentName",{get:function(){return this.getSkeletonComponentNameCore()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"state",{get:function(){return this.getPropertyValue("state")},set:function(e){this.setPropertyValue("state",e),this.notifyStateChanged()},enumerable:!1,configurable:!0}),t.prototype.notifyStateChanged=function(){this.survey&&this.survey.elementContentVisibilityChanged(this)},Object.defineProperty(t.prototype,"isCollapsed",{get:function(){if(!this.isDesignMode)return"collapsed"===this.state},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isExpanded",{get:function(){return"expanded"===this.state},enumerable:!1,configurable:!0}),t.prototype.collapse=function(){this.isDesignMode||(this.state="collapsed")},t.prototype.expand=function(){this.state="expanded"},t.prototype.toggleState=function(){return this.isCollapsed?(this.expand(),!0):!this.isExpanded||(this.collapse(),!1)},Object.defineProperty(t.prototype,"hasStateButton",{get:function(){return this.isExpanded||this.isCollapsed},enumerable:!1,configurable:!0}),t.prototype.getTitleToolbar=function(){return this.titleToolbarValue||(this.titleToolbarValue=new ct,this.titleToolbarValue.setItems(this.getTitleActions())),this.titleToolbarValue},t.prototype.updateExpandAction=function(){this.expandAction&&(this.expandAction.visible=this.isExpanded||this.isCollapsed,this.expandAction.innerCss=(new ze).append("sv-expand-action").append("sv-expand-action--expanded",this.isExpanded).toString())},Object.defineProperty(t.prototype,"titleActions",{get:function(){return this.getPropertyValue("titleActions")},enumerable:!1,configurable:!0}),t.prototype.getTitleActions=function(){return this.isTitleActionRequested||(this.updateTitleActions(),this.isTitleActionRequested=!0),this.titleActions},t.prototype.updateTitleActions=function(){var e=this,t=[];this.hasStateButton&&!this.expandAction&&(this.expandAction=new $e({id:"expand-collapse-action",title:"",disableTabStop:!0,action:function(){e.toggleState()}})),this.expandAction&&t.push(this.expandAction),this.survey&&(t=this.survey.getUpdatedElementTitleActions(this,t)),this.updateExpandAction(),this.setPropertyValue("titleActions",t)},Object.defineProperty(t.prototype,"hasTitleActions",{get:function(){return this.getTitleActions().length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleEvents",{get:function(){return this.hasTitleActions||"default"!==this.state},enumerable:!1,configurable:!0}),t.prototype.getTitleComponentName=function(){var e=Be.Instance.getRenderer("element","title-actions");return"default"==e?"sv-default-title":e},Object.defineProperty(t.prototype,"titleTabIndex",{get:function(){return this.isPage||"default"===this.state?void 0:0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleAriaExpanded",{get:function(){if(!this.isPage&&"default"!==this.state)return"expanded"===this.state},enumerable:!1,configurable:!0}),t.prototype.setSurveyImpl=function(e){this.surveyImplValue=e,this.surveyImplValue?(this.surveyDataValue=this.surveyImplValue.getSurveyData(),this.setSurveyCore(this.surveyImplValue.getSurvey()),this.textProcessorValue=this.surveyImplValue.getTextProcessor(),this.onSetData()):this.setSurveyCore(null)},Object.defineProperty(t.prototype,"surveyImpl",{get:function(){return this.surveyImplValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"data",{get:function(){return this.surveyDataValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"survey",{get:function(){return this.getSurvey()},enumerable:!1,configurable:!0}),t.prototype.getSurvey=function(e){return void 0===e&&(e=!1),this.surveyValue||this.surveyImplValue&&this.setSurveyCore(this.surveyImplValue.getSurvey()),this.surveyValue},t.prototype.setSurveyCore=function(e){this.surveyValue=e,this.surveyChangedCallback&&this.surveyChangedCallback()},Object.defineProperty(t.prototype,"isDesignMode",{get:function(){return!!this.survey&&this.survey.isDesignMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isInternal",{get:function(){return this.isContentElement},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"areInvisibleElementsShowing",{get:function(){return!!this.survey&&this.survey.areInvisibleElementsShowing&&!this.isContentElement},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isReadOnly",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"readOnly",{get:function(){return this.getPropertyValue("readOnly",!1)},set:function(e){this.readOnly!=e&&(this.setPropertyValue("readOnly",e),this.isLoadingFromJson||this.setPropertyValue("isReadOnly",this.isReadOnly))},enumerable:!1,configurable:!0}),t.prototype.onReadOnlyChanged=function(){this.readOnlyChangedCallback&&this.readOnlyChangedCallback()},Object.defineProperty(t.prototype,"css",{get:function(){return this.survey?this.survey.getCss():{}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.survey?(this.cssClassesValue||(this.cssClassesValue=this.calcCssClasses(this.css),this.updateElementCssCore(this.cssClassesValue)),this.cssClassesValue):this.calcCssClasses(this.css)},enumerable:!1,configurable:!0}),t.prototype.calcCssClasses=function(e){},t.prototype.updateElementCssCore=function(e){},Object.defineProperty(t.prototype,"cssError",{get:function(){return""},enumerable:!1,configurable:!0}),t.prototype.updateElementCss=function(e){this.cssClassesValue=void 0},t.prototype.getIsLoadingFromJson=function(){return!!e.prototype.getIsLoadingFromJson.call(this)||!!this.survey&&this.survey.isLoadingFromJson},Object.defineProperty(t.prototype,"name",{get:function(){return this.getPropertyValue("name","")},set:function(e){var t=this.name;this.setPropertyValue("name",this.getValidName(e)),!this.isLoadingFromJson&&t&&this.onNameChanged(t)},enumerable:!1,configurable:!0}),t.prototype.getValidName=function(e){return e},t.prototype.onNameChanged=function(e){},t.prototype.updateBindingValue=function(e,t){this.data&&!this.isTwoValueEquals(t,this.data.getValue(e))&&this.data.setValue(e,t,!1)},Object.defineProperty(t.prototype,"errors",{get:function(){return this.getPropertyValue("errors")},set:function(e){this.setPropertyValue("errors",e)},enumerable:!1,configurable:!0}),t.prototype.updateVisibleErrors=function(){for(var e=0,t=0;t<this.errors.length;t++)this.errors[t].visible&&e++;this.hasVisibleErrors=e>0},Object.defineProperty(t.prototype,"containsErrors",{get:function(){return this.getPropertyValue("containsErrors",!1)},enumerable:!1,configurable:!0}),t.prototype.updateContainsErrors=function(){this.setPropertyValue("containsErrors",this.getContainsErrors())},t.prototype.getContainsErrors=function(){return this.errors.length>0},t.prototype.getElementsInDesign=function(e){return void 0===e&&(e=!1),[]},Object.defineProperty(t.prototype,"selectedElementInDesign",{get:function(){return this.selectedElementInDesignValue},set:function(e){this.selectedElementInDesignValue=e},enumerable:!1,configurable:!0}),t.prototype.updateCustomWidgets=function(){},t.prototype.onSurveyLoad=function(){},t.prototype.onFirstRendering=function(){},t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),this.survey||this.onSurveyLoad()},t.prototype.setVisibleIndex=function(e){return 0},Object.defineProperty(t.prototype,"isPage",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPanel",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isQuestion",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.delete=function(){},t.prototype.getLocale=function(){return this.survey?this.survey.getLocale():this.locOwner?this.locOwner.getLocale():""},t.prototype.getMarkdownHtml=function(e,t){return this.survey?this.survey.getSurveyMarkdownHtml(this,e,t):this.locOwner?this.locOwner.getMarkdownHtml(e,t):null},t.prototype.getRenderer=function(e){return this.survey&&"function"==typeof this.survey.getRendererForString?this.survey.getRendererForString(this,e):this.locOwner&&"function"==typeof this.locOwner.getRenderer?this.locOwner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.survey&&"function"==typeof this.survey.getRendererContextForString?this.survey.getRendererContextForString(this,e):this.locOwner&&"function"==typeof this.locOwner.getRendererContext?this.locOwner.getRendererContext(e):e},t.prototype.getProcessedText=function(e){return this.isLoadingFromJson?e:this.textProcessor?this.textProcessor.processText(e,this.getUseDisplayValuesInTitle()):this.locOwner?this.locOwner.getProcessedText(e):e},t.prototype.getUseDisplayValuesInTitle=function(){return!0},t.prototype.removeSelfFromList=function(e){if(e&&Array.isArray(e)){var t=e.indexOf(this);t>-1&&e.splice(t,1)}},Object.defineProperty(t.prototype,"textProcessor",{get:function(){return this.textProcessorValue},enumerable:!1,configurable:!0}),t.prototype.getProcessedHtml=function(e){return e&&this.textProcessor?this.textProcessor.processText(e,!0):e},t.prototype.onSetData=function(){},Object.defineProperty(t.prototype,"parent",{get:function(){return this.getPropertyValue("parent",null)},set:function(e){this.setPropertyValue("parent",e)},enumerable:!1,configurable:!0}),t.prototype.getPage=function(e){for(;e&&e.parent;)e=e.parent;return e&&"page"==e.getType()?e:null},t.prototype.moveToBase=function(e,t,n){if(void 0===n&&(n=null),!t)return!1;e.removeElement(this);var o=-1;return s.isNumber(n)&&(o=parseInt(n)),-1==o&&n&&n.getType&&(o=t.indexOf(n)),t.addElement(this,o),!0},t.prototype.setPage=function(e,t){var n=this.getPage(e);"string"==typeof t&&this.getSurvey().pages.forEach((function(e){t===e.name&&(t=e)}));n!==t&&(e&&e.removeElement(this),t&&t.addElement(this,-1))},t.prototype.getSearchableLocKeys=function(e){e.push("title"),e.push("description")},t.CreateDisabledDesignElements=!1,dt([y({defaultValue:!1})],t.prototype,"isDragOverMe",void 0),dt([y()],t.prototype,"cssClassesValue",void 0),dt([y({defaultValue:!1})],t.prototype,"hasVisibleErrors",void 0),t}(ht),mt=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),gt=function(e){function t(t,n){void 0===t&&(t=null),void 0===n&&(n=null);var o=e.call(this)||this;return o.expressionIsRunning=!1,o.isCalculated=!1,t&&(o.name=t),n&&(o.expression=n),o}return mt(t,e),t.prototype.setOwner=function(e){this.data=e,this.rerunExpression()},t.prototype.getType=function(){return"calculatedvalue"},t.prototype.getSurvey=function(e){return void 0===e&&(e=!1),this.data&&this.data.getSurvey?this.data.getSurvey():null},Object.defineProperty(t.prototype,"owner",{get:function(){return this.data},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.getPropertyValue("name","")},set:function(e){this.setPropertyValue("name",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"includeIntoResult",{get:function(){return this.getPropertyValue("includeIntoResult",!1)},set:function(e){this.setPropertyValue("includeIntoResult",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"expression",{get:function(){return this.getPropertyValue("expression","")},set:function(e){this.setPropertyValue("expression",e),this.rerunExpression()},enumerable:!1,configurable:!0}),t.prototype.locCalculation=function(){this.expressionIsRunning=!0},t.prototype.unlocCalculation=function(){this.expressionIsRunning=!1},t.prototype.resetCalculation=function(){this.isCalculated=!1},t.prototype.doCalculation=function(e,t,n){this.isCalculated||(this.runExpressionCore(e,t,n),this.isCalculated=!0)},t.prototype.runExpression=function(e,t){this.runExpressionCore(null,e,t)},Object.defineProperty(t.prototype,"value",{get:function(){if(this.data)return this.data.getVariable(this.name)},enumerable:!1,configurable:!0}),t.prototype.setValue=function(e){this.data&&this.data.setVariable(this.name,e)},Object.defineProperty(t.prototype,"canRunExpression",{get:function(){return!(!this.data||this.isLoadingFromJson||!this.expression||this.expressionIsRunning||!this.name)},enumerable:!1,configurable:!0}),t.prototype.rerunExpression=function(){this.canRunExpression&&this.runExpression(this.data.getFilteredValues(),this.data.getFilteredProperties())},t.prototype.runExpressionCore=function(e,t,n){this.canRunExpression&&(this.ensureExpression(t),this.locCalculation(),e&&this.runDependentExpressions(e,t,n),this.expressionRunner.run(t,n))},t.prototype.runDependentExpressions=function(e,t,n){var o=this.expressionRunner.getVariables();if(o)for(var r=0;r<e.length;r++){var i=e[r];i===this||o.indexOf(i.name)<0||(i.doCalculation(e,t,n),t[i.name]=i.value)}},t.prototype.ensureExpression=function(e){var t=this;this.expressionRunner||(this.expressionRunner=new ke(this.expression),this.expressionRunner.onRunComplete=function(e){s.isTwoValueEquals(e,t.value)||t.setValue(e),t.unlocCalculation()})},t}(L);R.addClass("calculatedvalue",[{name:"!name",isUnique:!0},"expression:expression","includeIntoResult:boolean"],(function(){return new gt}),"base");var yt=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),vt=function(e){function t(t){void 0===t&&(t=null);var n=e.call(this)||this;return n.createLocalizableString("html",n),n.expression=t,n}return yt(t,e),t.prototype.getType=function(){return"expressionitem"},t.prototype.runCondition=function(e,t){return!!this.expression&&new Te(this.expression).run(e,t)},Object.defineProperty(t.prototype,"expression",{get:function(){return this.getPropertyValue("expression","")},set:function(e){this.setPropertyValue("expression",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locHtml",{get:function(){return this.getLocalizableString("html")},enumerable:!1,configurable:!0}),t.prototype.getLocale=function(){return this.locOwner?this.locOwner.getLocale():""},t.prototype.getMarkdownHtml=function(e,t){return this.locOwner?this.locOwner.getMarkdownHtml(e,t):null},t.prototype.getRenderer=function(e){return this.locOwner?this.locOwner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.locOwner?this.locOwner.getRendererContext(e):e},t.prototype.getProcessedText=function(e){return this.locOwner?this.locOwner.getProcessedText(e):e},t}(L),bt=function(e){function t(t,n){void 0===t&&(t=null),void 0===n&&(n=null);var o=e.call(this,t)||this;return o.createLocalizableString("html",o),o.html=n,o}return yt(t,e),t.prototype.getType=function(){return"htmlconditionitem"},Object.defineProperty(t.prototype,"html",{get:function(){return this.getLocalizableStringText("html")},set:function(e){this.setLocalizableStringText("html",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locHtml",{get:function(){return this.getLocalizableString("html")},enumerable:!1,configurable:!0}),t}(vt),xt=function(e){function t(t,n){void 0===t&&(t=null),void 0===n&&(n=null);var o=e.call(this,t)||this;return o.createLocalizableString("url",o),o.url=n,o}return yt(t,e),t.prototype.getType=function(){return"urlconditionitem"},Object.defineProperty(t.prototype,"url",{get:function(){return this.getLocalizableStringText("url")},set:function(e){this.setLocalizableStringText("url",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locUrl",{get:function(){return this.getLocalizableString("url")},enumerable:!1,configurable:!0}),t}(vt);R.addClass("expressionitem",["expression:condition"],(function(){return new vt}),"base"),R.addClass("htmlconditionitem",[{name:"html:html",serializationProperty:"locHtml"}],(function(){return new bt}),"expressionitem"),R.addClass("urlconditionitem",[{name:"url:string",serializationProperty:"locUrl"}],(function(){return new xt}),"expressionitem");var Ct=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),wt=function(){function e(){this.parser=new DOMParser}return e.prototype.assignValue=function(e,t,n){Array.isArray(e[t])?e[t].push(n):void 0!==e[t]?e[t]=[e[t]].concat(n):"object"==typeof n&&1===Object.keys(n).length&&Object.keys(n)[0]===t?e[t]=n[t]:e[t]=n},e.prototype.xml2Json=function(e,t){if(e.children&&e.children.length>0)for(var n=0;n<e.children.length;n++){var o=e.children[n],r={};this.xml2Json(o,r),this.assignValue(t,o.nodeName,r)}else this.assignValue(t,e.nodeName,e.textContent)},e.prototype.parseXmlString=function(e){var t=this.parser.parseFromString(e,"text/xml"),n={};return this.xml2Json(t,n),n},e}(),Pt=function(e){function t(){var t=e.call(this)||this;return t.lastObjHash="",t.isRunningValue=!1,t.processedUrl="",t.processedPath="",t.isUsingCacheFromUrl=void 0,t.error=null,t.createItemValue=function(e){return new Fe(e)},t}return Ct(t,e),Object.defineProperty(t,"EncodeParameters",{get:function(){return a.webserviceEncodeParameters},set:function(e){a.webserviceEncodeParameters=e},enumerable:!1,configurable:!0}),t.clearCache=function(){t.itemsResult={},t.sendingSameRequests={}},t.addSameRequest=function(e){if(!e.isUsingCache)return!1;var n=e.objHash,o=t.sendingSameRequests[n];return o?(o.push(e),e.isRunningValue=!0,!0):(t.sendingSameRequests[e.objHash]=[],!1)},t.unregisterSameRequests=function(e,n){if(e.isUsingCache){var o=t.sendingSameRequests[e.objHash];if(delete t.sendingSameRequests[e.objHash],o)for(var r=0;r<o.length;r++)o[r].isRunningValue=!1,o[r].getResultCallback&&o[r].getResultCallback(n)}},t.getCachedItemsResult=function(e){var n=e.objHash,o=t.itemsResult[n];return!!o&&(e.getResultCallback&&e.getResultCallback(o),!0)},t.prototype.getSurvey=function(e){return void 0===e&&(e=!1),this.owner?this.owner.survey:null},t.prototype.run=function(e){if(void 0===e&&(e=null),this.url&&this.getResultCallback){if(this.processedText(e),!this.processedUrl)return this.doEmptyResultCallback({}),void(this.lastObjHash=this.objHash);this.lastObjHash!==this.objHash&&(this.lastObjHash=this.objHash,this.error=null,this.useChangedItemsResults()||t.addSameRequest(this)||this.sendRequest())}},Object.defineProperty(t.prototype,"isUsingCache",{get:function(){return!0===this.isUsingCacheFromUrl||!1!==this.isUsingCacheFromUrl&&a.useCachingForChoicesRestful},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRunning",{get:function(){return this.getIsRunning()},enumerable:!1,configurable:!0}),t.prototype.getIsRunning=function(){return this.isRunningValue},Object.defineProperty(t.prototype,"isWaitingForParameters",{get:function(){return this.url&&!this.processedUrl},enumerable:!1,configurable:!0}),t.prototype.useChangedItemsResults=function(){return t.getCachedItemsResult(this)},t.prototype.doEmptyResultCallback=function(e){var t=[];this.updateResultCallback&&(t=this.updateResultCallback(t,e)),this.getResultCallback(t)},t.prototype.processedText=function(e){var n=this.url;if(n&&(n=n.replace(t.cacheText,"").replace(t.noCacheText,"")),e){var o=e.processTextEx(n,!1,a.webserviceEncodeParameters),r=e.processTextEx(this.path,!1,a.webserviceEncodeParameters);o.hasAllValuesOnLastRun&&r.hasAllValuesOnLastRun?(this.processedUrl=o.text,this.processedPath=r.text):(this.processedUrl="",this.processedPath="")}else this.processedUrl=n,this.processedPath=this.path;this.onProcessedUrlCallback&&this.onProcessedUrlCallback(this.processedUrl,this.processedPath)},t.prototype.parseResponse=function(e){var t;if(e&&"function"==typeof e.indexOf&&0===e.indexOf("<"))t=(new wt).parseXmlString(e);else try{t=JSON.parse(e)}catch(n){t=(e||"").split("\n").map((function(e){return e.trim(" ")})).filter((function(e){return!!e}))}return t},t.prototype.sendRequest=function(){var e=new XMLHttpRequest;e.open("GET",this.processedUrl),e.setRequestHeader("Content-Type","application/x-www-form-urlencoded");var n=this,o=this.objHash;e.onload=function(){n.beforeLoadRequest(),200===e.status?n.onLoad(n.parseResponse(e.response),o):n.onError(e.statusText,e.responseText)};var r={request:e};t.onBeforeSendRequest&&t.onBeforeSendRequest(this,r),this.beforeSendRequest(),r.request.send()},t.prototype.getType=function(){return"choicesByUrl"},Object.defineProperty(t.prototype,"isEmpty",{get:function(){return!(this.url||this.path||this.valueName||this.titleName||this.imageLinkName)},enumerable:!1,configurable:!0}),t.prototype.getCustomPropertiesNames=function(){for(var e=this.getCustomProperties(),t=new Array,n=0;n<e.length;n++)t.push(this.getCustomPropertyName(e[n].name));return t},t.prototype.getCustomPropertyName=function(e){return e+"Name"},t.prototype.getCustomProperties=function(){for(var e=R.getProperties(this.itemValueType),t=[],n=0;n<e.length;n++)"value"!==e[n].name&&"text"!==e[n].name&&"visibleIf"!==e[n].name&&"enableIf"!==e[n].name&&t.push(e[n]);return t},t.prototype.setData=function(e){this.clear(),e.url&&(this.url=e.url),e.path&&(this.path=e.path),e.valueName&&(this.valueName=e.valueName),e.titleName&&(this.titleName=e.titleName),e.imageLinkName&&(this.imageLinkName=e.imageLinkName),void 0!==e.allowEmptyResponse&&(this.allowEmptyResponse=e.allowEmptyResponse),void 0!==e.attachOriginalItems&&(this.attachOriginalItems=e.attachOriginalItems);for(var t=this.getCustomPropertiesNames(),n=0;n<t.length;n++)e[t[n]]&&(this[t[n]]=e[t[n]])},t.prototype.getData=function(){if(this.isEmpty)return null;var e={};this.url&&(e.url=this.url),this.path&&(e.path=this.path),this.valueName&&(e.valueName=this.valueName),this.titleName&&(e.titleName=this.titleName),this.imageLinkName&&(e.imageLinkName=this.imageLinkName),this.allowEmptyResponse&&(e.allowEmptyResponse=this.allowEmptyResponse),this.attachOriginalItems&&(e.attachOriginalItems=this.attachOriginalItems);for(var t=this.getCustomPropertiesNames(),n=0;n<t.length;n++)this[t[n]]&&(e[t[n]]=this[t[n]]);return e},Object.defineProperty(t.prototype,"url",{get:function(){return this.getPropertyValue("url","")},set:function(e){this.setPropertyValue("url",e),this.isUsingCacheFromUrl=void 0,e&&(e.indexOf(t.cacheText)>-1?this.isUsingCacheFromUrl=!0:e.indexOf(t.noCacheText)>-1&&(this.isUsingCacheFromUrl=!1))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return this.getPropertyValue("path","")},set:function(e){this.setPropertyValue("path",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"valueName",{get:function(){return this.getPropertyValue("valueName","")},set:function(e){this.setPropertyValue("valueName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleName",{get:function(){return this.getPropertyValue("titleName","")},set:function(e){this.setPropertyValue("titleName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageLinkName",{get:function(){return this.getPropertyValue("imageLinkName","")},set:function(e){this.setPropertyValue("imageLinkName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowEmptyResponse",{get:function(){return this.getPropertyValue("allowEmptyResponse",!1)},set:function(e){this.setPropertyValue("allowEmptyResponse",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attachOriginalItems",{get:function(){return this.getPropertyValue("attachOriginalItems",!1)},set:function(e){this.setPropertyValue("attachOriginalItems",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemValueType",{get:function(){if(!this.owner)return"itemvalue";var e=R.findProperty(this.owner.getType(),"choices");return e?"itemvalue[]"==e.type?"itemvalue":e.type:"itemvalue"},enumerable:!1,configurable:!0}),t.prototype.clear=function(){this.url="",this.path="",this.valueName="",this.titleName="",this.imageLinkName="";for(var e=this.getCustomPropertiesNames(),t=0;t<e.length;t++)this[e[t]]&&(this[e[t]]="")},t.prototype.beforeSendRequest=function(){this.isRunningValue=!0,this.beforeSendRequestCallback&&this.beforeSendRequestCallback()},t.prototype.beforeLoadRequest=function(){this.isRunningValue=!1},t.prototype.onLoad=function(e,n){void 0===n&&(n=null),n||(n=this.objHash);var o=new Array,r=this.getResultAfterPath(e);if(r&&r.length)for(var i=0;i<r.length;i++){var a=r[i];if(a){var s=this.getItemValueCallback?this.getItemValueCallback(a):this.getValue(a),l=this.createItemValue(s);this.setTitle(l,a),this.setCustomProperties(l,a),this.attachOriginalItems&&(l.originalItem=a);var u=this.getImageLink(a);u&&(l.imageLink=u),o.push(l)}}else this.allowEmptyResponse||(this.error=new G(null,this.owner));this.updateResultCallback&&(o=this.updateResultCallback(o,e)),this.isUsingCache&&(t.itemsResult[n]=o),this.callResultCallback(o,n),t.unregisterSameRequests(this,o)},t.prototype.callResultCallback=function(e,t){t==this.objHash&&this.getResultCallback(e)},t.prototype.setCustomProperties=function(e,t){for(var n=this.getCustomProperties(),o=0;o<n.length;o++){var r=n[o],i=this.getValueCore(t,this.getPropertyBinding(r.name));this.isValueEmpty(i)||(e[r.name]=i)}},t.prototype.getPropertyBinding=function(e){return this[this.getCustomPropertyName(e)]?this[this.getCustomPropertyName(e)]:this[e]?this[e]:e},t.prototype.onError=function(e,n){this.error=new W(e,n,this.owner),this.doEmptyResultCallback(n),t.unregisterSameRequests(this,[])},t.prototype.getResultAfterPath=function(e){if(!e)return e;if(!this.processedPath)return e;for(var t=this.getPathes(),n=0;n<t.length;n++)if(!(e=e[t[n]]))return null;return e},t.prototype.getPathes=function(){var e=[];return 0==(e=this.processedPath.indexOf(";")>-1?this.path.split(";"):this.processedPath.split(",")).length&&e.push(this.processedPath),e},t.prototype.getValue=function(e){return e?this.valueName?this.getValueCore(e,this.valueName):e instanceof Object?Object.keys(e).length<1?null:e[Object.keys(e)[0]]:e:null},t.prototype.setTitle=function(e,t){var n=this.titleName?this.titleName:"title",o=this.getValueCore(t,n);o&&("string"==typeof o?e.text=o:e.locText.setJson(o))},t.prototype.getImageLink=function(e){var t=this.imageLinkName?this.imageLinkName:"imageLink";return this.getValueCore(e,t)},t.prototype.getValueCore=function(e,t){if(!e)return null;if(t.indexOf(".")<0)return e[t];for(var n=t.split("."),o=0;o<n.length;o++)if(!(e=e[n[o]]))return null;return e},Object.defineProperty(t.prototype,"objHash",{get:function(){return this.processedUrl+";"+this.processedPath+";"+this.valueName+";"+this.titleName+";"+this.imageLinkName},enumerable:!1,configurable:!0}),t.cacheText="{CACHE}",t.noCacheText="{NOCACHE}",t.itemsResult={},t.sendingSameRequests={},t}(L),_t=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ct(t,e),Object.defineProperty(t,"EncodeParameters",{get:function(){return Pt.EncodeParameters},set:function(e){Pt.EncodeParameters=e},enumerable:!1,configurable:!0}),t.clearCache=function(){Pt.clearCache()},Object.defineProperty(t,"onBeforeSendRequest",{get:function(){return Pt.onBeforeSendRequest},set:function(e){Pt.onBeforeSendRequest=e},enumerable:!1,configurable:!0}),t}(Pt);R.addClass("choicesByUrl",["url","path","valueName","titleName",{name:"imageLinkName",visibleIf:function(e){return!!e&&!!e.owner&&"imagepicker"==e.owner.getType()}},{name:"allowEmptyResponse:boolean",default:!1},{name:"attachOriginalItems:boolean",default:!1,visible:!1}],(function(){return new Pt}));var Vt=function(){function e(e,t){this.name=e,this.widgetJson=t,this.isFirstRender=!0,this.htmlTemplate=t.htmlTemplate?t.htmlTemplate:""}return e.prototype.afterRender=function(e,t){var n=this;this.isFirstRender&&(this.isFirstRender=!1,e.survey.onLocaleChangedEvent.add((function(){n.widgetJson.willUnmount(e,t),n.widgetJson.afterRender(e,t)}))),this.widgetJson.afterRender&&this.widgetJson.afterRender(e,t)},e.prototype.willUnmount=function(e,t){this.widgetJson.willUnmount&&this.widgetJson.willUnmount(e,t)},e.prototype.getDisplayValue=function(e,t){return void 0===t&&(t=void 0),this.widgetJson.getDisplayValue?this.widgetJson.getDisplayValue(e,t):null},e.prototype.isFit=function(e){return!(!this.isLibraryLoaded()||!this.widgetJson.isFit)&&this.widgetJson.isFit(e)},Object.defineProperty(e.prototype,"canShowInToolbox",{get:function(){return!1!==this.widgetJson.showInToolbox&&("customtype"==Tt.Instance.getActivatedBy(this.name)&&(!this.widgetJson.widgetIsLoaded||this.widgetJson.widgetIsLoaded()))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showInToolbox",{get:function(){return!1!==this.widgetJson.showInToolbox},set:function(e){this.widgetJson.showInToolbox=e},enumerable:!1,configurable:!0}),e.prototype.init=function(){this.widgetJson.init&&this.widgetJson.init()},e.prototype.activatedByChanged=function(e){this.isLibraryLoaded()&&this.widgetJson.activatedByChanged&&this.widgetJson.activatedByChanged(e)},e.prototype.isLibraryLoaded=function(){return!this.widgetJson.widgetIsLoaded||1==this.widgetJson.widgetIsLoaded()},Object.defineProperty(e.prototype,"isDefaultRender",{get:function(){return this.widgetJson.isDefaultRender},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pdfQuestionType",{get:function(){return this.widgetJson.pdfQuestionType},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pdfRender",{get:function(){return this.widgetJson.pdfRender},enumerable:!1,configurable:!0}),e}(),Tt=function(){function e(){this.widgetsValues=[],this.widgetsActivatedBy={},this.onCustomWidgetAdded=new M}return Object.defineProperty(e.prototype,"widgets",{get:function(){return this.widgetsValues},enumerable:!1,configurable:!0}),e.prototype.add=function(e,t){void 0===t&&(t="property"),this.addCustomWidget(e,t)},e.prototype.addCustomWidget=function(e,t){void 0===t&&(t="property");var n=e.name;n||(n="widget_"+this.widgets.length+1);var o=new Vt(n,e);return this.widgetsValues.push(o),o.init(),this.widgetsActivatedBy[n]=t,o.activatedByChanged(t),this.onCustomWidgetAdded.fire(o,null),o},e.prototype.getActivatedBy=function(e){var t=this.widgetsActivatedBy[e];return t||"property"},e.prototype.setActivatedBy=function(e,t){if(e&&t){var n=this.getCustomWidgetByName(e);n&&(this.widgetsActivatedBy[e]=t,n.activatedByChanged(t))}},e.prototype.clear=function(){this.widgetsValues=[]},e.prototype.getCustomWidgetByName=function(e){for(var t=0;t<this.widgets.length;t++)if(this.widgets[t].name==e)return this.widgets[t];return null},e.prototype.getCustomWidget=function(e){for(var t=0;t<this.widgetsValues.length;t++)if(this.widgetsValues[t].isFit(e))return this.widgetsValues[t];return null},e.Instance=new e,e}();function kt(e){return a&&a.confirmActionFunc?a.confirmActionFunc(e):confirm(e)}function St(){if("undefined"==typeof window)return!1;if(void 0===St.isIEOrEdge){var e=window.navigator.userAgent,t=e.indexOf("MSIE "),n=e.indexOf("Trident/"),o=e.indexOf("Edge/");St.isIEOrEdge=o>0||n>0||t>0}return St.isIEOrEdge}function Ot(e,t){try{for(var n=atob(e.split(",")[1]),o=e.split(",")[0].split(":")[1].split(";")[0],r=new ArrayBuffer(n.length),i=new Uint8Array(r),a=0;a<n.length;a++)i[a]=n.charCodeAt(a);var s=new Blob([r],{type:o});"undefined"!=typeof window&&window.navigator&&window.navigator.msSaveBlob&&window.navigator.msSaveOrOpenBlob(s,t)}catch(e){}}function Et(e){return e?e.scrollHeight>e.clientHeight&&("scroll"===getComputedStyle(e).overflowY||"auto"===getComputedStyle(e).overflowY)?e:Et(e.parentElement):document.documentElement}function Rt(e,t,n,o,r){r.style.width=(e||t||16)+"px",r.style.height=(e||n||16)+"px";var i=r.childNodes[0],s=function(e){if(!e)return e;var t=a.customIcons[e];return t||e}(o);i.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href","#"+s)}function It(e){return"function"!=typeof e?e:e()}function qt(e){if("number"==typeof e)return e+"px";if(e&&"string"==typeof e&&e.length>0){var t=e[e.length-1];if(t>="0"&&t<="9"||"."==t)try{return parseFloat(e)+"px"}catch(e){}}return e}function Dt(e,t){if(void 0===t&&(t={processEsc:!0}),!e.target||"true"!==e.target.contentEditable){var n=e.target;if(n){var o=e.which||e.keyCode;13===o||32===o?n.click&&n.click():t.processEsc&&27===o&&n.blur&&n.blur()}}}function At(e,t){if(void 0===t&&(t={processEsc:!0}),!e.target||"true"!==e.target.contentEditable){var n=e.which||e.keyCode,o=[13,32];t.processEsc&&o.push(27),-1!==o.indexOf(n)&&e.preventDefault()}}function jt(e,t){if(e){t||(t=function(e){return window.getComputedStyle(e)});var n=t(e);e.style.height="auto",e.style.height=e.scrollHeight+parseFloat(n.borderTopWidth)+parseFloat(n.borderBottomWidth)+"px"}}function Lt(e){return e.originalEvent||e}function Nt(e){e.preventDefault(),e.stopPropagation()}var Mt=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ft=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Bt=function(e){function t(n){var o=e.call(this,n)||this;return o.conditionRunner=null,o.customWidgetData={isNeedRender:!0},o.isReadyValue=!0,o.onReadyChanged=o.addEvent(),o.parentQuestionValue=null,o.isRunningValidatorsValue=!1,o.isValueChangedInSurvey=!1,o.allowNotifyValueChanged=!0,o.id=t.getQuestionId(),o.onCreating(),o.createNewArray("validators",(function(e){e.errorOwner=o})),o.createLocalizableString("commentText",o,!0).onGetTextCallback=function(e){return e||u.getString("otherItemText")},o.createLocalizableString("requiredErrorText",o),o.registerFunctionOnPropertyValueChanged("width",(function(){o.updateQuestionCss(),o.parent&&o.parent.elementWidthChanged(o)})),o.registerFunctionOnPropertyValueChanged("isRequired",(function(){o.locTitle.onChanged(),o.cssClassesValue=void 0})),o.registerFunctionOnPropertiesValueChanged(["indent","rightIndent"],(function(){o.onIndentChanged()})),o.registerFunctionOnPropertiesValueChanged(["hasComment","hasOther"],(function(){o.initCommentFromSurvey()})),o}return Mt(t,e),t.getQuestionId=function(){return"sq_"+t.questionCounter++},t.prototype.isReadOnlyRenderDiv=function(){return this.isReadOnly&&"div"===a.readOnlyCommentRenderMode},t.prototype.createLocTitleProperty=function(){var t=this,n=e.prototype.createLocTitleProperty.call(this);return n.onGetTextCallback=function(e){return e||(e=t.name),t.survey?t.survey.getUpdatedQuestionTitle(t,e):e},this.locProcessedTitle=new d(this,!0),this.locProcessedTitle.sharedData=n,n},t.prototype.getSurvey=function(t){return void 0===t&&(t=!1),t?this.parent?this.parent.getSurvey(t):null:this.onGetSurvey?this.onGetSurvey():e.prototype.getSurvey.call(this)},t.prototype.getValueName=function(){return this.valueName?this.valueName.toString():this.name},Object.defineProperty(t.prototype,"valueName",{get:function(){return this.getPropertyValue("valueName","")},set:function(e){var t=this.getValueName();this.setPropertyValue("valueName",e),this.onValueNameChanged(t)},enumerable:!1,configurable:!0}),t.prototype.onValueNameChanged=function(e){this.survey&&(this.survey.questionRenamed(this,this.name,e||this.name),this.initDataFromSurvey())},t.prototype.onNameChanged=function(e){this.locTitle.onChanged(),this.survey&&this.survey.questionRenamed(this,e,this.valueName?this.valueName:e)},Object.defineProperty(t.prototype,"isReady",{get:function(){return this.isReadyValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaRequired",{get:function(){return this.isRequired},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaLabel",{get:function(){return this.locTitle.renderedHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaInvalid",{get:function(){return this.errors.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaDescribedBy",{get:function(){return this.errors.length>0?this.id+"_errors":null},enumerable:!1,configurable:!0}),t.prototype.choicesLoaded=function(){},Object.defineProperty(t.prototype,"page",{get:function(){return this.getPage(this.parent)},set:function(e){this.setPage(this.parent,e)},enumerable:!1,configurable:!0}),t.prototype.getPanel=function(){return null},t.prototype.delete=function(){this.parent&&this.removeSelfFromList(this.parent.elements)},Object.defineProperty(t.prototype,"isFlowLayout",{get:function(){return"flow"===this.getLayoutType()},enumerable:!1,configurable:!0}),t.prototype.getLayoutType=function(){return this.parent?this.parent.getChildrenLayoutType():"row"},t.prototype.isLayoutTypeSupported=function(e){return"flow"!==e},Object.defineProperty(t.prototype,"visible",{get:function(){return this.getPropertyValue("visible",!0)},set:function(e){e!=this.visible&&(this.setPropertyValue("visible",e),this.onVisibleChanged(),this.notifySurveyVisibilityChanged())},enumerable:!1,configurable:!0}),t.prototype.onVisibleChanged=function(){this.setPropertyValue("isVisible",this.isVisible),this.isVisible&&this.survey&&this.survey.isClearValueOnHidden&&this.updateValueWithDefaults(),!this.isVisible&&this.errors&&this.errors.length>0&&(this.errors=[])},Object.defineProperty(t.prototype,"useDisplayValuesInTitle",{get:function(){return this.getPropertyValue("useDisplayValuesInTitle")},set:function(e){this.setPropertyValue("useDisplayValuesInTitle",e)},enumerable:!1,configurable:!0}),t.prototype.getUseDisplayValuesInTitle=function(){return this.useDisplayValuesInTitle},Object.defineProperty(t.prototype,"visibleIf",{get:function(){return this.getPropertyValue("visibleIf","")},set:function(e){this.setPropertyValue("visibleIf",e),this.runConditions()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return!(this.survey&&this.survey.areEmptyElementsHidden&&this.isEmpty())&&(this.visible||this.areInvisibleElementsShowing)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visibleIndex",{get:function(){return this.getPropertyValue("visibleIndex",-1)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hideNumber",{get:function(){return this.getPropertyValue("hideNumber")},set:function(e){this.setPropertyValue("hideNumber",e),this.notifySurveyVisibilityChanged()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAllowTitleLeft",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"question"},Object.defineProperty(t.prototype,"isQuestion",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.moveTo=function(e,t){return void 0===t&&(t=null),this.moveToBase(this.parent,e,t)},t.prototype.getProgressInfo=function(){return this.hasInput?{questionCount:1,answeredQuestionCount:this.isEmpty()?0:1,requiredQuestionCount:this.isRequired?1:0,requiredAnsweredQuestionCount:!this.isEmpty()&&this.isRequired?1:0}:e.prototype.getProgressInfo.call(this)},t.prototype.runConditions=function(){this.data&&!this.isLoadingFromJson&&(this.isDesignMode||this.runCondition(this.getDataFilteredValues(),this.getDataFilteredProperties()),this.locStrsChanged())},t.prototype.setSurveyImpl=function(t){e.prototype.setSurveyImpl.call(this,t),this.survey&&this.survey.questionCreated(this),this.survey&&this.survey.isDesignMode&&!this.isDesignMode&&this.onVisibleChanged(),this.runConditions()},t.prototype.getDataFilteredValues=function(){return this.data?this.data.getFilteredValues():null},t.prototype.getDataFilteredProperties=function(){var e=this.data?this.data.getFilteredProperties():{};return e.question=this,e},Object.defineProperty(t.prototype,"parent",{get:function(){return this.getPropertyValue("parent",null)},set:function(e){this.parent!==e&&(this.delete(),this.setPropertyValue("parent",e),this.updateQuestionCss(),this.onParentChanged())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"parentQuestion",{get:function(){return this.parentQuestionValue},enumerable:!1,configurable:!0}),t.prototype.setParentQuestion=function(e){this.parentQuestionValue=e,this.onParentQuestionChanged()},t.prototype.onParentQuestionChanged=function(){},t.prototype.onParentChanged=function(){},Object.defineProperty(t.prototype,"hasTitle",{get:function(){return"hidden"!==this.getTitleLocation()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleLocation",{get:function(){return this.getPropertyValue("titleLocation")},set:function(e){var t="hidden"==this.titleLocation||"hidden"==e;this.setPropertyValue("titleLocation",e.toLowerCase()),this.updateQuestionCss(),t&&this.notifySurveyVisibilityChanged()},enumerable:!1,configurable:!0}),t.prototype.getTitleOwner=function(){return this},t.prototype.notifySurveyVisibilityChanged=function(){this.survey&&!this.isLoadingFromJson&&(this.survey.questionVisibilityChanged(this,this.isVisible),this.survey.isClearValueOnHidden&&!this.visible&&this.clearValue())},t.prototype.getTitleLocation=function(){if(this.isFlowLayout)return"hidden";var e=this.getTitleLocationCore();return"left"!==e||this.isAllowTitleLeft||(e="top"),e},t.prototype.getTitleLocationCore=function(){return"default"!==this.titleLocation?this.titleLocation:this.parent?this.parent.getQuestionTitleLocation():this.survey?this.survey.questionTitleLocation:"top"},Object.defineProperty(t.prototype,"hasTitleOnLeft",{get:function(){return this.hasTitle&&"left"===this.getTitleLocation()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleOnTop",{get:function(){return this.hasTitle&&"top"===this.getTitleLocation()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleOnBottom",{get:function(){return this.hasTitle&&"bottom"===this.getTitleLocation()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleOnLeftTop",{get:function(){if(!this.hasTitle)return!1;var e=this.getTitleLocation();return"left"===e||"top"===e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"errorLocation",{get:function(){return this.survey?this.survey.questionErrorLocation:"top"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasInput",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return this.hasInput},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputId",{get:function(){return this.id+"i"},enumerable:!1,configurable:!0}),t.prototype.getDefaultTitleValue=function(){return this.name},t.prototype.getDefaultTitleTagName=function(){return a.titleTags.question},Object.defineProperty(t.prototype,"descriptionLocation",{get:function(){return this.getPropertyValue("descriptionLocation")},set:function(e){this.setPropertyValue("descriptionLocation",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasDescriptionUnderTitle",{get:function(){return"underTitle"==this.getDescriptionLocation()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasDescriptionUnderInput",{get:function(){return"underInput"==this.getDescriptionLocation()},enumerable:!1,configurable:!0}),t.prototype.getDescriptionLocation=function(){return"default"!==this.descriptionLocation?this.descriptionLocation:this.survey?this.survey.questionDescriptionLocation:"underTitle"},Object.defineProperty(t.prototype,"clickTitleFunction",{get:function(){if(this.hasInput){var e=this;return function(){if(!e.isCollapsed)return setTimeout((function(){e.focus()}),1),!0}}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredErrorText",{get:function(){return this.getLocalizableStringText("requiredErrorText")},set:function(e){this.setLocalizableStringText("requiredErrorText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locRequiredErrorText",{get:function(){return this.getLocalizableString("requiredErrorText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"commentText",{get:function(){return this.getLocalizableStringText("commentText",u.getString("otherItemText"))},set:function(e){this.setLocalizableStringText("commentText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locCommentText",{get:function(){return this.getLocalizableString("commentText")},enumerable:!1,configurable:!0}),t.prototype.getAllErrors=function(){return this.errors.slice()},t.prototype.getErrorByType=function(e){for(var t=0;t<this.errors.length;t++)if(this.errors[t].getErrorType()===e)return this.errors[t];return null},Object.defineProperty(t.prototype,"customWidget",{get:function(){return this.isCustomWidgetRequested||this.customWidgetValue||(this.isCustomWidgetRequested=!0,this.updateCustomWidget()),this.customWidgetValue},enumerable:!1,configurable:!0}),t.prototype.updateCustomWidget=function(){this.customWidgetValue=Tt.Instance.getCustomWidget(this)},Object.defineProperty(t.prototype,"isCompositeQuestion",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.updateCommentElement=function(){this.commentElement&&this.autoGrowComment&&jt(this.commentElement)},t.prototype.onCommentInput=function(e){this.isInputTextUpdate?this.comment=e.target.value:this.updateCommentElement()},t.prototype.onCommentChange=function(e){this.comment=e.target.value,this.comment!==e.target.value&&(e.target.value=this.comment)},t.prototype.afterRenderQuestionElement=function(e){this.survey&&this.hasSingleInput&&this.survey.afterRenderQuestionInput(this,e)},t.prototype.afterRender=function(e){this.survey&&(this.survey.afterRenderQuestion(this,e),this.afterRenderQuestionCallback&&this.afterRenderQuestionCallback(this,e),(this.supportComment()||this.supportOther())&&(this.commentElement=document.getElementById(this.id)&&document.getElementById(this.id).querySelector("textarea")||null,this.updateCommentElement()))},t.prototype.beforeDestroyQuestionElement=function(e){},Object.defineProperty(t.prototype,"processedTitle",{get:function(){var e=this.locProcessedTitle.textOrHtml;return e||this.name},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fullTitle",{get:function(){return this.locTitle.renderedHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titlePattern",{get:function(){return this.survey?this.survey.questionTitlePattern:"numTitleRequire"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextOnStart",{get:function(){return this.isRequired&&"requireNumTitle"==this.titlePattern},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextBeforeTitle",{get:function(){return this.isRequired&&"numRequireTitle"==this.titlePattern},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextAfterTitle",{get:function(){return this.isRequired&&"numTitleRequire"==this.titlePattern},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"startWithNewLine",{get:function(){return this.getPropertyValue("startWithNewLine")},set:function(e){this.startWithNewLine!=e&&this.setPropertyValue("startWithNewLine",e)},enumerable:!1,configurable:!0}),t.prototype.calcCssClasses=function(e){var t={error:{}};return this.copyCssClasses(t,e.question),this.copyCssClasses(t.error,e.error),this.updateCssClasses(t,e),this.survey&&this.survey.updateQuestionCssClasses(this,t),t},Object.defineProperty(t.prototype,"cssRoot",{get:function(){return this.ensureElementCss(),this.getPropertyValue("cssRoot","")},enumerable:!1,configurable:!0}),t.prototype.setCssRoot=function(e){this.setPropertyValue("cssRoot",e)},t.prototype.getCssRoot=function(e){return(new ze).append(this.isFlowLayout&&!this.isDesignMode?e.flowRoot:e.mainRoot).append(e.titleLeftRoot,!this.isFlowLayout&&this.hasTitleOnLeft).append(e.hasError,this.errors.length>0).append(e.small,!this.width).append(e.answered,this.isAnswered).toString()},Object.defineProperty(t.prototype,"cssHeader",{get:function(){return this.ensureElementCss(),this.getPropertyValue("cssHeader","")},enumerable:!1,configurable:!0}),t.prototype.setCssHeader=function(e){this.setPropertyValue("cssHeader",e)},t.prototype.getCssHeader=function(e){return(new ze).append(e.header).append(e.headerTop,this.hasTitleOnTop).append(e.headerLeft,this.hasTitleOnLeft).append(e.headerBottom,this.hasTitleOnBottom).toString()},Object.defineProperty(t.prototype,"cssContent",{get:function(){return this.ensureElementCss(),this.getPropertyValue("cssContent","")},enumerable:!1,configurable:!0}),t.prototype.setCssContent=function(e){this.setPropertyValue("cssContent",e)},t.prototype.getCssContent=function(e){return(new ze).append(e.content).append(e.contentLeft,this.hasTitleOnLeft).toString()},Object.defineProperty(t.prototype,"cssTitle",{get:function(){return this.ensureElementCss(),this.getPropertyValue("cssTitle","")},enumerable:!1,configurable:!0}),t.prototype.setCssTitle=function(e){this.setPropertyValue("cssTitle",e)},t.prototype.getCssTitle=function(e){return(new ze).append(e.title).append(e.titleExpandable,this.isCollapsed||this.isExpanded).append(e.titleOnError,this.containsErrors).append(e.titleOnAnswer,!this.containsErrors&&this.isAnswered).toString()},Object.defineProperty(t.prototype,"cssError",{get:function(){return this.ensureElementCss(),this.getPropertyValue("cssError","")},enumerable:!1,configurable:!0}),t.prototype.setCssError=function(e){this.setPropertyValue("cssError",e)},t.prototype.getCssError=function(e){return(new ze).append(e.error.root).append(e.error.locationTop,"top"===this.errorLocation).append(e.error.locationBottom,"bottom"===this.errorLocation).toString()},t.prototype.getRootCss=function(){return(new ze).append(this.cssRoot).append(this.cssClasses.disabled,this.isReadOnly).toString()},t.prototype.updateElementCss=function(e){this.cssClassesValue=void 0,e&&this.updateQuestionCss(!0)},t.prototype.updateQuestionCss=function(e){this.isLoadingFromJson||!this.survey||!0!==e&&!this.cssClassesValue||this.updateElementCssCore(this.cssClasses)},t.prototype.ensureElementCss=function(){this.cssClassesValue||this.updateQuestionCss(!0)},t.prototype.updateElementCssCore=function(e){this.setCssRoot(this.getCssRoot(e)),this.setCssHeader(this.getCssHeader(e)),this.setCssContent(this.getCssContent(e)),this.setCssTitle(this.getCssTitle(e)),this.setCssError(this.getCssError(e))},t.prototype.updateCssClasses=function(e,t){if(t.question){var n=t[this.getCssType()],o=(new ze).append(e.title).append(t.question.titleRequired,this.isRequired);e.title=o.toString();var r=(new ze).append(e.root).append(n,this.isRequired&&!!t.question.required);if(null==n)e.root=r.toString();else if("string"==typeof n||n instanceof String)e.root=r.append(n.toString()).toString();else for(var i in e.root=r.toString(),n)e[i]=n[i]}},t.prototype.getCssType=function(){return this.getType()},Object.defineProperty(t.prototype,"width",{get:function(){return this.getPropertyValue("width","")},set:function(e){this.setPropertyValue("width",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minWidth",{get:function(){return this.getPropertyValue("minWidth")},set:function(e){this.setPropertyValue("minWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxWidth",{get:function(){return this.getPropertyValue("maxWidth")},set:function(e){this.setPropertyValue("maxWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderWidth",{get:function(){return this.getPropertyValue("renderWidth","")},set:function(e){this.setPropertyValue("renderWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"indent",{get:function(){return this.getPropertyValue("indent")},set:function(e){this.setPropertyValue("indent",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rightIndent",{get:function(){return this.getPropertyValue("rightIndent",0)},set:function(e){this.setPropertyValue("rightIndent",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"paddingLeft",{get:function(){return this.getPropertyValue("paddintLeft","")},set:function(e){this.setPropertyValue("paddintLeft",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"paddingRight",{get:function(){return this.getPropertyValue("paddingRight","")},set:function(e){this.setPropertyValue("paddingRight",e)},enumerable:!1,configurable:!0}),t.prototype.onIndentChanged=function(){this.paddingLeft=this.getIndentSize(this.indent),this.paddingRight=this.getIndentSize(this.rightIndent)},t.prototype.getIndentSize=function(e){return e<1||!this.getSurvey()||!this.cssClasses?"":e*this.cssClasses.indent+"px"},t.prototype.focus=function(e){if(void 0===e&&(e=!1),!this.isDesignMode){this.survey&&this.survey.scrollElementToTop(this,this,null,this.id);var t=e?this.getFirstErrorInputElementId():this.getFirstInputElementId();ft.FocusElement(t)&&this.fireCallback(this.focusCallback)}},t.prototype.fireCallback=function(e){e&&e()},t.prototype.getOthersMaxLength=function(){return this.survey&&this.survey.maxOthersLength>0?this.survey.maxOthersLength:null},t.prototype.onCreating=function(){},t.prototype.getFirstInputElementId=function(){return this.inputId},t.prototype.getFirstErrorInputElementId=function(){return this.getFirstInputElementId()},t.prototype.getProcessedTextValue=function(e){var n=e.name.toLocaleLowerCase();e.isExists=-1!==Object.keys(t.TextPreprocessorValuesMap).indexOf(n)||void 0!==this[e.name],e.value=this[t.TextPreprocessorValuesMap[n]||e.name]},t.prototype.supportComment=function(){return!1},t.prototype.supportOther=function(){return!1},Object.defineProperty(t.prototype,"isRequired",{get:function(){return this.getPropertyValue("isRequired",!1)},set:function(e){this.setPropertyValue("isRequired",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredIf",{get:function(){return this.getPropertyValue("requiredIf","")},set:function(e){this.setPropertyValue("requiredIf",e),this.runConditions()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasComment",{get:function(){return this.getPropertyValue("hasComment",!1)},set:function(e){this.supportComment()&&(this.setPropertyValue("hasComment",e),this.hasComment&&(this.hasOther=!1))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this.getPropertyValue("id")},set:function(e){this.setPropertyValue("id",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaTitleId",{get:function(){return this.id+"_ariaTitle"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaRole",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasOther",{get:function(){return this.getPropertyValue("hasOther",!1)},set:function(e){this.supportOther()&&this.hasOther!=e&&(this.setPropertyValue("hasOther",e),this.hasOther&&(this.hasComment=!1),this.hasOtherChanged())},enumerable:!1,configurable:!0}),t.prototype.hasOtherChanged=function(){},Object.defineProperty(t.prototype,"requireUpdateCommentValue",{get:function(){return this.hasComment||this.hasOther},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isReadOnly",{get:function(){var e=!!this.parent&&this.parent.isReadOnly,t=!!this.survey&&this.survey.isDisplayMode;return this.readOnly||e||t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isInputReadOnly",{get:function(){var e=a.supportCreatorV2&&this.isDesignMode;return this.isReadOnly||e},enumerable:!1,configurable:!0}),t.prototype.onReadOnlyChanged=function(){this.setPropertyValue("isInputReadOnly",this.isInputReadOnly),e.prototype.onReadOnlyChanged.call(this)},Object.defineProperty(t.prototype,"enableIf",{get:function(){return this.getPropertyValue("enableIf","")},set:function(e){this.setPropertyValue("enableIf",e),this.runConditions()},enumerable:!1,configurable:!0}),t.prototype.runCondition=function(e,t){this.isDesignMode||(t||(t={}),t.question=this,this.areInvisibleElementsShowing||this.runVisibleIfCondition(e,t),this.runEnableIfCondition(e,t),this.runRequiredIfCondition(e,t))},t.prototype.runVisibleIfCondition=function(e,t){var n=this;this.visibleIf&&(this.conditionRunner||(this.conditionRunner=new Te(this.visibleIf)),this.conditionRunner.expression=this.visibleIf,this.conditionRunner.onRunComplete=function(e){n.visible=e},this.conditionRunner.run(e,t))},t.prototype.runEnableIfCondition=function(e,t){var n=this;this.enableIf&&(this.conditionEnabelRunner||(this.conditionEnabelRunner=new Te(this.enableIf)),this.conditionEnabelRunner.expression=this.enableIf,this.conditionEnabelRunner.onRunComplete=function(e){n.readOnly=!e},this.conditionEnabelRunner.run(e,t))},t.prototype.runRequiredIfCondition=function(e,t){var n=this;this.requiredIf&&(this.conditionRequiredRunner||(this.conditionRequiredRunner=new Te(this.requiredIf)),this.conditionRequiredRunner.expression=this.requiredIf,this.conditionRequiredRunner.onRunComplete=function(e){n.isRequired=e},this.conditionRequiredRunner.run(e,t))},Object.defineProperty(t.prototype,"no",{get:function(){return this.getPropertyValue("no")},enumerable:!1,configurable:!0}),t.prototype.calcNo=function(){if(!this.hasTitle||this.hideNumber)return"";var e=s.getNumberByIndex(this.visibleIndex,this.getStartIndex());return this.survey&&(e=this.survey.getUpdatedQuestionNo(this,e)),e},t.prototype.getStartIndex=function(){return this.parent?this.parent.getQuestionStartIndex():this.survey?this.survey.questionStartIndex:""},t.prototype.onSurveyLoad=function(){this.fireCallback(this.surveyLoadCallback),this.updateValueWithDefaults()},t.prototype.onSetData=function(){e.prototype.onSetData.call(this),this.survey&&(this.initDataFromSurvey(),this.onSurveyValueChanged(this.value),this.updateValueWithDefaults(),this.onIndentChanged(),this.updateQuestionCss(),this.updateIsAnswered())},t.prototype.initDataFromSurvey=function(){if(this.data){var e=this.data.getValue(this.getValueName());s.isValueEmpty(e)&&this.isLoadingFromJson||this.updateValueFromSurvey(e),this.initCommentFromSurvey()}},t.prototype.initCommentFromSurvey=function(){this.data&&this.requireUpdateCommentValue?this.updateCommentFromSurvey(this.data.getComment(this.getValueName())):this.updateCommentFromSurvey("")},t.prototype.runExpression=function(e){if(this.survey&&e)return this.survey.runExpression(e)},Object.defineProperty(t.prototype,"autoGrowComment",{get:function(){return this.survey&&this.survey.autoGrowComment},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionValue",{get:function(){return this.getPropertyValue("value")},set:function(e){this.setPropertyValue("value",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionComment",{get:function(){return this.getPropertyValue("comment")},set:function(e){this.setPropertyValue("comment",e),this.fireCallback(this.commentChangedCallback)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValueCore()},set:function(e){this.setNewValue(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"valueForSurvey",{get:function(){return this.valueToDataCallback?this.valueToDataCallback(this.value):this.value},enumerable:!1,configurable:!0}),t.prototype.clearValue=function(){void 0!==this.value&&(this.value=void 0),this.comment=void 0},t.prototype.unbindValue=function(){this.clearValue()},t.prototype.createValueCopy=function(){return this.getUnbindValue(this.value)},t.prototype.getUnbindValue=function(e){return this.isValueSurveyElement(e)?e:s.getUnbindValue(e)},t.prototype.isValueSurveyElement=function(e){return!!e&&(Array.isArray(e)?e.length>0&&this.isValueSurveyElement(e[0]):!!e.getType&&!!e.onPropertyChanged)},t.prototype.canClearValueAsInvisible=function(){return(!this.isVisible||!this.isParentVisible)&&((!this.page||!this.page.isStarted)&&(!this.survey||!this.valueName||!this.survey.hasVisibleQuestionByValueName(this.valueName)))},Object.defineProperty(t.prototype,"isParentVisible",{get:function(){for(var e=this.parent;e;){if(!e.isVisible)return!1;e=e.parent}return!0},enumerable:!1,configurable:!0}),t.prototype.clearValueIfInvisible=function(){this.canClearValueAsInvisible()&&this.clearValue()},Object.defineProperty(t.prototype,"displayValue",{get:function(){return this.isLoadingFromJson?"":this.getDisplayValue(!0)},enumerable:!1,configurable:!0}),t.prototype.getDisplayValue=function(e,t){void 0===t&&(t=void 0);var n=this.calcDisplayValue(e,t);return this.displayValueCallback?this.displayValueCallback(n):n},t.prototype.calcDisplayValue=function(e,t){if(void 0===t&&(t=void 0),this.customWidget){var n=this.customWidget.getDisplayValue(this,t);if(n)return n}return t=null==t?this.createValueCopy():t,this.isValueEmpty(t)?this.getDisplayValueEmpty():this.getDisplayValueCore(e,t)},t.prototype.getDisplayValueCore=function(e,t){return t},t.prototype.getDisplayValueEmpty=function(){return""},Object.defineProperty(t.prototype,"defaultValue",{get:function(){return this.getPropertyValue("defaultValue")},set:function(e){this.isValueExpression(e)?this.defaultValueExpression=e.substr(1):(this.setPropertyValue("defaultValue",this.convertDefaultValue(e)),this.updateValueWithDefaults())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultValueExpression",{get:function(){return this.getPropertyValue("defaultValueExpression")},set:function(e){this.setPropertyValue("defaultValueExpression",e),this.updateValueWithDefaults()},enumerable:!1,configurable:!0}),t.prototype.getPlainData=function(e){var t=this;if(void 0===e&&(e={includeEmpty:!0,includeQuestionTypes:!1}),e.includeEmpty||!this.isEmpty()){var n={name:this.name,title:this.locTitle.renderedHtml,value:this.value,displayValue:this.displayValue,isNode:!1,getString:function(e){return"object"==typeof e?JSON.stringify(e):e}};return!0===e.includeQuestionTypes&&(n.questionType=this.getType()),(e.calculations||[]).forEach((function(e){n[e.propertyName]=t[e.propertyName]})),this.hasComment&&(n.isNode=!0,n.data=[{name:0,isComment:!0,title:"Comment",value:a.commentPrefix,displayValue:this.comment,getString:function(e){return"object"==typeof e?JSON.stringify(e):e},isNode:!1}]),n}},Object.defineProperty(t.prototype,"correctAnswer",{get:function(){return this.getPropertyValue("correctAnswer")},set:function(e){this.setPropertyValue("correctAnswer",this.convertDefaultValue(e))},enumerable:!1,configurable:!0}),t.prototype.convertDefaultValue=function(e){return e},Object.defineProperty(t.prototype,"quizQuestionCount",{get:function(){return this.isVisible&&this.hasInput&&!this.isValueEmpty(this.correctAnswer)?this.getQuizQuestionCount():0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"correctAnswerCount",{get:function(){return this.isEmpty()||this.isValueEmpty(this.correctAnswer)?0:this.getCorrectAnswerCount()},enumerable:!1,configurable:!0}),t.prototype.getQuizQuestionCount=function(){return 1},t.prototype.getCorrectAnswerCount=function(){return this.isTwoValueEquals(this.value,this.correctAnswer,!0,!0)?1:0},t.prototype.isAnswerCorrect=function(){return this.correctAnswerCount==this.quizQuestionCount},t.prototype.updateValueWithDefaults=function(){this.isLoadingFromJson||!this.isDesignMode&&this.isDefaultValueEmpty()||(this.isDesignMode||this.isEmpty())&&(this.isEmpty()&&this.isDefaultValueEmpty()||this.survey&&this.survey.isClearValueOnHidden&&!this.isVisible||this.setDefaultValue())},t.prototype.getQuestionFromArray=function(e,t){return null},t.prototype.getDefaultValue=function(){return this.defaultValue},t.prototype.isDefaultValueEmpty=function(){return!this.defaultValueExpression&&this.isValueEmpty(this.defaultValue)},t.prototype.setDefaultValue=function(){var e=this;this.setValueAndRunExpression(this.defaultValueExpression,this.getUnbindValue(this.defaultValue),(function(t){e.value=t}))},t.prototype.isValueExpression=function(e){return!!e&&"string"==typeof e&&e.length>0&&"="==e[0]},t.prototype.setValueAndRunExpression=function(e,t,n,o,r){var i=this;void 0===o&&(o=null),void 0===r&&(r=null);var a=function(e){e instanceof Date&&(e=e.toISOString().slice(0,10)),n(e)};if(e&&this.data){o||(o=this.data.getFilteredValues()),r||(r=this.data.getFilteredProperties());var s=new ke(e);s.canRun&&(s.onRunComplete=function(e){null==e&&(e=i.defaultValue),a(e)},s.run(o,r))}else a(t)},Object.defineProperty(t.prototype,"comment",{get:function(){return this.getQuestionComment()},set:function(e){if(e){var t=e.toString().trim();t!==e&&(e=t)===this.comment&&this.setPropertyValueDirectly("comment",e)}this.comment!=e&&(this.setQuestionComment(e),this.updateCommentElement())},enumerable:!1,configurable:!0}),t.prototype.getQuestionComment=function(){return this.questionComment},t.prototype.setQuestionComment=function(e){this.setNewComment(e)},t.prototype.isEmpty=function(){return this.isValueEmpty(this.value)},Object.defineProperty(t.prototype,"isAnswered",{get:function(){return this.getPropertyValue("isAnswered")},set:function(e){this.setPropertyValue("isAnswered",e)},enumerable:!1,configurable:!0}),t.prototype.updateIsAnswered=function(){this.setPropertyValue("isAnswered",this.getIsAnswered())},t.prototype.getIsAnswered=function(){return!this.isEmpty()},Object.defineProperty(t.prototype,"validators",{get:function(){return this.getPropertyValue("validators")},set:function(e){this.setPropertyValue("validators",e)},enumerable:!1,configurable:!0}),t.prototype.getValidators=function(){return this.validators},t.prototype.getSupportedValidators=function(){for(var e=[],t=this.getType();t;){var n=a.supportedValidators[t];if(n)for(var o=n.length-1;o>=0;o--)e.splice(0,0,n[o]);t=R.findClass(t).parentName}return e},t.prototype.addSupportedValidators=function(e,t){},t.prototype.addConditionObjectsByContext=function(e,t){e.push({name:this.getValueName(),text:this.processedTitle,question:this})},t.prototype.getConditionJson=function(e,t){void 0===e&&(e=null),void 0===t&&(t=null);var n=(new E).toJsonObject(this);return n.type=this.getType(),n},t.prototype.hasErrors=function(e,t){void 0===e&&(e=!0),void 0===t&&(t=null);var n=this.errors.length>0,o=this.checkForErrors(!!t&&!0===t.isOnValueChanged);return e&&(this.survey&&this.survey.beforeSettingQuestionErrors(this,o),this.errors=o),this.updateContainsErrors(),n!=o.length>0&&this.updateQuestionCss(),this.isCollapsed&&t&&e&&o.length>0&&this.expand(),o.length>0},Object.defineProperty(t.prototype,"currentErrorCount",{get:function(){return this.errors.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredText",{get:function(){return null!=this.survey&&this.isRequired?this.survey.requiredText:""},enumerable:!1,configurable:!0}),t.prototype.addError=function(e){if(e){var t=null;t="string"==typeof e||e instanceof String?new ee(e,this.survey):e,this.errors.push(t)}},t.prototype.removeError=function(e){var t=this.errors,n=t.indexOf(e);-1!==n&&t.splice(n,1)},t.prototype.checkForErrors=function(e){var t=new Array;return this.isVisible&&this.canCollectErrors()&&this.collectErrors(t,e),t},t.prototype.canCollectErrors=function(){return!this.isReadOnly},t.prototype.collectErrors=function(e,t){if(this.onCheckForErrors(e,t),!(e.length>0)&&this.canRunValidators(t)){var n=this.runValidators();if(n.length>0){e.length=0;for(var o=0;o<n.length;o++)e.push(n[o])}if(this.survey&&0==e.length){var r=this.fireSurveyValidation();r&&e.push(r)}}},t.prototype.canRunValidators=function(e){return!0},t.prototype.fireSurveyValidation=function(){return this.validateValueCallback?this.validateValueCallback():this.survey?this.survey.validateQuestion(this):null},t.prototype.onCheckForErrors=function(e,t){!t&&this.hasRequiredError()&&e.push(new H(this.requiredErrorText,this))},t.prototype.hasRequiredError=function(){return this.isRequired&&this.isEmpty()},Object.defineProperty(t.prototype,"isRunningValidators",{get:function(){return this.getIsRunningValidators()},enumerable:!1,configurable:!0}),t.prototype.getIsRunningValidators=function(){return this.isRunningValidatorsValue},t.prototype.runValidators=function(){var e=this;return this.validatorRunner&&(this.validatorRunner.onAsyncCompleted=null),this.validatorRunner=new Re,this.isRunningValidatorsValue=!0,this.validatorRunner.onAsyncCompleted=function(t){e.doOnAsyncCompleted(t)},this.validatorRunner.run(this)},t.prototype.doOnAsyncCompleted=function(e){for(var t=0;t<e.length;t++)this.errors.push(e[t]);this.isRunningValidatorsValue=!1,this.raiseOnCompletedAsyncValidators()},t.prototype.raiseOnCompletedAsyncValidators=function(){this.onCompletedAsyncValidators&&!this.isRunningValidators&&(this.onCompletedAsyncValidators(this.getAllErrors().length>0),this.onCompletedAsyncValidators=null)},t.prototype.setNewValue=function(e){var t=this.isAnswered;this.setNewValueInData(e),this.allowNotifyValueChanged&&this.onValueChanged(),this.isAnswered!=t&&this.updateQuestionCss()},t.prototype.isTextValue=function(){return!1},Object.defineProperty(t.prototype,"isSurveyInputTextUpdate",{get:function(){return!!this.survey&&this.survey.isUpdateValueTextOnTyping},enumerable:!1,configurable:!0}),t.prototype.getDataLocNotification=function(){return!!this.isInputTextUpdate&&"text"},Object.defineProperty(t.prototype,"isInputTextUpdate",{get:function(){return this.isSurveyInputTextUpdate&&this.isTextValue()},enumerable:!1,configurable:!0}),t.prototype.setNewValueInData=function(e){e=this.valueToData(e),this.isValueChangedInSurvey||this.setValueCore(e)},t.prototype.getValueCore=function(){return this.questionValue},t.prototype.setValueCore=function(e){this.setQuestionValue(e),null!=this.data&&this.canSetValueToSurvey()&&(e=this.valueForSurvey,this.data.setValue(this.getValueName(),e,this.getDataLocNotification(),this.allowNotifyValueChanged))},t.prototype.canSetValueToSurvey=function(){return!0},t.prototype.valueFromData=function(e){return e},t.prototype.valueToData=function(e){return e},t.prototype.onValueChanged=function(){},t.prototype.setNewComment=function(e){this.questionComment=e,null!=this.data&&this.data.setComment(this.getValueName(),e,!!this.isSurveyInputTextUpdate&&"text")},t.prototype.getValidName=function(e){return e?e.trim().replace(/[\{\}]+/g,""):e},t.prototype.updateValueFromSurvey=function(e){e=this.getUnbindValue(e),this.valueFromDataCallback&&(e=this.valueFromDataCallback(e)),this.setQuestionValue(this.valueFromData(e))},t.prototype.updateCommentFromSurvey=function(e){this.questionComment=e},t.prototype.setQuestionValue=function(e,t){void 0===t&&(t=!0);var n=this.isTwoValueEquals(this.questionValue,e);this.questionValue=e,!n&&this.allowNotifyValueChanged&&this.fireCallback(this.valueChangedCallback),t&&this.updateIsAnswered()},t.prototype.onSurveyValueChanged=function(e){},t.prototype.setVisibleIndex=function(e){return(!this.isVisible||!this.hasTitle&&!a.setQuestionVisibleIndexForHiddenTitle||this.hideNumber&&!a.setQuestionVisibleIndexForHiddenNumber)&&(e=-1),this.setPropertyValue("visibleIndex",e),this.setPropertyValue("no",this.calcNo()),e<0?0:1},t.prototype.removeElement=function(e){return!1},t.prototype.supportGoNextPageAutomatic=function(){return!1},t.prototype.supportGoNextPageError=function(){return!0},t.prototype.clearIncorrectValues=function(){},t.prototype.clearOnDeletingContainer=function(){},t.prototype.clearErrors=function(){this.errors=[]},t.prototype.clearUnusedValues=function(){},t.prototype.onAnyValueChanged=function(e){},t.prototype.checkBindings=function(e,t){if(!this.bindings.isEmpty()&&this.data)for(var n=this.bindings.getPropertiesByValueName(e),o=0;o<n.length;o++)this[n[o]]=t},t.prototype.getComponentName=function(){return Be.Instance.getRendererByQuestion(this)},t.prototype.isDefaultRendering=function(){return!!this.customWidget||"default"===this.renderAs||"default"===this.getComponentName()},t.prototype.getErrorCustomText=function(e,t){return this.survey?this.survey.getErrorCustomText(e,t):e},t.prototype.getValidatorTitle=function(){return null},Object.defineProperty(t.prototype,"validatedValue",{get:function(){return this.value},set:function(e){this.value=e},enumerable:!1,configurable:!0}),t.prototype.getAllValues=function(){return this.data?this.data.getAllValues():null},t.TextPreprocessorValuesMap={title:"processedTitle",require:"requiredText"},t.questionCounter=100,Ft([y({defaultValue:"default"})],t.prototype,"renderAs",void 0),t}(ft);R.addClass("question",["!name",{name:"state",default:"default",choices:["default","collapsed","expanded"]},{name:"visible:switch",default:!0},{name:"useDisplayValuesInTitle:boolean",default:!0,layout:"row"},"visibleIf:condition",{name:"width"},{name:"minWidth",default:a.minWidth},{name:"maxWidth",default:a.maxWidth},{name:"startWithNewLine:boolean",default:!0,layout:"row"},{name:"indent:number",default:0,choices:[0,1,2,3],layout:"row"},{name:"page",isSerializable:!1,visibleIf:function(e){var t=e?e.survey:null;return!t||t.pages.length>1},choices:function(e){var t=e?e.survey:null;return t?t.pages.map((function(e){return{value:e.name,text:e.title}})):[]}},{name:"title:text",serializationProperty:"locTitle",layout:"row"},{name:"titleLocation",default:"default",choices:["default","top","bottom","left","hidden"],layout:"row"},{name:"description:text",serializationProperty:"locDescription",layout:"row"},{name:"descriptionLocation",default:"default",choices:["default","underInput","underTitle"]},{name:"hideNumber:boolean",dependsOn:"titleLocation",visibleIf:function(e){if(!e)return!0;if("hidden"===e.titleLocation)return!1;var t=e?e.parent:null;if(!(!t||"off"!==t.showQuestionNumbers))return!1;var n=e?e.survey:null;return!n||"off"!==n.showQuestionNumbers||!!t&&"onpanel"===t.showQuestionNumbers}},"valueName","enableIf:condition","defaultValue:value",{name:"defaultValueExpression:expression",category:"logic"},"correctAnswer:value","isRequired:switch","requiredIf:condition",{name:"requiredErrorText:text",serializationProperty:"locRequiredErrorText"},"readOnly:switch",{name:"validators:validators",baseClassName:"surveyvalidator",classNamePart:"validator"},{name:"bindings:bindings",serializationProperty:"bindings",visibleIf:function(e){return e.bindings.getNames().length>0}},{name:"renderAs",default:"default",visible:!1}]),R.addAlterNativeClassName("question","questionbase");var zt=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ht=function(e){function t(t){var n=e.call(this,t)||this;return n.generatedVisibleRows=null,n.generatedTotalRow=null,n.filteredRows=null,n.filteredColumns=null,n.columns=n.createColumnValues(),n.rows=n.createItemValues("rows"),n}return zt(t,e),t.prototype.createColumnValues=function(){return this.createItemValues("columns")},t.prototype.getType=function(){return"matrixbase"},Object.defineProperty(t.prototype,"isCompositeQuestion",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showHeader",{get:function(){return this.getPropertyValue("showHeader")},set:function(e){this.setPropertyValue("showHeader",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columns",{get:function(){return this.getPropertyValue("columns")},set:function(e){this.setPropertyValue("columns",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visibleColumns",{get:function(){return this.filteredColumns?this.filteredColumns:this.columns},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rows",{get:function(){return this.getPropertyValue("rows")},set:function(e){var t=this.processRowsOnSet(e);this.setPropertyValue("rows",t),this.filterItems()},enumerable:!1,configurable:!0}),t.prototype.processRowsOnSet=function(e){return e},t.prototype.getVisibleRows=function(){return[]},Object.defineProperty(t.prototype,"visibleRows",{get:function(){return this.getVisibleRows()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rowsVisibleIf",{get:function(){return this.getPropertyValue("rowsVisibleIf","")},set:function(e){this.setPropertyValue("rowsVisibleIf",e),this.filterItems()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columnsVisibleIf",{get:function(){return this.getPropertyValue("columnsVisibleIf","")},set:function(e){this.setPropertyValue("columnsVisibleIf",e),this.filterItems()},enumerable:!1,configurable:!0}),t.prototype.runCondition=function(t,n){e.prototype.runCondition.call(this,t,n),this.runItemsCondition(t,n)},t.prototype.filterItems=function(){return this.areInvisibleElementsShowing?(this.onRowsChanged(),!1):!(this.isLoadingFromJson||!this.data)&&this.runItemsCondition(this.getDataFilteredValues(),this.getDataFilteredProperties())},t.prototype.onColumnsChanged=function(){},t.prototype.onRowsChanged=function(){this.fireCallback(this.visibleRowsChangedCallback)},t.prototype.shouldRunColumnExpression=function(){return!this.survey||!this.survey.areInvisibleElementsShowing},t.prototype.hasRowsAsItems=function(){return!0},t.prototype.runItemsCondition=function(e,t){var n=null;if(this.filteredRows&&!s.isValueEmpty(this.defaultValue)){n=[];for(var o=0;o<this.filteredRows.length;o++)n.push(this.filteredRows[o])}var r=this.hasRowsAsItems()&&this.runConditionsForRows(e,t),i=this.runConditionsForColumns(e,t);return(r=i||r)&&(this.survey&&this.survey.isClearValueOnHidden&&(this.filteredColumns||this.filteredRows)&&this.clearIncorrectValues(),n&&this.restoreNewVisibleRowsValues(n),this.clearGeneratedRows(),i&&this.onColumnsChanged(),this.onRowsChanged()),r},t.prototype.clearGeneratedRows=function(){this.generatedVisibleRows=null},t.prototype.runConditionsForRows=function(e,t){var n=!!this.survey&&this.survey.areInvisibleElementsShowing,o=!n&&this.rowsVisibleIf?new Te(this.rowsVisibleIf):null;this.filteredRows=[];var r=Fe.runConditionsForItems(this.rows,this.filteredRows,o,e,t,!n);return this.filteredRows.length===this.rows.length&&(this.filteredRows=null),r},t.prototype.runConditionsForColumns=function(e,t){var n=!!this.survey&&!this.survey.areInvisibleElementsShowing&&this.columnsVisibleIf?new Te(this.columnsVisibleIf):null;this.filteredColumns=[];var o=Fe.runConditionsForItems(this.columns,this.filteredColumns,n,e,t,this.shouldRunColumnExpression());return this.filteredColumns.length===this.columns.length&&(this.filteredColumns=null),o},t.prototype.clearIncorrectValues=function(){var t=this.value;if(t){var n=null,o=!1,r=this.filteredRows?this.filteredRows:this.rows,i=this.filteredColumns?this.filteredColumns:this.columns;for(var a in t)Fe.getItemByValue(r,a)&&Fe.getItemByValue(i,t[a])?(null==n&&(n={}),n[a]=t[a]):o=!0;o&&(this.value=n),e.prototype.clearIncorrectValues.call(this)}},t.prototype.clearInvisibleValuesInRows=function(){if(!this.isEmpty()){for(var e=this.getUnbindValue(this.value),t=this.rows,n=0;n<t.length;n++){var o=t[n].value;e[o]&&!t[n].isVisible&&delete e[o]}this.isTwoValueEquals(e,this.value)||(this.value=e)}},t.prototype.restoreNewVisibleRowsValues=function(e){var t=this.filteredRows?this.filteredRows:this.rows,n=this.defaultValue,o=this.getUnbindValue(this.value),r=!1;for(var i in n)Fe.getItemByValue(t,i)&&!Fe.getItemByValue(e,i)&&(null==o&&(o={}),o[i]=n[i],r=!0);r&&(this.value=o)},t}(Bt);R.addClass("matrixbase",["columnsVisibleIf:condition","rowsVisibleIf:condition",{name:"showHeader:boolean",default:!0}],void 0,"question");var Qt=function(){},$t=function(e,t){this.name=e,this.returnDisplayValue=t,this.isExists=!1,this.canProcess=!0},Ut=function(){function e(){}return e.prototype.process=function(e,t,n){if(void 0===t&&(t=!1),void 0===n&&(n=!1),this.hasAllValuesOnLastRunValue=!0,!e)return e;if(!this.onProcess)return e;for(var o=this.getItems(e),r=o.length-1;r>=0;r--){var i=o[r],a=this.getName(e.substring(i.start+1,i.end));if(a){var l=new $t(a,t);if(this.onProcess(l),l.isExists){s.isValueEmpty(l.value)&&(this.hasAllValuesOnLastRunValue=!1);var u=s.isValueEmpty(l.value)?"":l.value;n&&(u=encodeURIComponent(u)),e=e.substr(0,i.start)+u+e.substr(i.end+1)}else l.canProcess&&(this.hasAllValuesOnLastRunValue=!1)}}return e},e.prototype.processValue=function(e,t){var n=new $t(e,t);return this.onProcess&&this.onProcess(n),n},Object.defineProperty(e.prototype,"hasAllValuesOnLastRun",{get:function(){return!!this.hasAllValuesOnLastRunValue},enumerable:!1,configurable:!0}),e.prototype.getItems=function(e){for(var t=[],n=e.length,o=-1,r="",i=0;i<n;i++)if("{"==(r=e[i])&&(o=i),"}"==r){if(o>-1){var a=new Qt;a.start=o,a.end=i,t.push(a)}o=-1}return t},e.prototype.getName=function(e){if(e)return e.trim()},e}(),Wt=function(){function e(e){var t=this;this.variableName=e,this.textPreProcessor=new Ut,this.textPreProcessor.onProcess=function(e){t.getProcessedTextValue(e)}}return e.prototype.processValue=function(e,t){return this.textPreProcessor.processValue(e,t)},Object.defineProperty(e.prototype,"survey",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"panel",{get:function(){return null},enumerable:!1,configurable:!0}),e.prototype.getValues=function(){return this.panel?this.panel.getValue():null},e.prototype.getQuestionByName=function(e){return this.panel?this.panel.getQuestionByValueName(e):null},e.prototype.onCustomProcessText=function(e){return!1},e.prototype.getProcessedTextValue=function(e){if(e&&!this.onCustomProcessText(e)){var t=(new te).getFirstName(e.name);if(e.isExists=t==this.variableName,e.canProcess=e.isExists,e.canProcess){e.name=e.name.replace(this.variableName+".","");t=(new te).getFirstName(e.name);var n=this.getQuestionByName(t),o={};if(n)o[t]=e.returnDisplayValue?n.displayValue:n.value;else{var r=this.panel?this.getValues():null;r&&(o[t]=r[t])}e.value=(new te).getValue(e.name,o)}}},e.prototype.processText=function(e,t){e=this.textPreProcessor.process(e,t);var n=this.survey;return n?n.processText(e,t):e},e.prototype.processTextEx=function(e,t){e=this.processText(e,t);var n=this.textPreProcessor.hasAllValuesOnLastRun,o={hasAllValuesOnLastRun:!0,text:e};return this.survey&&(o=this.survey.processTextEx(e,t,!1)),o.hasAllValuesOnLastRun=o.hasAllValuesOnLastRun&&n,o},e}(),Gt=function(){function e(){this.creatorHash={}}return Object.defineProperty(e,"DefaultChoices",{get:function(){return[u.getString("choices_Item")+"1",u.getString("choices_Item")+"2",u.getString("choices_Item")+"3"]},enumerable:!1,configurable:!0}),Object.defineProperty(e,"DefaultColums",{get:function(){var e=u.getString("matrix_column")+" ";return[e+"1",e+"2",e+"3"]},enumerable:!1,configurable:!0}),Object.defineProperty(e,"DefaultRows",{get:function(){var e=u.getString("matrix_row")+" ";return[e+"1",e+"2"]},enumerable:!1,configurable:!0}),Object.defineProperty(e,"DefaultMutlipleTextItems",{get:function(){var e=u.getString("multipletext_itemname");return[e+"1",e+"2"]},enumerable:!1,configurable:!0}),e.prototype.registerQuestion=function(e,t){this.creatorHash[e]=t},e.prototype.unregisterElement=function(e){delete this.creatorHash[e]},e.prototype.clear=function(){this.creatorHash={}},e.prototype.getAllTypes=function(){var e=new Array;for(var t in this.creatorHash)e.push(t);return e.sort()},e.prototype.createQuestion=function(e,t){var n=this.creatorHash[e];return null==n?null:n(t)},e.Instance=new e,e}(),Jt=function(){function e(){this.creatorHash={}}return e.prototype.registerElement=function(e,t){this.creatorHash[e]=t},e.prototype.clear=function(){this.creatorHash={}},e.prototype.unregisterElement=function(e,t){void 0===t&&(t=!1),delete this.creatorHash[e],Gt.Instance.unregisterElement(e),t&&R.removeClass(e)},e.prototype.getAllTypes=function(){var e=Gt.Instance.getAllTypes();for(var t in this.creatorHash)e.push(t);return e.sort()},e.prototype.createElement=function(e,t){var n=this.creatorHash[e];return null==n?Gt.Instance.createQuestion(e,t):n(t)},e.Instance=new e,e}(),Kt=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Xt=function(e){function t(t){var n=e.call(this,t)||this;n.createLocalizableString("format",n);var o=n;return n.registerFunctionOnPropertyValueChanged("expression",(function(){o.expressionRunner&&(o.expressionRunner=new ke(o.expression))})),n}return Kt(t,e),t.prototype.getType=function(){return"expression"},Object.defineProperty(t.prototype,"hasInput",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"format",{get:function(){return this.getLocalizableStringText("format","")},set:function(e){this.setLocalizableStringText("format",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locFormat",{get:function(){return this.getLocalizableString("format")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"expression",{get:function(){return this.getPropertyValue("expression","")},set:function(e){this.setPropertyValue("expression",e)},enumerable:!1,configurable:!0}),t.prototype.locCalculation=function(){this.expressionIsRunning=!0},t.prototype.unlocCalculation=function(){this.expressionIsRunning=!1},t.prototype.runCondition=function(t,n){var o=this;e.prototype.runCondition.call(this,t,n),!this.expression||this.expressionIsRunning||!this.runIfReadOnly&&this.isReadOnly||(this.locCalculation(),this.expressionRunner||(this.expressionRunner=new ke(this.expression)),this.expressionRunner.onRunComplete=function(e){s.isTwoValueEquals(e,o.value)||(o.value=e),o.unlocCalculation()},this.expressionRunner.run(t,n))},t.prototype.canCollectErrors=function(){return!0},t.prototype.hasRequiredError=function(){return!1},Object.defineProperty(t.prototype,"maximumFractionDigits",{get:function(){return this.getPropertyValue("maximumFractionDigits")},set:function(e){e<-1||e>20||this.setPropertyValue("maximumFractionDigits",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minimumFractionDigits",{get:function(){return this.getPropertyValue("minimumFractionDigits")},set:function(e){e<-1||e>20||this.setPropertyValue("minimumFractionDigits",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"runIfReadOnly",{get:function(){return!0===this.runIfReadOnlyValue},set:function(e){this.runIfReadOnlyValue=e},enumerable:!1,configurable:!0}),t.prototype.getDisplayValueCore=function(e,t){var n=this.isValueEmpty(t)?this.defaultValue:t,o="";if(!this.isValueEmpty(n)){var r=this.getValueAsStr(n);o=this.format?this.format.format(r):r}return this.survey&&(o=this.survey.getExpressionDisplayValue(this,n,o)),o},Object.defineProperty(t.prototype,"displayStyle",{get:function(){return this.getPropertyValue("displayStyle")},set:function(e){this.setPropertyValue("displayStyle",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currency",{get:function(){return this.getPropertyValue("currency")},set:function(e){["AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BHD","BIF","BMD","BND","BOB","BOV","BRL","BSD","BTN","BWP","BYN","BZD","CAD","CDF","CHE","CHF","CHW","CLF","CLP","CNY","COP","COU","CRC","CUC","CUP","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ERN","ETB","EUR","FJD","FKP","GBP","GEL","GHS","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","IQD","IRR","ISK","JMD","JOD","JPY","KES","KGS","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRO","MUR","MVR","MWK","MXN","MXV","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SDG","SEK","SGD","SHP","SLL","SOS","SRD","SSP","STD","SVC","SYP","SZL","THB","TJS","TMT","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","USN","UYI","UYU","UZS","VEF","VND","VUV","WST","XAF","XAG","XAU","XBA","XBB","XBC","XBD","XCD","XDR","XOF","XPD","XPF","XPT","XSU","XTS","XUA","XXX","YER","ZAR","ZMW","ZWL"].indexOf(e)<0||this.setPropertyValue("currency",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"useGrouping",{get:function(){return this.getPropertyValue("useGrouping")},set:function(e){this.setPropertyValue("useGrouping",e)},enumerable:!1,configurable:!0}),t.prototype.getValueAsStr=function(e){if("date"==this.displayStyle){var t=new Date(e);if(t&&t.toLocaleDateString)return t.toLocaleDateString()}if("none"!=this.displayStyle&&s.isNumber(e)){var n=this.getLocale();n||(n="en");var o={style:this.displayStyle,currency:this.currency,useGrouping:this.useGrouping};return this.maximumFractionDigits>-1&&(o.maximumFractionDigits=this.maximumFractionDigits),this.minimumFractionDigits>-1&&(o.minimumFractionDigits=this.minimumFractionDigits),e.toLocaleString(n,o)}return e.toString()},t}(Bt);R.addClass("expression",["expression:expression",{name:"format",serializationProperty:"locFormat"},{name:"displayStyle",default:"none",choices:["none","decimal","currency","percent","date"]},{name:"currency",choices:function(){return["AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BHD","BIF","BMD","BND","BOB","BOV","BRL","BSD","BTN","BWP","BYN","BZD","CAD","CDF","CHE","CHF","CHW","CLF","CLP","CNY","COP","COU","CRC","CUC","CUP","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ERN","ETB","EUR","FJD","FKP","GBP","GEL","GHS","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","IQD","IRR","ISK","JMD","JOD","JPY","KES","KGS","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRO","MUR","MVR","MWK","MXN","MXV","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SDG","SEK","SGD","SHP","SLL","SOS","SRD","SSP","STD","SVC","SYP","SZL","THB","TJS","TMT","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","USN","UYI","UYU","UZS","VEF","VND","VUV","WST","XAF","XAG","XAU","XBA","XBB","XBC","XBD","XCD","XDR","XOF","XPD","XPF","XPT","XSU","XTS","XUA","XXX","YER","ZAR","ZMW","ZWL"]},default:"USD"},{name:"maximumFractionDigits:number",default:-1},{name:"minimumFractionDigits:number",default:-1},{name:"useGrouping:boolean",default:!0},{name:"enableIf",visible:!1},{name:"isRequired",visible:!1},{name:"readOnly",visible:!1},{name:"requiredErrorText",visible:!1},{name:"defaultValueExpression",visible:!1},{name:"defaultValue",visible:!1},{name:"correctAnswer",visible:!1},{name:"requiredIf",visible:!1}],(function(){return new Xt("")}),"question"),Gt.Instance.registerQuestion("expression",(function(e){return new Xt(e)}));var Zt=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}();function Yt(e,t,n,o){e.storeOthersAsComment=!!n&&n.storeOthersAsComment,e.choices&&0!=e.choices.length||!e.choicesByUrl.isEmpty||(e.choices=n.choices),e.choicesByUrl.isEmpty||e.choicesByUrl.run(o.getTextProcessor())}var en={dropdown:{properties:["choices","choicesOrder","choicesByUrl","optionsCaption","otherText","choicesVisibleIf"],onCellQuestionUpdate:function(e,t,n,o){Yt(e,0,n,o),e.locOptionsCaption&&e.locOptionsCaption.isEmpty&&!n.locOptionsCaption.isEmpty&&(e.optionsCaption=n.optionsCaption)}},checkbox:{properties:["choices","choicesOrder","choicesByUrl","otherText","choicesVisibleIf","hasSelectAll","hasNone"],onCellQuestionUpdate:function(e,t,n,o){Yt(e,0,n,o),e.colCount=t.colCount>-1?t.colCount:n.columnColCount}},radiogroup:{properties:["choices","choicesOrder","choicesByUrl","otherText","choicesVisibleIf"],onCellQuestionUpdate:function(e,t,n,o){Yt(e,0,n,o),e.colCount=t.colCount>-1?t.colCount:n.columnColCount}},text:{properties:["placeHolder","inputType","maxLength","min","max","step"],onCellQuestionUpdate:function(e,t,n,o){}},comment:{properties:["placeHolder","rows","maxLength"],onCellQuestionUpdate:function(e,t,n,o){}},boolean:{properties:["renderAs","defaultValue"],onCellQuestionUpdate:function(e,t,n,o){e.showTitle=!0,e.renderAs=t.renderAs}},expression:{properties:["expression","displayStyle","currency"],onCellQuestionUpdate:function(e,t,n,o){}},rating:{properties:["rateValues"]}},tn=function(e){function t(t,n){void 0===n&&(n=null);var o=e.call(this)||this;o.colOwnerValue=null,o.indexValue=-1,o._isVisible=!0,o._hasVisibleCell=!0;var r=o;return o.createLocalizableString("totalFormat",o),o.registerFunctionOnPropertyValueChanged("showInMultipleColumns",(function(){r.doShowInMultipleColumnsChanged()})),o.updateTemplateQuestion(),o.name=t,n?o.title=n:o.templateQuestion.locTitle.strChanged(),o}return Zt(t,e),t.getColumnTypes=function(){var e=[];for(var t in en)e.push(t);return e},t.prototype.getOriginalObj=function(){return this.templateQuestion},t.prototype.getClassNameProperty=function(){return"cellType"},t.prototype.getSurvey=function(e){return void 0===e&&(e=!1),this.colOwner?this.colOwner.survey:null},t.prototype.endLoadingFromJson=function(){var t=this;e.prototype.endLoadingFromJson.call(this),this.templateQuestion.endLoadingFromJson(),this.templateQuestion.onGetSurvey=function(){return t.getSurvey()}},t.prototype.getDynamicPropertyName=function(){return"cellType"},t.prototype.getDynamicType=function(){return this.calcCellQuestionType(null)},Object.defineProperty(t.prototype,"colOwner",{get:function(){return this.colOwnerValue},set:function(e){this.colOwnerValue=e,e&&this.updateTemplateQuestion()},enumerable:!1,configurable:!0}),t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.locTitle.strChanged()},t.prototype.addUsedLocales=function(t){e.prototype.addUsedLocales.call(this,t),this.templateQuestion.addUsedLocales(t)},Object.defineProperty(t.prototype,"index",{get:function(){return this.indexValue},enumerable:!1,configurable:!0}),t.prototype.setIndex=function(e){this.indexValue=e},t.prototype.getType=function(){return"matrixdropdowncolumn"},Object.defineProperty(t.prototype,"cellType",{get:function(){return this.getPropertyValue("cellType")},set:function(e){e=e.toLocaleLowerCase(),this.setPropertyValue("cellType",e),this.updateTemplateQuestion(),this.colOwner&&this.colOwner.onColumnCellTypeChanged(this)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"templateQuestion",{get:function(){return this.templateQuestionValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.templateQuestion.name},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return this._isVisible},enumerable:!1,configurable:!0}),t.prototype.setIsVisible=function(e){this._isVisible=e},Object.defineProperty(t.prototype,"hasVisibleCell",{get:function(){return this._hasVisibleCell},set:function(e){this._hasVisibleCell=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.templateQuestion.name},set:function(e){this.templateQuestion.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.templateQuestion.title},set:function(e){this.templateQuestion.title=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTitle",{get:function(){return this.templateQuestion.locTitle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fullTitle",{get:function(){return this.locTitle.textOrHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequired",{get:function(){return this.templateQuestion.isRequired},set:function(e){this.templateQuestion.isRequired=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredText",{get:function(){return this.templateQuestion.requiredText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredErrorText",{get:function(){return this.templateQuestion.requiredErrorText},set:function(e){this.templateQuestion.requiredErrorText=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locRequiredErrorText",{get:function(){return this.templateQuestion.locRequiredErrorText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"readOnly",{get:function(){return this.templateQuestion.readOnly},set:function(e){this.templateQuestion.readOnly=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasOther",{get:function(){return this.templateQuestion.hasOther},set:function(e){this.templateQuestion.hasOther=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visibleIf",{get:function(){return this.templateQuestion.visibleIf},set:function(e){this.templateQuestion.visibleIf=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"enableIf",{get:function(){return this.templateQuestion.enableIf},set:function(e){this.templateQuestion.enableIf=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredIf",{get:function(){return this.templateQuestion.requiredIf},set:function(e){this.templateQuestion.requiredIf=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isUnique",{get:function(){return this.getPropertyValue("isUnique")},set:function(e){this.setPropertyValue("isUnique",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showInMultipleColumns",{get:function(){return this.getPropertyValue("showInMultipleColumns",!1)},set:function(e){this.setPropertyValue("showInMultipleColumns",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isSupportMultipleColumns",{get:function(){return["checkbox","radiogroup"].indexOf(this.cellType)>-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowInMultipleColumns",{get:function(){return this.showInMultipleColumns&&this.isSupportMultipleColumns},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"validators",{get:function(){return this.templateQuestion.validators},set:function(e){this.templateQuestion.validators=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalType",{get:function(){return this.getPropertyValue("totalType")},set:function(e){this.setPropertyValue("totalType",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalExpression",{get:function(){return this.getPropertyValue("totalExpression")},set:function(e){this.setPropertyValue("totalExpression",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTotal",{get:function(){return"none"!=this.totalType||!!this.totalExpression},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalFormat",{get:function(){return this.getLocalizableStringText("totalFormat","")},set:function(e){this.setLocalizableStringText("totalFormat",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTotalFormat",{get:function(){return this.getLocalizableString("totalFormat")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderAs",{get:function(){return this.getPropertyValue("renderAs")},set:function(e){this.setPropertyValue("renderAs",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalMaximumFractionDigits",{get:function(){return this.getPropertyValue("totalMaximumFractionDigits")},set:function(e){e<-1||e>20||this.setPropertyValue("totalMaximumFractionDigits",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalMinimumFractionDigits",{get:function(){return this.getPropertyValue("totalMinimumFractionDigits")},set:function(e){e<-1||e>20||this.setPropertyValue("totalMinimumFractionDigits",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalDisplayStyle",{get:function(){return this.getPropertyValue("totalDisplayStyle")},set:function(e){this.setPropertyValue("totalDisplayStyle",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalCurrency",{get:function(){return this.getPropertyValue("totalCurrency")},set:function(e){["AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BHD","BIF","BMD","BND","BOB","BOV","BRL","BSD","BTN","BWP","BYN","BZD","CAD","CDF","CHE","CHF","CHW","CLF","CLP","CNY","COP","COU","CRC","CUC","CUP","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ERN","ETB","EUR","FJD","FKP","GBP","GEL","GHS","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","IQD","IRR","ISK","JMD","JOD","JPY","KES","KGS","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRO","MUR","MVR","MWK","MXN","MXV","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SDG","SEK","SGD","SHP","SLL","SOS","SRD","SSP","STD","SVC","SYP","SZL","THB","TJS","TMT","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","USN","UYI","UYU","UZS","VEF","VND","VUV","WST","XAF","XAG","XAU","XBA","XBB","XBC","XBD","XCD","XDR","XOF","XPD","XPF","XPT","XSU","XTS","XUA","XXX","YER","ZAR","ZMW","ZWL"].indexOf(e)<0||this.setPropertyValue("totalCurrency",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minWidth",{get:function(){return this.getPropertyValue("minWidth","")},set:function(e){this.setPropertyValue("minWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this.getPropertyValue("width","")},set:function(e){this.setPropertyValue("width",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"colCount",{get:function(){return this.getPropertyValue("colCount")},set:function(e){e<-1||e>4||this.setPropertyValue("colCount",e)},enumerable:!1,configurable:!0}),t.prototype.getLocale=function(){return this.colOwner?this.colOwner.getLocale():""},t.prototype.getMarkdownHtml=function(e,t){return this.colOwner?this.colOwner.getMarkdownHtml(e,t):null},t.prototype.getRenderer=function(e){return this.colOwner?this.colOwner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.colOwner?this.colOwner.getRendererContext(e):e},t.prototype.getProcessedText=function(e){return this.colOwner?this.colOwner.getProcessedText(e):e},t.prototype.createCellQuestion=function(e){var t=this.calcCellQuestionType(e),n=this.createNewQuestion(t);return this.callOnCellQuestionUpdate(n,e),n},t.prototype.updateCellQuestion=function(e,t,n){void 0===n&&(n=null),this.setQuestionProperties(e,n),this.callOnCellQuestionUpdate(e,t)},t.prototype.callOnCellQuestionUpdate=function(e,t){var n=e.getType(),o=en[n];o&&o.onCellQuestionUpdate&&o.onCellQuestionUpdate(e,this,this.colOwner,t)},t.prototype.defaultCellTypeChanged=function(){this.updateTemplateQuestion()},t.prototype.calcCellQuestionType=function(e){var t=this.getDefaultCellQuestionType();return e&&this.colOwner&&(t=this.colOwner.getCustomCellType(this,e,t)),t},t.prototype.getDefaultCellQuestionType=function(){return"default"!==this.cellType?this.cellType:this.colOwner?this.colOwner.getCellType():a.matrixDefaultCellType},t.prototype.updateTemplateQuestion=function(){var e=this,t=this.templateQuestion?this.templateQuestion.getType():"",n=this.calcCellQuestionType(null);n!==t&&(this.templateQuestion&&this.removeProperties(t),this.templateQuestionValue=this.createNewQuestion(n),this.templateQuestion.locOwner=this,this.addProperties(n),this.templateQuestion.onPropertyChanged.add((function(t,n){e.propertyValueChanged(n.name,n.oldValue,n.newValue)})),this.templateQuestion.onItemValuePropertyChanged.add((function(t,n){e.doItemValuePropertyChanged(n.propertyName,n.obj,n.name,n.newValue,n.oldValue)})),this.templateQuestion.isContentElement=!0,this.isLoadingFromJson||(this.templateQuestion.onGetSurvey=function(){return e.getSurvey()}),this.templateQuestion.locTitle.strChanged())},t.prototype.createNewQuestion=function(e){var t=R.createClass(e);return t||(t=R.createClass("text")),t.loadingOwner=this,t.isEditableTemplateElement=!0,this.setQuestionProperties(t),t},t.prototype.setQuestionProperties=function(e,t){if(void 0===t&&(t=null),this.templateQuestion){var n=(new E).toJsonObject(this.templateQuestion,!0);t&&t(n),n.type=e.getType(),(new E).toObject(n,e)}},t.prototype.propertyValueChanged=function(t,n,o){e.prototype.propertyValueChanged.call(this,t,n,o),R.hasOriginalProperty(this,t)&&(null==this.colOwner||this.isLoadingFromJson||this.colOwner.onColumnPropertyChanged(this,t,o))},t.prototype.doItemValuePropertyChanged=function(e,t,n,o,r){R.hasOriginalProperty(t,n)&&(null==this.colOwner||this.isLoadingFromJson||this.colOwner.onColumnItemValuePropertyChanged(this,e,t,n,o,r))},t.prototype.doShowInMultipleColumnsChanged=function(){null==this.colOwner||this.isLoadingFromJson||this.colOwner.onShowInMultipleColumnsChanged(this)},t.prototype.getProperties=function(e){return R.getDynamicPropertiesByObj(this,e)},t.prototype.removeProperties=function(e){for(var t=this.getProperties(e),n=0;n<t.length;n++){var o=t[n];delete this[o.name],o.serializationProperty&&delete this[o.serializationProperty]}},t.prototype.addProperties=function(e){for(var t=this.templateQuestion,n=this.getProperties(e),o=0;o<n.length;o++){var r=n[o];this.addProperty(t,r.name,!1),r.serializationProperty&&this.addProperty(t,r.serializationProperty,!0)}},t.prototype.addProperty=function(e,t,n){var o={configurable:!0,get:function(){return e[t]}};n||(o.set=function(n){e[t]=n}),Object.defineProperty(this,t,o)},t}(L);R.addClass("matrixdropdowncolumn",[{name:"!name",isUnique:!0},{name:"title",serializationProperty:"locTitle"},{name:"cellType",default:"default",choices:function(){var e=tn.getColumnTypes();return e.splice(0,0,"default"),e}},{name:"colCount",default:-1,choices:[-1,0,1,2,3,4]},"isRequired:boolean","isUnique:boolean",{name:"requiredErrorText:text",serializationProperty:"locRequiredErrorText"},"readOnly:boolean","minWidth","width","visibleIf:condition","enableIf:condition","requiredIf:condition",{name:"showInMultipleColumns:boolean",dependsOn:"cellType",visibleIf:function(e){return!!e&&e.isSupportMultipleColumns}},{name:"validators:validators",baseClassName:"surveyvalidator",classNamePart:"validator"},{name:"totalType",default:"none",choices:["none","sum","count","min","max","avg"]},"totalExpression:expression",{name:"totalFormat",serializationProperty:"locTotalFormat"},{name:"totalDisplayStyle",default:"none",choices:["none","decimal","currency","percent"]},{name:"totalCurrency",choices:function(){return["AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BHD","BIF","BMD","BND","BOB","BOV","BRL","BSD","BTN","BWP","BYN","BZD","CAD","CDF","CHE","CHF","CHW","CLF","CLP","CNY","COP","COU","CRC","CUC","CUP","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ERN","ETB","EUR","FJD","FKP","GBP","GEL","GHS","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","IQD","IRR","ISK","JMD","JOD","JPY","KES","KGS","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRO","MUR","MVR","MWK","MXN","MXV","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SDG","SEK","SGD","SHP","SLL","SOS","SRD","SSP","STD","SVC","SYP","SZL","THB","TJS","TMT","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","USN","UYI","UYU","UZS","VEF","VND","VUV","WST","XAF","XAG","XAU","XBA","XBB","XBC","XBD","XCD","XDR","XOF","XPD","XPF","XPT","XSU","XTS","XUA","XXX","YER","ZAR","ZMW","ZWL"]},default:"USD"},{name:"totalMaximumFractionDigits:number",default:-1},{name:"totalMinimumFractionDigits:number",default:-1},{name:"renderAs",default:"default",visible:!1}],(function(){return new tn("")}));var nn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),on=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},rn=function(){function e(){this.minWidth="",this.width="",this.colSpans=1,this.isActionsCell=!1,this.className="",this.isDragHandlerCell=!1,this.idValue=e.counter++}return Object.defineProperty(e.prototype,"hasQuestion",{get:function(){return!!this.question},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasTitle",{get:function(){return!!this.locTitle},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasPanel",{get:function(){return!!this.panel},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this.idValue},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showErrorOnTop",{get:function(){return this.showErrorOnCore("top")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showErrorOnBottom",{get:function(){return this.showErrorOnCore("bottom")},enumerable:!1,configurable:!0}),e.prototype.showErrorOnCore=function(e){return this.getShowErrorLocation()==e&&(!this.isChoice||this.isFirstChoice)},e.prototype.getShowErrorLocation=function(){return this.hasQuestion?this.question.survey.questionErrorLocation:""},Object.defineProperty(e.prototype,"item",{get:function(){return this.itemValue},set:function(e){this.itemValue=e,e&&(e.hideCaption=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isChoice",{get:function(){return!!this.item},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"choiceValue",{get:function(){return this.isChoice?this.item.value:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isCheckbox",{get:function(){return this.isChoice&&"checkbox"==this.question.getType()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isFirstChoice",{get:function(){return 0===this.choiceIndex},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"css",{get:function(){return(new ze).append(this.className).append(this.question.cssError,this.question.errors.length>0).toString()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"headers",{get:function(){return this.cell&&this.cell.column&&this.cell.column.isShowInMultipleColumns?this.item.locText.renderedHtml:this.question&&this.question.isVisible?this.question.locTitle.renderedHtml:this.hasTitle&&this.locTitle.renderedHtml||""},enumerable:!1,configurable:!0}),e.prototype.calculateFinalClassName=function(e){var t=this.cell.question.cssClasses,n=(new ze).append(t.itemValue,!!t).append(t.asCell,!!t);return n.append(e.cell,n.isEmpty()&&!!e).append(t.hasError,this.question.errors.length>0).append(e.choiceCell,this.isChoice).toString()},e.counter=1,e}(),an=function(e){function t(n,o){void 0===o&&(o=!1);var r=e.call(this)||this;return r.cssClasses=n,r.isDetailRow=o,r.cells=[],r.onCreating(),r.idValue=t.counter++,r}return nn(t,e),t.prototype.onCreating=function(){},Object.defineProperty(t.prototype,"id",{get:function(){return this.idValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){return this.row?{"data-sv-drop-target-matrix-row":this.row.id}:{}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"className",{get:function(){return(new ze).append(this.cssClasses.row).append(this.cssClasses.detailRow,this.isDetailRow).append(this.cssClasses.dragDropGhostPositionTop,"top"===this.ghostPosition).append(this.cssClasses.dragDropGhostPositionBottom,"bottom"===this.ghostPosition).append(this.cssClasses.rowAdditional,this.isAdditionalClasses).toString()},enumerable:!1,configurable:!0}),t.counter=1,on([y({defaultValue:null})],t.prototype,"ghostPosition",void 0),on([y({defaultValue:!1})],t.prototype,"isAdditionalClasses",void 0),t}(L),sn=function(e){function t(t){var n=e.call(this)||this;return n.matrix=t,n.hasActionCellInRowsValues={},n.createNewArray("rows"),n.build(),n}return nn(t,e),Object.defineProperty(t.prototype,"showTable",{get:function(){return this.getPropertyValue("showTable",!0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showHeader",{get:function(){return this.getPropertyValue("showHeader")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showAddRowOnTop",{get:function(){return this.getPropertyValue("showAddRowOnTop",!1)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showAddRowOnBottom",{get:function(){return this.getPropertyValue("showAddRowOnBottom",!1)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showFooter",{get:function(){return this.matrix.hasFooter&&this.matrix.isColumnLayoutHorizontal},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasFooter",{get:function(){return!!this.footerRow},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasRemoveRows",{get:function(){return this.hasRemoveRowsValue},enumerable:!1,configurable:!0}),t.prototype.isRequireReset=function(){return this.hasRemoveRows!=this.matrix.canRemoveRows||!this.matrix.isColumnLayoutHorizontal},Object.defineProperty(t.prototype,"headerRow",{get:function(){return this.headerRowValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"footerRow",{get:function(){return this.footerRowValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rows",{get:function(){return this.getPropertyValue("rows")},enumerable:!1,configurable:!0}),t.prototype.build=function(){this.hasRemoveRowsValue=this.matrix.canRemoveRows;this.matrix.visibleRows;this.cssClasses=this.matrix.cssClasses,this.buildRowsActions(),this.buildHeader(),this.buildRows(),this.buildFooter(),this.updateShowTableAndAddRow()},t.prototype.updateShowTableAndAddRow=function(){var e=this.rows.length>0||this.matrix.isDesignMode||!this.matrix.getShowColumnsIfEmpty();this.setPropertyValue("showTable",e);var t=this.matrix.canAddRow&&e,n=t,o=t;n&&(n="default"===this.matrix.getAddRowLocation()?"vertical"===this.matrix.columnLayout:"bottom"!==this.matrix.getAddRowLocation()),o&&"topBottom"!==this.matrix.getAddRowLocation()&&(o=!n),this.setPropertyValue("showAddRowOnTop",n),this.setPropertyValue("showAddRowOnBottom",o)},t.prototype.onAddedRow=function(){if(!(this.getRenderedDataRowCount()>=this.matrix.visibleRows.length)){var e=this.matrix.visibleRows[this.matrix.visibleRows.length-1];this.rowsActions.push(this.buildRowActions(e)),this.addHorizontalRow(this.rows,e,1==this.matrix.visibleRows.length&&!this.matrix.showHeader),this.updateShowTableAndAddRow()}},t.prototype.getRenderedDataRowCount=function(){for(var e=0,t=0;t<this.rows.length;t++)this.rows[t].isDetailRow||e++;return e},t.prototype.onRemovedRow=function(e){var t=this.getRenderedRowIndex(e);if(!(t<0)){this.rowsActions.splice(t,1);var n=1;t<this.rows.length-1&&this.rows[t+1].isDetailRow&&n++,this.rows.splice(t,n),this.updateShowTableAndAddRow()}},t.prototype.onDetailPanelChangeVisibility=function(e,t){var n=this.getRenderedRowIndex(e);if(!(n<0)){var o=n<this.rows.length-1&&this.rows[n+1].isDetailRow?n+1:-1;if(!(t&&o>-1||!t&&o<0))if(t){var r=this.createDetailPanelRow(e,this.rows[n]);this.rows.splice(n+1,0,r)}else this.rows.splice(o,1)}},t.prototype.getRenderedRowIndex=function(e){for(var t=0;t<this.rows.length;t++)if(this.rows[t].row==e)return t;return-1},t.prototype.buildRowsActions=function(){this.rowsActions=[];for(var e=this.matrix.visibleRows,t=0;t<e.length;t++)this.rowsActions.push(this.buildRowActions(e[t]))},t.prototype.buildHeader=function(){var e=this.matrix.isColumnLayoutHorizontal&&this.matrix.showHeader||this.matrix.hasRowText&&!this.matrix.isColumnLayoutHorizontal;if(this.setPropertyValue("showHeader",e),e){if(this.headerRowValue=new an(this.cssClasses),this.matrix.allowRowsDragAndDrop&&this.headerRow.cells.push(this.createHeaderCell(null)),this.hasActionCellInRows("start")&&this.headerRow.cells.push(this.createHeaderCell(null)),this.matrix.hasRowText&&this.matrix.showHeader&&this.headerRow.cells.push(this.createHeaderCell(null)),this.matrix.isColumnLayoutHorizontal)for(var t=0;t<this.matrix.visibleColumns.length;t++){var n=this.matrix.visibleColumns[t];n.hasVisibleCell&&(n.isShowInMultipleColumns?this.createMutlipleColumnsHeader(n):this.headerRow.cells.push(this.createHeaderCell(n)))}else{var o=this.matrix.visibleRows;for(t=0;t<o.length;t++)this.headerRow.cells.push(this.createTextCell(o[t].locText));this.matrix.hasFooter&&this.headerRow.cells.push(this.createTextCell(this.matrix.getFooterText()))}this.hasActionCellInRows("end")&&this.headerRow.cells.push(this.createHeaderCell(null))}},t.prototype.buildFooter=function(){if(this.showFooter){this.footerRowValue=new an(this.cssClasses),this.matrix.allowRowsDragAndDrop&&this.footerRow.cells.push(this.createHeaderCell(null)),this.hasActionCellInRows("start")&&this.footerRow.cells.push(this.createHeaderCell(null)),this.matrix.hasRowText&&this.footerRow.cells.push(this.createTextCell(this.matrix.getFooterText()));for(var e=this.matrix.visibleTotalRow.cells,t=0;t<e.length;t++){var n=e[t];n.column.hasVisibleCell&&(n.column.isShowInMultipleColumns?this.createMutlipleColumnsFooter(this.footerRow,n):this.footerRow.cells.push(this.createEditCell(n)))}this.hasActionCellInRows("end")&&this.footerRow.cells.push(this.createHeaderCell(null))}},t.prototype.buildRows=function(){var e=this.matrix.isColumnLayoutHorizontal?this.buildHorizontalRows():this.buildVerticalRows();this.setPropertyValue("rows",e)},t.prototype.hasActionCellInRows=function(e){if(void 0===this.hasActionCellInRowsValues[e]){var t=this.matrix.visibleRows;this.hasActionCellInRowsValues[e]=!1;for(var n=0;n<t.length;n++)if(!this.isValueEmpty(this.getRowActions(n,e))){this.hasActionCellInRowsValues[e]=!0;break}}return this.hasActionCellInRowsValues[e]},t.prototype.canRemoveRow=function(e){return this.matrix.canRemoveRow(e)},t.prototype.buildHorizontalRows=function(){for(var e=this.matrix.visibleRows,t=[],n=0;n<e.length;n++)this.addHorizontalRow(t,e[n],0==n&&!this.matrix.showHeader);return t},t.prototype.addHorizontalRow=function(e,t,n){var o=this.createHorizontalRow(t,n);o.row=t,e.push(o),t.isDetailPanelShowing&&e.push(this.createDetailPanelRow(t,o))},t.prototype.getRowDragCell=function(e){var t=new rn;return t.isDragHandlerCell=!0,t.className=this.cssClasses.actionsCell,t.row=this.matrix.visibleRows[e],t},t.prototype.getRowActionsCell=function(e,t){var n=this.getRowActions(e,t);if(!this.isValueEmpty(n)){var o=new rn,r=this.matrix.allowAdaptiveActions?new ct:new lt;r.setItems(n);var i=new Fe(r);return o.item=i,o.isActionsCell=!0,o.className=this.cssClasses.actionsCell,o.row=this.matrix.visibleRows[e],o}return null},t.prototype.getRowActions=function(e,t){var n=this.rowsActions[e];return Array.isArray(n)?n.filter((function(e){return e.location||(e.location="start"),e.location===t})):[]},t.prototype.buildRowActions=function(e){var t=[];return this.setDefaultRowActions(e,t),this.matrix.survey&&(t=this.matrix.survey.getUpdatedMatrixRowActions(this.matrix,e,t)),t},t.prototype.setDefaultRowActions=function(e,t){this.hasRemoveRows&&this.canRemoveRow(e)&&t.push(new $e({id:"remove-row",location:"end",enabled:!this.matrix.isInputReadOnly,component:"sv-matrix-remove-button",data:{row:e,question:this.matrix}})),e.hasPanel&&t.push(new $e({id:"show-detail",title:u.getString("editText"),showTitle:!1,location:"start",component:"sv-matrix-detail-button",data:{row:e,question:this.matrix}}))},t.prototype.createHorizontalRow=function(e,t){var n=new an(this.cssClasses);if(this.matrix.allowRowsDragAndDrop){var o=this.matrix.visibleRows.indexOf(e);n.cells.push(this.getRowDragCell(o))}(this.addRowActionsCell(e,n,"start"),this.matrix.hasRowText)&&((a=this.createTextCell(e.locText)).row=e,n.cells.push(a),t&&this.setHeaderCellWidth(null,a),a.className=(new ze).append(a.className).append(this.cssClasses.detailRowText,e.hasPanel).toString());for(var r=0;r<e.cells.length;r++){var i=e.cells[r];if(i.column.hasVisibleCell)if(i.column.isShowInMultipleColumns)this.createMutlipleEditCells(n,i);else{var a=this.createEditCell(i);n.cells.push(a),t&&this.setHeaderCellWidth(i.column,a)}}return this.addRowActionsCell(e,n,"end"),n},t.prototype.addRowActionsCell=function(e,t,n){var o=this.matrix.visibleRows.indexOf(e);if(this.hasActionCellInRows(n)){var r=this.getRowActionsCell(o,n);if(r)t.cells.push(r);else{var i=new rn;i.isEmpty=!0,t.cells.push(i)}}},t.prototype.createDetailPanelRow=function(e,t){var n=new an(this.cssClasses,!0);n.row=e;var o=new rn;this.matrix.hasRowText&&(o.colSpans=2),o.isEmpty=!0,n.cells.push(o);var r=null;this.hasActionCellInRows("end")&&((r=new rn).isEmpty=!0);var i=new rn;return i.panel=e.detailPanel,i.colSpans=t.cells.length-o.colSpans-(r?r.colSpans:0),i.className=this.cssClasses.detailPanelCell,n.cells.push(i),r&&n.cells.push(r),"function"==typeof this.matrix.onCreateDetailPanelRenderedRowCallback&&this.matrix.onCreateDetailPanelRenderedRowCallback(n),n},t.prototype.buildVerticalRows=function(){for(var e=this.matrix.columns,t=[],n=0;n<e.length;n++){var o=e[n];o.isVisible&&o.hasVisibleCell&&(o.isShowInMultipleColumns?this.createMutlipleVerticalRows(t,o,n):t.push(this.createVerticalRow(o,n)))}return this.hasActionCellInRows("end")&&t.push(this.createEndVerticalActionRow()),t},t.prototype.createMutlipleVerticalRows=function(e,t,n){var o=this.getMultipleColumnChoices(t);if(o)for(var r=0;r<o.length;r++)e.push(this.createVerticalRow(t,n,o[r],r))},t.prototype.createVerticalRow=function(e,t,n,o){void 0===n&&(n=null),void 0===o&&(o=-1);var r=new an(this.cssClasses);if(this.matrix.showHeader){var i=n?n.locText:e.locTitle,a=this.createTextCell(i);a.column=e,n||this.setRequriedToHeaderCell(e,a),r.cells.push(a)}for(var s=this.matrix.visibleRows,l=0;l<s.length;l++){var u=n,c=o>=0?o:l,p=s[l].cells[t],d=n?p.question.visibleChoices:void 0;d&&c<d.length&&(u=d[c]);var h=this.createEditCell(p,u);h.item=u,h.choiceIndex=c,r.cells.push(h)}return this.matrix.hasTotal&&r.cells.push(this.createEditCell(this.matrix.visibleTotalRow.cells[t])),r},t.prototype.createEndVerticalActionRow=function(){var e=new an(this.cssClasses);this.matrix.showHeader&&e.cells.push(this.createEmptyCell());for(var t=this.matrix.visibleRows,n=0;n<t.length;n++)e.cells.push(this.getRowActionsCell(n,"end"));return this.matrix.hasTotal&&e.cells.push(this.createEmptyCell()),e},t.prototype.createMutlipleEditCells=function(e,t,n){void 0===n&&(n=!1);var o=n?this.getMultipleColumnChoices(t.column):t.question.visibleChoices;if(o)for(var r=0;r<o.length;r++){var i=this.createEditCell(t,n?void 0:o[r]);n||(i.choiceIndex=r),e.cells.push(i)}},t.prototype.createEditCell=function(e,t){void 0===t&&(t=void 0);var n=new rn;return n.cell=e,n.row=e.row,n.question=e.question,n.matrix=this.matrix,n.item=t,n.className=n.calculateFinalClassName(this.cssClasses),n},t.prototype.createMutlipleColumnsFooter=function(e,t){this.createMutlipleEditCells(e,t,!0)},t.prototype.createMutlipleColumnsHeader=function(e){var t=this.getMultipleColumnChoices(e);if(t)for(var n=0;n<t.length;n++){var o=this.createTextCell(t[n].locText);this.setHeaderCell(e,o),this.headerRow.cells.push(o)}},t.prototype.getMultipleColumnChoices=function(e){var t=e.templateQuestion.choices;return t&&Array.isArray(t)&&0==t.length?this.matrix.choices:(t=e.templateQuestion.visibleChoices)&&Array.isArray(t)?t:null},t.prototype.createHeaderCell=function(e){var t=this.createTextCell(e?e.locTitle:null);return t.column=e,this.setHeaderCell(e,t),this.cssClasses.headerCell&&(t.className=this.cssClasses.headerCell),t},t.prototype.setHeaderCell=function(e,t){this.setHeaderCellWidth(e,t),this.setRequriedToHeaderCell(e,t)},t.prototype.setHeaderCellWidth=function(e,t){t.minWidth=null!=e?this.matrix.getColumnWidth(e):"",t.width=null!=e?e.width:this.matrix.getRowTitleWidth()},t.prototype.setRequriedToHeaderCell=function(e,t){e&&e.isRequired&&this.matrix.survey&&(t.requiredText=this.matrix.survey.requiredText)},t.prototype.createRemoveRowCell=function(e){var t=new rn;return t.row=e,t.isRemoveRow=this.canRemoveRow(e),this.cssClasses.cell&&(t.className=this.cssClasses.cell),t},t.prototype.createTextCell=function(e){var t=new rn;return t.locTitle=e,this.cssClasses.cell&&(t.className=this.cssClasses.cell),t},t.prototype.createEmptyCell=function(){var e=this.createTextCell(null);return e.isEmpty=!0,e},t}(L),ln=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),un=function(){function e(e,t,n){this.column=e,this.row=t,this.data=n,this.questionValue=this.createQuestion(e,t,n),this.questionValue.updateCustomWidget()}return e.prototype.locStrsChanged=function(){this.question.locStrsChanged()},e.prototype.createQuestion=function(e,t,n){var o=n.createQuestion(this.row,this.column);return o.validateValueCallback=function(){return n.validateCell(t,e.name,t.value)},C.getProperties(e.getType()).forEach((function(t){var n=t.name;void 0!==e[n]&&(o[n]=e[n])})),o},Object.defineProperty(e.prototype,"question",{get:function(){return this.questionValue},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this.question.value},set:function(e){this.question.value=e},enumerable:!1,configurable:!0}),e.prototype.runCondition=function(e,t){this.question.runCondition(e,t)},e}(),cn=function(e){function t(t,n,o){var r=e.call(this,t,n,o)||this;return r.column=t,r.row=n,r.data=o,r.updateCellQuestion(),r}return ln(t,e),t.prototype.createQuestion=function(e,t,n){var o=R.createClass("expression");return o.setSurveyImpl(t),o},t.prototype.locStrsChanged=function(){this.updateCellQuestion(),e.prototype.locStrsChanged.call(this)},t.prototype.updateCellQuestion=function(){this.question.locCalculation(),this.column.updateCellQuestion(this.question,null,(function(e){delete e.defaultValue})),this.question.expression=this.getTotalExpression(),this.question.format=this.column.totalFormat,this.question.currency=this.column.totalCurrency,this.question.displayStyle=this.column.totalDisplayStyle,this.question.maximumFractionDigits=this.column.totalMaximumFractionDigits,this.question.minimumFractionDigits=this.column.totalMinimumFractionDigits,this.question.unlocCalculation(),this.question.runIfReadOnly=!0},t.prototype.getTotalExpression=function(){if(this.column.totalExpression)return this.column.totalExpression;if("none"==this.column.totalType)return"";var e=this.column.totalType+"InArray";return ne.Instance.hasFunction(e)?e+"({self}, '"+this.column.name+"')":""},t}(un),pn=function(e){function t(t,n){var o=e.call(this,n)||this;return o.row=t,o.variableName=n,o}return ln(t,e),Object.defineProperty(t.prototype,"survey",{get:function(){return this.row.getSurvey()},enumerable:!1,configurable:!0}),t.prototype.getValues=function(){return this.row.value},t.prototype.getQuestionByName=function(e){return this.row.getQuestionByName(e)},t.prototype.onCustomProcessText=function(e){return e.name==dn.IndexVariableName?(e.isExists=!0,e.value=this.row.rowIndex,!0):e.name==dn.RowValueVariableName&&(e.isExists=!0,e.value=this.row.rowName,!0)},t}(Wt),dn=function(){function e(t,n){var o=this;this.isSettingValue=!1,this.detailPanelValue=null,this.cells=[],this.isCreatingDetailPanel=!1,this.data=t,this.subscribeToChanges(n),this.textPreProcessor=new pn(this,e.RowVariableName),this.showHideDetailPanelClick=function(){o.showHideDetailPanel()},this.idValue=e.getId()}return e.getId=function(){return"srow_"+e.idCounter++},Object.defineProperty(e.prototype,"id",{get:function(){return this.idValue},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rowName",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"text",{get:function(){return this.rowName},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){for(var e={},t=this.questions,n=0;n<t.length;n++){var o=t[n];o.isEmpty()||(e[o.getValueName()]=o.value),o.comment&&this.getSurvey()&&this.getSurvey().storeOthersAsComment&&(e[o.getValueName()+a.commentPrefix]=o.comment)}return e},set:function(e){this.isSettingValue=!0,this.subscribeToChanges(e);for(var t=this.questions,n=0;n<t.length;n++){var o=t[n],r=this.getCellValue(e,o.getValueName()),i=o.comment,s=e?e[o.getValueName()+a.commentPrefix]:"";null==s&&(s=""),o.updateValueFromSurvey(r),(s||this.isTwoValueEquals(i,o.comment))&&o.updateCommentFromSurvey(s),o.onSurveyValueChanged(r)}this.isSettingValue=!1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"locText",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasPanel",{get:function(){return!!this.data&&this.data.hasDetailPanel(this)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"detailPanel",{get:function(){return this.detailPanelValue},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"detailPanelId",{get:function(){return this.detailPanel?this.detailPanel.id:""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isDetailPanelShowing",{get:function(){return!!this.data&&this.data.getIsDetailPanelShowing(this)},enumerable:!1,configurable:!0}),e.prototype.setIsDetailPanelShowing=function(e){this.data&&this.data.setIsDetailPanelShowing(this,e),this.onDetailPanelShowingChanged&&this.onDetailPanelShowingChanged()},e.prototype.showHideDetailPanel=function(){this.isDetailPanelShowing?this.hideDetailPanel():this.showDetailPanel()},e.prototype.showDetailPanel=function(){this.ensureDetailPanel(),this.detailPanelValue&&this.setIsDetailPanelShowing(!0)},e.prototype.hideDetailPanel=function(e){void 0===e&&(e=!1),this.setIsDetailPanelShowing(!1),e&&(this.detailPanelValue=null)},e.prototype.ensureDetailPanel=function(){if(!this.isCreatingDetailPanel&&!this.detailPanelValue&&this.hasPanel&&this.data){this.isCreatingDetailPanel=!0,this.detailPanelValue=this.data.createRowDetailPanel(this);var e=this.detailPanelValue.questions,t=this.data.getRowValue(this.data.getRowIndex(this));if(!s.isValueEmpty(t))for(var n=0;n<e.length;n++){var o=e[n].getValueName();s.isValueEmpty(t[o])||(e[n].value=t[o])}this.detailPanelValue.setSurveyImpl(this),this.isCreatingDetailPanel=!1}},e.prototype.getAllValues=function(){return this.value},e.prototype.getFilteredValues=function(){var e=this.getAllValues(),t={row:e};for(var n in e)t[n]=e[n];return t},e.prototype.getFilteredProperties=function(){return{survey:this.getSurvey(),row:this}},e.prototype.runCondition=function(t,n){this.data&&(t[e.OwnerVariableName]=this.data.value),t[e.IndexVariableName]=this.rowIndex,t[e.RowValueVariableName]=this.rowName,n||(n={}),n[e.RowVariableName]=this;for(var o=0;o<this.cells.length;o++)t[e.RowVariableName]=this.value,this.cells[o].runCondition(t,n);this.detailPanel&&this.detailPanel.runCondition(t,n)},e.prototype.clearValue=function(){for(var e=this.questions,t=0;t<e.length;t++)e[t].clearValue()},e.prototype.onAnyValueChanged=function(e){for(var t=this.questions,n=0;n<t.length;n++)t[n].onAnyValueChanged(e)},e.prototype.getDataValueCore=function(e,t){var n=this.getSurvey();return n?n.getDataValueCore(e,t):e[t]},e.prototype.getValue=function(e){var t=this.getQuestionByName(e);return t?t.value:null},e.prototype.setValue=function(e,t){this.setValueCore(e,t,!1)},e.prototype.getVariable=function(e){},e.prototype.setVariable=function(e,t){},e.prototype.getComment=function(e){var t=this.getQuestionByName(e);return t?t.comment:""},e.prototype.setComment=function(e,t,n){this.setValueCore(e,t,!0)},e.prototype.setValueCore=function(t,n,o){if(!this.isSettingValue){this.updateQuestionsValue(t,n,o);var r=this.value,i=o?t+a.commentPrefix:t,s=o?this.getComment(t):this.getValue(t),l=this.getQuestionByName(t),u=this.data.onRowChanging(this,i,r);if(l&&!this.isTwoValueEquals(u,s))o?l.comment=u:l.value=u;else{if(this.data.isValidateOnValueChanging&&this.hasQuestonError(l))return;this.data.onRowChanged(this,i,r,null==n&&!l),this.onAnyValueChanged(e.RowVariableName)}}},e.prototype.updateQuestionsValue=function(e,t,n){if(this.detailPanel){var o=this.getQuestionByColumnName(e),r=this.detailPanel.getQuestionByName(e);if(o&&r){var i=this.isTwoValueEquals(t,n?o.comment:o.value)?r:o;this.isSettingValue=!0,n?i.comment=t:i.value=t,this.isSettingValue=!1}}},e.prototype.hasQuestonError=function(e){if(!e)return!1;if(e.hasErrors(!0,{isOnValueChanged:!this.data.isValidateOnValueChanging}))return!0;if(e.isEmpty())return!1;var t=this.getCellByColumnName(e.name);return!!(t&&t.column&&t.column.isUnique)&&this.data.checkIfValueInRowDuplicated(this,e)},Object.defineProperty(e.prototype,"isEmpty",{get:function(){var e=this.value;if(s.isValueEmpty(e))return!0;for(var t in e)if(void 0!==e[t]&&null!==e[t])return!1;return!0},enumerable:!1,configurable:!0}),e.prototype.getQuestionByColumn=function(e){var t=this.getCellByColumn(e);return t?t.question:null},e.prototype.getCellByColumn=function(e){for(var t=0;t<this.cells.length;t++)if(this.cells[t].column==e)return this.cells[t];return null},e.prototype.getCellByColumnName=function(e){for(var t=0;t<this.cells.length;t++)if(this.cells[t].column.name==e)return this.cells[t];return null},e.prototype.getQuestionByColumnName=function(e){var t=this.getCellByColumnName(e);return t?t.question:null},Object.defineProperty(e.prototype,"questions",{get:function(){for(var e=[],t=0;t<this.cells.length;t++)e.push(this.cells[t].question);var n=this.detailPanel?this.detailPanel.questions:[];for(t=0;t<n.length;t++)e.push(n[t]);return e},enumerable:!1,configurable:!0}),e.prototype.getQuestionByName=function(e){var t=this.getQuestionByColumnName(e);return t||(this.detailPanel?this.detailPanel.getQuestionByName(e):null)},e.prototype.getQuestionsByName=function(e){var t=[],n=this.getQuestionByColumnName(e);return n&&t.push(n),this.detailPanel&&(n=this.detailPanel.getQuestionByName(e))&&t.push(n),t},e.prototype.getSharedQuestionByName=function(e){return this.data?this.data.getSharedQuestionByName(e,this):null},e.prototype.clearIncorrectValues=function(e){for(var t in e){var n=this.getQuestionByName(t);if(n){var o=n.value;n.clearIncorrectValues(),this.isTwoValueEquals(o,n.value)||this.setValue(t,n.value)}else!this.getSharedQuestionByName(t)&&t.indexOf(a.matrixTotalValuePostFix)<0&&this.setValue(t,null)}},e.prototype.getLocale=function(){return this.data?this.data.getLocale():""},e.prototype.getMarkdownHtml=function(e,t){return this.data?this.data.getMarkdownHtml(e,t):null},e.prototype.getRenderer=function(e){return this.data?this.data.getRenderer(e):null},e.prototype.getRendererContext=function(e){return this.data?this.data.getRendererContext(e):e},e.prototype.getProcessedText=function(e){return this.data?this.data.getProcessedText(e):e},e.prototype.locStrsChanged=function(){for(var e=0;e<this.cells.length;e++)this.cells[e].locStrsChanged();this.detailPanel&&this.detailPanel.locStrsChanged()},e.prototype.updateCellQuestionOnColumnChanged=function(e,t,n){var o=this.getCellByColumn(e);o&&this.updateCellOnColumnChanged(o,t,n)},e.prototype.updateCellQuestionOnColumnItemValueChanged=function(e,t,n,o,r,i){var a=this.getCellByColumn(e);a&&this.updateCellOnColumnItemValueChanged(a,t,n,o,r,i)},e.prototype.onQuestionReadOnlyChanged=function(e){for(var t=this.questions,n=0;n<t.length;n++)t[n].readOnly=e;this.detailPanel&&(this.detailPanel.readOnly=e)},e.prototype.hasErrors=function(e,t,n){var o=!1,r=this.cells;if(!r)return o;for(var i=0;i<r.length;i++)if(r[i]){var a=r[i].question;a&&a.visible&&(a.onCompletedAsyncValidators=function(e){n()},t&&!0===t.isOnValueChanged&&a.isEmpty()||(o=a.hasErrors(e,t)||o))}if(this.hasPanel){this.ensureDetailPanel();var s=this.detailPanel.hasErrors(e,!1,t);!t.hideErroredPanel&&s&&e&&(t.isSingleDetailPanel&&(t.hideErroredPanel=!0),this.showDetailPanel()),o=s||o}return o},e.prototype.updateCellOnColumnChanged=function(e,t,n){e.question[t]=n},e.prototype.updateCellOnColumnItemValueChanged=function(e,t,n,o,r,i){var a=e.question[t];if(Array.isArray(a)){var s="value"===o?i:n.value,l=Fe.getItemByValue(a,s);l&&(l[o]=r)}},e.prototype.buildCells=function(e){this.isSettingValue=!0;for(var t=this.data.columns,n=0;n<t.length;n++){var o=t[n];if(o.isVisible){var r=this.createCell(o);this.cells.push(r);var i=this.getCellValue(e,o.name);if(!s.isValueEmpty(i)){r.question.value=i;var l=o.name+a.commentPrefix;e&&!s.isValueEmpty(e[l])&&(r.question.comment=e[l])}}}this.isSettingValue=!1},e.prototype.isTwoValueEquals=function(e,t){return s.isTwoValueEquals(e,t,!1,!0,!1)},e.prototype.getCellValue=function(e,t){return this.editingObj?R.getObjPropertyValue(this.editingObj,t):e?e[t]:void 0},e.prototype.createCell=function(e){return new un(e,this,this.data)},e.prototype.getSurveyData=function(){return this},e.prototype.getSurvey=function(){return this.data?this.data.getSurvey():null},e.prototype.getTextProcessor=function(){return this.textPreProcessor},Object.defineProperty(e.prototype,"rowIndex",{get:function(){return this.data?this.data.getRowIndex(this)+1:-1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"editingObj",{get:function(){return this.editingObjValue},enumerable:!1,configurable:!0}),e.prototype.dispose=function(){this.editingObj&&(this.editingObj.onPropertyChanged.remove(this.onEditingObjPropertyChanged),this.editingObjValue=null)},e.prototype.subscribeToChanges=function(e){var t=this;e&&e.getType&&e.onPropertyChanged&&e!==this.editingObj&&(this.editingObjValue=e,this.onEditingObjPropertyChanged=function(e,n){t.updateOnSetValue(n.name,n.newValue)},this.editingObj.onPropertyChanged.add(this.onEditingObjPropertyChanged))},e.prototype.updateOnSetValue=function(e,t){this.isSettingValue=!0;for(var n=this.getQuestionsByName(e),o=0;o<n.length;o++)n[o].value=t;this.isSettingValue=!1},e.RowVariableName="row",e.OwnerVariableName="self",e.IndexVariableName="rowIndex",e.RowValueVariableName="rowValue",e.idCounter=1,e}(),hn=function(e){function t(t){var n=e.call(this,t,null)||this;return n.buildCells(null),n}return ln(t,e),t.prototype.createCell=function(e){return new cn(e,this,this.data)},t.prototype.setValue=function(e,t){this.data&&!this.isSettingValue&&this.data.onTotalValueChanged()},t.prototype.runCondition=function(t,n){var o,r=0;do{o=s.getUnbindValue(this.value),e.prototype.runCondition.call(this,t,n),r++}while(!s.isTwoValueEquals(o,this.value)&&r<3)},t.prototype.updateCellOnColumnChanged=function(e,t,n){e.updateCellQuestion()},t}(dn),fn=function(e){function t(t){var n=e.call(this,t)||this;return n.isRowChanging=!1,n.lockResetRenderedTable=!1,n.isDoingonAnyValueChanged=!1,n.createItemValues("choices"),n.createLocalizableString("optionsCaption",n),n.createLocalizableString("keyDuplicationError",n),n.detailPanelValue=n.createNewDetailPanel(),n.detailPanel.selectedElementInDesign=n,n.detailPanel.renderWidth="100%",n.registerFunctionOnPropertyValueChanged("columns",(function(e){n.updateColumnsIndexes(e),n.generatedTotalRow=null,n.clearRowsAndResetRenderedTable()})),n.registerFunctionOnPropertyValueChanged("cellType",(function(){n.updateColumnsCellType(),n.clearRowsAndResetRenderedTable()})),n.registerFunctionOnPropertiesValueChanged(["optionsCaption","columnColCount","rowTitleWidth","choices"],(function(){n.clearRowsAndResetRenderedTable()})),n.registerFunctionOnPropertiesValueChanged(["columnLayout","addRowLocation","hideColumnsIfEmpty","showHeader","minRowCount","isReadOnly","rowCount","hasFooter","detailPanelMode"],(function(){n.resetRenderedTable()})),n}return ln(t,e),Object.defineProperty(t,"defaultCellType",{get:function(){return a.matrixDefaultCellType},set:function(e){a.matrixDefaultCellType=e},enumerable:!1,configurable:!0}),t.addDefaultColumns=function(e){for(var t=Gt.DefaultColums,n=0;n<t.length;n++)e.addColumn(t[n])},t.prototype.createColumnValues=function(){var e=this;return this.createNewArray("columns",(function(t){t.colOwner=e}),(function(e){e.colOwner=null}))},t.prototype.getType=function(){return"matrixdropdownbase"},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.clearGeneratedRows()},Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRowsDynamic",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.itemValuePropertyChanged=function(t,n,o,r){e.prototype.itemValuePropertyChanged.call(this,t,n,o,r),"choices"===t.ownerPropertyName&&this.clearRowsAndResetRenderedTable()},Object.defineProperty(t.prototype,"columnLayout",{get:function(){return this.getPropertyValue("columnLayout")},set:function(e){this.setPropertyValue("columnLayout",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columnsLocation",{get:function(){return this.columnLayout},set:function(e){this.columnLayout=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isColumnLayoutHorizontal",{get:function(){return"vertical"!=this.columnLayout},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"detailPanelMode",{get:function(){return this.getPropertyValue("detailPanelMode")},set:function(e){this.setPropertyValue("detailPanelMode",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"detailPanel",{get:function(){return this.detailPanelValue},enumerable:!1,configurable:!0}),t.prototype.getPanel=function(){return this.detailPanel},Object.defineProperty(t.prototype,"detailElements",{get:function(){return this.detailPanel.elements},enumerable:!1,configurable:!0}),t.prototype.createNewDetailPanel=function(){return R.createClass("panel")},Object.defineProperty(t.prototype,"hasRowText",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getFooterText=function(){return null},Object.defineProperty(t.prototype,"canAddRow",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canRemoveRows",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.canRemoveRow=function(e){return!0},t.prototype.onRowsChanged=function(){this.resetRenderedTable(),e.prototype.onRowsChanged.call(this)},t.prototype.onStartRowAddingRemoving=function(){this.lockResetRenderedTable=!0},t.prototype.onEndRowAdding=function(){this.lockResetRenderedTable=!1,this.renderedTable&&(this.renderedTable.isRequireReset()?this.resetRenderedTable():this.renderedTable.onAddedRow())},t.prototype.onEndRowRemoving=function(e){this.lockResetRenderedTable=!1,this.renderedTable.isRequireReset()?this.resetRenderedTable():e&&this.renderedTable.onRemovedRow(e)},Object.defineProperty(t.prototype,"renderedTableValue",{get:function(){return this.getPropertyValue("renderedTable",null)},set:function(e){this.setPropertyValue("renderedTable",e)},enumerable:!1,configurable:!0}),t.prototype.clearRowsAndResetRenderedTable=function(){this.clearGeneratedRows(),this.resetRenderedTable(),this.fireCallback(this.columnsChangedCallback)},t.prototype.resetRenderedTable=function(){this.lockResetRenderedTable||this.isLoadingFromJson||(this.renderedTableValue=null,this.fireCallback(this.onRenderedTableResetCallback))},t.prototype.clearGeneratedRows=function(){if(this.generatedVisibleRows){for(var t=0;t<this.generatedVisibleRows.length;t++)this.generatedVisibleRows[t].dispose();e.prototype.clearGeneratedRows.call(this)}},Object.defineProperty(t.prototype,"renderedTable",{get:function(){return this.renderedTableValue||(this.renderedTableValue=this.createRenderedTable(),this.onRenderedTableCreatedCallback&&this.onRenderedTableCreatedCallback(this.renderedTableValue)),this.renderedTableValue},enumerable:!1,configurable:!0}),t.prototype.createRenderedTable=function(){return new sn(this)},t.prototype.onMatrixRowCreated=function(e){if(this.survey)for(var t={rowValue:e.value,row:e,column:null,columnName:null,cell:null,cellQuestion:null,value:null},n=0;n<this.visibleColumns.length;n++){t.column=this.visibleColumns[n],t.columnName=t.column.name;var o=e.cells[n];t.cell=o,t.cellQuestion=o.question,t.value=o.value,this.onCellCreatedCallback&&this.onCellCreatedCallback(t),this.survey.matrixCellCreated(this,t)}},Object.defineProperty(t.prototype,"cellType",{get:function(){return this.getPropertyValue("cellType",a.matrixDefaultCellType)},set:function(e){e=e.toLowerCase(),this.setPropertyValue("cellType",e)},enumerable:!1,configurable:!0}),t.prototype.updateColumnsCellType=function(){for(var e=0;e<this.columns.length;e++)this.columns[e].defaultCellTypeChanged()},t.prototype.updateColumnsIndexes=function(e){for(var t=0;t<e.length;t++)e[t].setIndex(t)},Object.defineProperty(t.prototype,"columnColCount",{get:function(){return this.getPropertyValue("columnColCount")},set:function(e){e<0||e>4||this.setPropertyValue("columnColCount",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columnMinWidth",{get:function(){return this.getPropertyValue("columnMinWidth","")},set:function(e){this.setPropertyValue("columnMinWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"horizontalScroll",{get:function(){return this.getPropertyValue("horizontalScroll",!1)},set:function(e){this.setPropertyValue("horizontalScroll",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowAdaptiveActions",{get:function(){return this.getPropertyValue("allowAdaptiveActions")},set:function(e){this.setPropertyValue("allowAdaptiveActions",e),this.detailPanel&&(this.detailPanel.allowAdaptiveActions=e)},enumerable:!1,configurable:!0}),t.prototype.getRequiredText=function(){return this.survey?this.survey.requiredText:""},t.prototype.onColumnPropertyChanged=function(e,t,n){if(this.updateHasFooter(),this.generatedVisibleRows){for(var o=0;o<this.generatedVisibleRows.length;o++)this.generatedVisibleRows[o].updateCellQuestionOnColumnChanged(e,t,n);this.generatedTotalRow&&this.generatedTotalRow.updateCellQuestionOnColumnChanged(e,t,n),this.onColumnsChanged(),"isRequired"==t&&this.resetRenderedTable(),e.isShowInMultipleColumns&&this.onShowInMultipleColumnsChanged(e)}},t.prototype.onColumnItemValuePropertyChanged=function(e,t,n,o,r,i){if(this.generatedVisibleRows)for(var a=0;a<this.generatedVisibleRows.length;a++)this.generatedVisibleRows[a].updateCellQuestionOnColumnItemValueChanged(e,t,n,o,r,i)},t.prototype.onShowInMultipleColumnsChanged=function(e){this.clearGeneratedRows(),this.resetRenderedTable()},t.prototype.onColumnCellTypeChanged=function(e){this.clearGeneratedRows(),this.resetRenderedTable()},t.prototype.getRowTitleWidth=function(){return""},Object.defineProperty(t.prototype,"hasFooter",{get:function(){return this.getPropertyValue("hasFooter",!1)},enumerable:!1,configurable:!0}),t.prototype.getAddRowLocation=function(){return"default"},t.prototype.getShowColumnsIfEmpty=function(){return!1},t.prototype.updateShowTableAndAddRow=function(){this.renderedTable&&this.renderedTable.updateShowTableAndAddRow()},t.prototype.updateHasFooter=function(){this.setPropertyValue("hasFooter",this.hasTotal)},Object.defineProperty(t.prototype,"hasTotal",{get:function(){for(var e=0;e<this.columns.length;e++)if(this.columns[e].hasTotal)return!0;return!1},enumerable:!1,configurable:!0}),t.prototype.getCellType=function(){return this.cellType},t.prototype.getCustomCellType=function(e,t,n){if(!this.survey)return n;var o={rowValue:t.value,row:t,column:e,columnName:e.name,cellType:n};return this.survey.matrixCellCreating(this,o),o.cellType},t.prototype.getConditionJson=function(t,n){if(void 0===t&&(t=null),void 0===n&&(n=null),!n)return e.prototype.getConditionJson.call(this);for(var o="",r=n.length-1;r>=0&&"."!=n[r];r--)o=n[r]+o;var i=this.getColumnByName(o);if(!i)return null;var a=i.createCellQuestion(null);return a?a.getConditionJson(t):null},t.prototype.clearIncorrectValues=function(){var e=this.visibleRows;if(e)for(var t=0;t<e.length;t++)e[t].clearIncorrectValues(this.getRowValue(t))},t.prototype.clearErrors=function(){if(e.prototype.clearErrors.call(this),this.generatedVisibleRows)for(var t=0;t<this.generatedVisibleRows.length;t++)for(var n=this.generatedVisibleRows[t],o=0;o<n.cells.length;o++)n.cells[o].question.clearErrors()},t.prototype.runCondition=function(t,n){e.prototype.runCondition.call(this,t,n);var o,r=0;do{o=s.getUnbindValue(this.totalValue),this.runCellsCondition(t,n),this.runTotalsCondition(t,n),r++}while(!s.isTwoValueEquals(o,this.totalValue)&&r<3)},t.prototype.shouldRunColumnExpression=function(){return!1},t.prototype.runCellsCondition=function(e,t){if(this.generatedVisibleRows){for(var n=this.getRowConditionValues(e),o=this.generatedVisibleRows,r=0;r<o.length;r++)o[r].runCondition(n,t);this.checkColumnsVisibility()}},t.prototype.checkColumnsVisibility=function(){for(var e=!1,t=0;t<this.visibleColumns.length;t++)this.visibleColumns[t].visibleIf&&(e=this.isColumnVisibilityChanged(this.visibleColumns[t])||e);e&&this.resetRenderedTable()},t.prototype.isColumnVisibilityChanged=function(e){for(var t=e.hasVisibleCell,n=!1,o=this.generatedVisibleRows,r=0;r<o.length;r++){var i=o[r].cells[e.index];if(i&&i.question&&i.question.isVisible){n=!0;break}}return t!=n&&(e.hasVisibleCell=n),t!=n},t.prototype.runTotalsCondition=function(e,t){this.generatedTotalRow&&this.generatedTotalRow.runCondition(this.getRowConditionValues(e),t)},t.prototype.getRowConditionValues=function(e){var t=e;t||(t={});var n={};return this.isValueEmpty(this.totalValue)||(n=JSON.parse(JSON.stringify(this.totalValue))),t.row={},t.totalRow=n,t},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this);for(var t=this.columns,n=0;n<t.length;n++)t[n].locStrsChanged();var o=this.generatedVisibleRows;if(o){for(n=0;n<o.length;n++)o[n].locStrsChanged();this.generatedTotalRow&&this.generatedTotalRow.locStrsChanged()}},t.prototype.getColumnByName=function(e){for(var t=0;t<this.columns.length;t++)if(this.columns[t].name==e)return this.columns[t];return null},t.prototype.getColumnName=function(e){return this.getColumnByName(e)},t.prototype.getColumnWidth=function(e){return e.minWidth?e.minWidth:this.columnMinWidth},Object.defineProperty(t.prototype,"choices",{get:function(){return this.getPropertyValue("choices")},set:function(e){this.setPropertyValue("choices",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"optionsCaption",{get:function(){return this.getLocalizableStringText("optionsCaption",u.getString("optionsCaption"))},set:function(e){this.setLocalizableStringText("optionsCaption",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locOptionsCaption",{get:function(){return this.getLocalizableString("optionsCaption")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"keyDuplicationError",{get:function(){return this.getLocalizableStringText("keyDuplicationError",u.getString("keyDuplicationError"))},set:function(e){this.setLocalizableStringText("keyDuplicationError",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locKeyDuplicationError",{get:function(){return this.getLocalizableString("keyDuplicationError")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"storeOthersAsComment",{get:function(){return!!this.survey&&this.survey.storeOthersAsComment},enumerable:!1,configurable:!0}),t.prototype.addColumn=function(e,t){void 0===t&&(t=null);var n=new tn(e,t);return this.columns.push(n),n},t.prototype.getVisibleRows=function(){var e=this;return this.isLoadingFromJson?null:(this.generatedVisibleRows||(this.generatedVisibleRows=this.generateRows(),this.generatedVisibleRows.forEach((function(t){return e.onMatrixRowCreated(t)})),this.data&&this.runCellsCondition(this.data.getFilteredValues(),this.data.getFilteredProperties()),this.updateValueOnRowsGeneration(this.generatedVisibleRows),this.updateIsAnswered()),this.generatedVisibleRows)},t.prototype.updateValueOnRowsGeneration=function(e){for(var t=this.createNewValue(!0),n=this.createNewValue(),o=0;o<e.length;o++){var r=e[o];if(!r.editingObj){var i=this.getRowValue(o),a=r.value;this.isTwoValueEquals(i,a)||(n=this.getNewValueOnRowChanged(r,"",a,!1,n).value)}}this.isTwoValueEquals(t,n)||(this.isRowChanging=!0,this.setNewValue(n),this.isRowChanging=!1)},Object.defineProperty(t.prototype,"totalValue",{get:function(){return this.hasTotal&&this.visibleTotalRow?this.visibleTotalRow.value:{}},enumerable:!1,configurable:!0}),t.prototype.getVisibleTotalRow=function(){if(this.isLoadingFromJson)return null;if(this.hasTotal){if(!this.generatedTotalRow&&(this.generatedTotalRow=this.generateTotalRow(),this.data)){var e={survey:this.survey};this.runTotalsCondition(this.data.getAllValues(),e)}}else this.generatedTotalRow=null;return this.generatedTotalRow},Object.defineProperty(t.prototype,"visibleTotalRow",{get:function(){return this.getVisibleTotalRow()},enumerable:!1,configurable:!0}),t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.updateColumnsIndexes(this.columns),this.clearGeneratedRows(),this.generatedTotalRow=null,this.updateHasFooter()},t.prototype.getRowValue=function(e){if(e<0)return null;var t=this.visibleRows;if(e>=t.length)return null;var n=this.createNewValue();return this.getRowValueCore(t[e],n)},t.prototype.checkIfValueInRowDuplicated=function(e,t){if(!this.generatedVisibleRows)return!1;for(var n=!1,o=0;o<this.generatedVisibleRows.length;o++){var r=this.generatedVisibleRows[o];if(e!==r&&r.getValue(t.name)==t.value){n=!0;break}}return n?this.addDuplicationError(t):t.clearErrors(),n},t.prototype.setRowValue=function(e,t){if(e<0)return null;var n=this.visibleRows;if(e>=n.length)return null;n[e].value=t,this.onRowChanged(n[e],"",t,!1)},t.prototype.generateRows=function(){return null},t.prototype.generateTotalRow=function(){return new hn(this)},t.prototype.createNewValue=function(e){void 0===e&&(e=!1);var t=this.value?this.createValueCopy():{};return e&&this.isMatrixValueEmpty(t)?null:t},t.prototype.getRowValueCore=function(e,t,n){void 0===n&&(n=!1);var o=t&&t[e.rowName]?t[e.rowName]:null;return!o&&n&&(o={},t&&(t[e.rowName]=o)),o},t.prototype.getRowObj=function(e){var t=this.getRowValueCore(e,this.value);return t&&t.getType?t:null},t.prototype.getRowDisplayValue=function(e,t,n){if(!n)return n;if(t.editingObj)return n;for(var o=Object.keys(n),r=0;r<o.length;r++){var i=o[r],a=t.getQuestionByName(i);if(a||(a=this.getSharedQuestionByName(i,t)),a){var s=a.getDisplayValue(e,n[i]);e&&a.title&&a.title!==i?(n[a.title]=s,delete n[i]):n[i]=s}}return n},t.prototype.getPlainData=function(t){var n=this;void 0===t&&(t={includeEmpty:!0});var o=e.prototype.getPlainData.call(this,t);return o&&(o.isNode=!0,o.data=this.visibleRows.map((function(e){var o={name:e.rowName,title:e.text,value:e.value,displayValue:n.getRowDisplayValue(!1,e,e.value),getString:function(e){return"object"==typeof e?JSON.stringify(e):e},isNode:!0,data:e.cells.map((function(e){return e.question.getPlainData(t)})).filter((function(e){return!!e}))};return(t.calculations||[]).forEach((function(t){o[t.propertyName]=e[t.propertyName]})),o}))),o},t.prototype.getProgressInfo=function(){return ft.getProgressInfoByElements(this.getCellQuestions(),this.isRequired)},t.prototype.getCellQuestions=function(){var e=this.visibleRows;if(!e)return[];for(var t=[],n=0;n<e.length;n++)for(var o=e[n],r=0;r<o.cells.length;r++)t.push(o.cells[r].question);return t},t.prototype.onBeforeValueChanged=function(e){},t.prototype.onSetQuestionValue=function(){if(!this.isRowChanging&&(this.onBeforeValueChanged(this.value),this.generatedVisibleRows&&0!=this.generatedVisibleRows.length)){this.isRowChanging=!0;for(var e=this.createNewValue(),t=0;t<this.generatedVisibleRows.length;t++){var n=this.generatedVisibleRows[t];this.generatedVisibleRows[t].value=this.getRowValueCore(n,e)}this.isRowChanging=!1}},t.prototype.setQuestionValue=function(t){e.prototype.setQuestionValue.call(this,t,!1),this.onSetQuestionValue(),this.updateIsAnswered()},t.prototype.supportGoNextPageAutomatic=function(){var e=this.generatedVisibleRows;if(e||(e=this.visibleRows),!e)return!0;for(var t=0;t<e.length;t++){var n=this.generatedVisibleRows[t].cells;if(n)for(var o=0;o<n.length;o++){var r=n[o].question;if(r&&(!r.supportGoNextPageAutomatic()||!r.value))return!1}}return!0},t.prototype.getContainsErrors=function(){return e.prototype.getContainsErrors.call(this)||this.checkForAnswersOrErrors((function(e){return e.containsErrors}),!1)},t.prototype.getIsAnswered=function(){return e.prototype.getIsAnswered.call(this)&&this.checkForAnswersOrErrors((function(e){return e.isAnswered}),!0)},t.prototype.checkForAnswersOrErrors=function(e,t){void 0===t&&(t=!1);var n=this.generatedVisibleRows;if(!n)return!1;for(var o=0;o<n.length;o++){var r=n[o].cells;if(r)for(var i=0;i<r.length;i++)if(r[i]){var a=r[i].question;if(a&&a.isVisible)if(e(a)){if(!t)return!0}else if(t)return!1}}return!!t},t.prototype.hasErrors=function(t,n){void 0===t&&(t=!0),void 0===n&&(n=null);var o=this.hasErrorInRows(t,n),r=this.isValueDuplicated();return e.prototype.hasErrors.call(this,t,n)||o||r},t.prototype.getIsRunningValidators=function(){if(e.prototype.getIsRunningValidators.call(this))return!0;if(!this.generatedVisibleRows)return!1;for(var t=0;t<this.generatedVisibleRows.length;t++){var n=this.generatedVisibleRows[t].cells;if(n)for(var o=0;o<n.length;o++)if(n[o]){var r=n[o].question;if(r&&r.isRunningValidators)return!0}}return!1},t.prototype.getAllErrors=function(){var t=e.prototype.getAllErrors.call(this),n=this.generatedVisibleRows;if(null===n)return t;for(var o=0;o<n.length;o++)for(var r=n[o],i=0;i<r.cells.length;i++){var a=r.cells[i].question.getAllErrors();a&&a.length>0&&(t=t.concat(a))}return t},t.prototype.hasErrorInRows=function(e,t){var n=this;if(!this.generatedVisibleRows)return!1;var o=!1;t||(t={}),t.isSingleDetailPanel="underRowSingle"===this.detailPanelMode;for(var r=0;r<this.generatedVisibleRows.length;r++)o=this.generatedVisibleRows[r].hasErrors(e,t,(function(){n.raiseOnCompletedAsyncValidators()}))||o;return o},t.prototype.isValueDuplicated=function(){if(!this.generatedVisibleRows)return!1;for(var e=this.getUniqueColumns(),t=!1,n=0;n<e.length;n++)t=this.isValueInColumnDuplicated(e[n])||t;return t},t.prototype.isValueInColumnDuplicated=function(e){for(var t=[],n=!1,o=0;o<this.generatedVisibleRows.length;o++)n=this.isValueDuplicatedInRow(this.generatedVisibleRows[o],e,t)||n;return n},t.prototype.getUniqueColumns=function(){for(var e=new Array,t=0;t<this.columns.length;t++)this.columns[t].isUnique&&e.push(this.columns[t]);return e},t.prototype.isValueDuplicatedInRow=function(e,t,n){var o=e.getQuestionByColumn(t);if(!o||o.isEmpty())return!1;for(var r=o.value,i=0;i<n.length;i++)if(r==n[i])return this.addDuplicationError(o),!0;return n.push(r),!1},t.prototype.addDuplicationError=function(e){e.addError(new Y(this.keyDuplicationError,this))},t.prototype.getFirstInputElementId=function(){var t=this.getFirstCellQuestion(!1);return t?t.inputId:e.prototype.getFirstInputElementId.call(this)},t.prototype.getFirstErrorInputElementId=function(){var t=this.getFirstCellQuestion(!0);return t?t.inputId:e.prototype.getFirstErrorInputElementId.call(this)},t.prototype.getFirstCellQuestion=function(e){if(!this.generatedVisibleRows)return null;for(var t=0;t<this.generatedVisibleRows.length;t++)for(var n=this.generatedVisibleRows[t].cells,o=0;o<n.length;o++){if(!e)return n[o].question;if(n[o].question.currentErrorCount>0)return n[o].question}return null},t.prototype.onReadOnlyChanged=function(){if(e.prototype.onReadOnlyChanged.call(this),this.generateRows)for(var t=0;t<this.visibleRows.length;t++)this.visibleRows[t].onQuestionReadOnlyChanged(this.isReadOnly)},t.prototype.createQuestion=function(e,t){return this.createQuestionCore(e,t)},t.prototype.createQuestionCore=function(e,t){var n=t.createCellQuestion(e);return this.isReadOnly&&(n.readOnly=!0),n.setSurveyImpl(e),n.setParentQuestion(this),n},t.prototype.deleteRowValue=function(e,t){return e?(delete e[t.rowName],this.isObject(e)&&0==Object.keys(e).length?null:e):e},t.prototype.onAnyValueChanged=function(e){if(!this.isLoadingFromJson&&!this.isDoingonAnyValueChanged&&this.generatedVisibleRows){this.isDoingonAnyValueChanged=!0;for(var t=this.visibleRows,n=0;n<t.length;n++)t[n].onAnyValueChanged(e);var o=this.visibleTotalRow;o&&o.onAnyValueChanged(e),this.isDoingonAnyValueChanged=!1}},t.prototype.isObject=function(e){return null!==e&&"object"==typeof e},t.prototype.getOnCellValueChangedOptions=function(e,t,n){return{row:e,columnName:t,rowValue:n,value:n?n[t]:null,getCellQuestion:function(t){for(var n=0;n<e.cells.length;n++){var o=e.cells[n].column;if(o&&o.name===t)return e.cells[n].question}return null}}},t.prototype.onCellValueChanged=function(e,t,n){if(this.survey){var o=this.getOnCellValueChangedOptions(e,t,n);this.onCellValueChangedCallback&&this.onCellValueChangedCallback(o),this.survey.matrixCellValueChanged(this,o)}},t.prototype.validateCell=function(e,t,n){if(this.survey){var o=this.getOnCellValueChangedOptions(e,t,n);return this.survey.matrixCellValidate(this,o)}},Object.defineProperty(t.prototype,"isValidateOnValueChanging",{get:function(){return!!this.survey&&this.survey.isValidateOnValueChanging},enumerable:!1,configurable:!0}),t.prototype.onRowChanging=function(e,t,n){if(!this.survey)return n?n[t]:null;var o=this.getOnCellValueChangedOptions(e,t,n),r=this.getRowValueCore(e,this.createNewValue(),!0);return o.oldValue=r?r[t]:null,this.survey.matrixCellValueChanging(this,o),o.value},t.prototype.onRowChanged=function(e,t,n,o){var r=t?this.getRowObj(e):null;if(r){var i=null;n&&!o&&(i=n[t]),this.isRowChanging=!0,r[t]=i,this.isRowChanging=!1,this.onCellValueChanged(e,t,r)}else{var a=this.createNewValue(!0),s=this.getNewValueOnRowChanged(e,t,n,o,this.createNewValue());if(this.isTwoValueEquals(a,s.value))return;this.isRowChanging=!0,this.setNewValue(s.value),this.isRowChanging=!1,t&&this.onCellValueChanged(e,t,s.rowValue)}},t.prototype.getNewValueOnRowChanged=function(e,t,n,o,r){var i=this.getRowValueCore(e,r,!0);o&&delete i[t];for(var a=0;a<e.cells.length;a++){delete i[s=e.cells[a].question.getValueName()]}if(n)for(var s in n=JSON.parse(JSON.stringify(n)))this.isValueEmpty(n[s])||(i[s]=n[s]);return this.isObject(i)&&0===Object.keys(i).length&&(r=this.deleteRowValue(r,e)),{value:r,rowValue:i}},t.prototype.getRowIndex=function(e){return this.generatedVisibleRows?this.visibleRows.indexOf(e):-1},t.prototype.getElementsInDesign=function(t){return void 0===t&&(t=!1),"none"==this.detailPanelMode?e.prototype.getElementsInDesign.call(this,t):t?[this.detailPanel]:this.detailElements},t.prototype.hasDetailPanel=function(e){return"none"!=this.detailPanelMode&&(!!this.isDesignMode||(this.onHasDetailPanelCallback?this.onHasDetailPanelCallback(e):this.detailElements.length>0))},t.prototype.getIsDetailPanelShowing=function(e){if("none"==this.detailPanelMode)return!1;if(this.isDesignMode){var t=0==this.visibleRows.indexOf(e);return t&&(e.detailPanel||e.showDetailPanel()),t}return this.getPropertyValue("isRowShowing"+e.id,!1)},t.prototype.setIsDetailPanelShowing=function(e,t){if(t!=this.getIsDetailPanelShowing(e)&&(this.setPropertyValue("isRowShowing"+e.id,t),this.updateDetailPanelButtonCss(e),this.renderedTable&&this.renderedTable.onDetailPanelChangeVisibility(e,t),t&&"underRowSingle"===this.detailPanelMode))for(var n=this.visibleRows,o=0;o<n.length;o++)n[o].id!==e.id&&n[o].isDetailPanelShowing&&n[o].hideDetailPanel()},t.prototype.getDetailPanelButtonCss=function(e){var t=(new ze).append(this.getPropertyValue("detailButtonCss"+e.id));return t.append(this.cssClasses.detailButton,""===t.toString()).toString()},t.prototype.getDetailPanelIconCss=function(e){var t=(new ze).append(this.getPropertyValue("detailIconCss"+e.id));return t.append(this.cssClasses.detailIcon,""===t.toString()).toString()},t.prototype.updateDetailPanelButtonCss=function(e){var t=this.cssClasses,n=this.getIsDetailPanelShowing(e),o=(new ze).append(t.detailIcon).append(t.detailIconExpanded,n);this.setPropertyValue("detailIconCss"+e.id,o.toString());var r=(new ze).append(t.detailButton).append(t.detailButtonExpanded,n);this.setPropertyValue("detailButtonCss"+e.id,r.toString())},t.prototype.createRowDetailPanel=function(e){if(this.isDesignMode)return this.detailPanel;var t=this.createNewDetailPanel();t.readOnly=this.isReadOnly;var n=this.detailPanel.toJSON();return(new E).toObject(n,t),t.renderWidth="100%",t.updateCustomWidgets(),this.onCreateDetailPanelCallback&&this.onCreateDetailPanelCallback(e,t),t},t.prototype.getSharedQuestionByName=function(e,t){if(!this.survey||!this.valueName)return null;var n=this.getRowIndex(t);return n<0?null:this.survey.getQuestionByValueNameFromArray(this.valueName,e,n)},t.prototype.onTotalValueChanged=function(){!this.data||!this.visibleTotalRow||this.isLoadingFromJson||this.isSett||this.isReadOnly||this.data.setValue(this.getValueName()+a.matrixTotalValuePostFix,this.totalValue,!1)},t.prototype.getQuestionFromArray=function(e,t){return t>=this.visibleRows.length?null:this.visibleRows[t].getQuestionByName(e)},t.prototype.isMatrixValueEmpty=function(e){if(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)if(this.isObject(e[t])&&Object.keys(e[t]).length>0)return!1;return!0}return 0==Object.keys(e).length}},Object.defineProperty(t.prototype,"SurveyModel",{get:function(){return this.survey},enumerable:!1,configurable:!0}),t.prototype.getCellTemplateData=function(e){return this.SurveyModel.getMatrixCellTemplateData(e)},t.prototype.getCellWrapperComponentName=function(e){return this.SurveyModel.getElementWrapperComponentName(e,"cell")},t.prototype.getCellWrapperComponentData=function(e){return this.SurveyModel.getElementWrapperComponentData(e,"cell")},t.prototype.getColumnHeaderWrapperComponentName=function(e){return this.SurveyModel.getElementWrapperComponentName(e,"column-header")},t.prototype.getColumnHeaderWrapperComponentData=function(e){return this.SurveyModel.getElementWrapperComponentData(e,"column-header")},t.prototype.getRowHeaderWrapperComponentName=function(e){return this.SurveyModel.getElementWrapperComponentName(e,"row-header")},t.prototype.getRowHeaderWrapperComponentData=function(e){return this.SurveyModel.getElementWrapperComponentData(e,"row-header")},t}(Ht);R.addClass("matrixdropdownbase",[{name:"columns:matrixdropdowncolumns",className:"matrixdropdowncolumn"},{name:"columnLayout",alternativeName:"columnsLocation",default:"horizontal",choices:["horizontal","vertical"]},{name:"detailElements",visible:!1,isLightSerializable:!1},{name:"detailPanelMode",choices:["none","underRow","underRowSingle"],default:"none"},"horizontalScroll:boolean",{name:"choices:itemvalue[]"},{name:"optionsCaption",serializationProperty:"locOptionsCaption"},{name:"keyDuplicationError",serializationProperty:"locKeyDuplicationError"},{name:"cellType",default:"dropdown",choices:function(){return tn.getColumnTypes()}},{name:"columnColCount",default:0,choices:[0,1,2,3,4]},"columnMinWidth",{name:"allowAdaptiveActions:boolean",default:!0,visible:!1}],(function(){return new fn("")}),"matrixbase");var mn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),gn=function(e){function t(t,n,o,r){var i=e.call(this,o,r)||this;return i.name=t,i.item=n,i.buildCells(r),i}return mn(t,e),Object.defineProperty(t.prototype,"rowName",{get:function(){return this.name},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"text",{get:function(){return this.item.text},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locText",{get:function(){return this.item.locText},enumerable:!1,configurable:!0}),t}(dn),yn=function(e){function t(t){var n=e.call(this,t)||this;n.createLocalizableString("totalText",n,!0);var o=n;return n.registerFunctionOnPropertyValueChanged("rows",(function(){o.clearGeneratedRows(),o.resetRenderedTable(),o.filterItems()})),n}return mn(t,e),t.prototype.getType=function(){return"matrixdropdown"},Object.defineProperty(t.prototype,"totalText",{get:function(){return this.getLocalizableStringText("totalText","")},set:function(e){this.setLocalizableStringText("totalText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTotalText",{get:function(){return this.getLocalizableString("totalText")},enumerable:!1,configurable:!0}),t.prototype.getFooterText=function(){return this.locTotalText},Object.defineProperty(t.prototype,"rowTitleWidth",{get:function(){return this.getPropertyValue("rowTitleWidth","")},set:function(e){this.setPropertyValue("rowTitleWidth",e)},enumerable:!1,configurable:!0}),t.prototype.getRowTitleWidth=function(){return this.rowTitleWidth},t.prototype.getDisplayValueCore=function(e,t){if(!t)return t;var n=this.visibleRows,o={};if(!n)return o;for(var r=0;r<n.length;r++){var i=n[r].rowName,a=t[i];if(a){if(e){var s=Fe.getTextOrHtmlByValue(this.rows,i);s&&(i=s)}o[i]=this.getRowDisplayValue(e,n[r],a)}}return o},t.prototype.addConditionObjectsByContext=function(e,t){for(var n=!!t&&this.columns.indexOf(t)>-1,o=0;o<this.rows.length;o++){var r=this.rows[o];if(r.value)for(var i=this.getValueName()+"."+r.value+".",a=this.processedTitle+"."+r.calculatedText+".",s=0;s<this.columns.length;s++){var l=this.columns[s];e.push({name:i+l.name,text:a+l.fullTitle,question:this})}}if(n)for(o=0;o<this.columns.length;o++){(l=this.columns[o])!=t&&e.push({name:"row."+l.name,text:"row."+l.fullTitle,question:this})}},t.prototype.clearIncorrectValues=function(){var t=this.value;if(t){var n=null,o=!1,r=this.filteredRows?this.filteredRows:this.rows;for(var i in t)Fe.getItemByValue(r,i)?(null==n&&(n={}),n[i]=t[i]):o=!0;o&&(this.value=n),e.prototype.clearIncorrectValues.call(this)}},t.prototype.clearValueIfInvisible=function(){e.prototype.clearValueIfInvisible.call(this),this.clearInvisibleValuesInRows()},t.prototype.generateRows=function(){var e=new Array,t=this.filteredRows?this.filteredRows:this.rows;if(!t||0===t.length)return e;var n=this.value;n||(n={});for(var o=0;o<t.length;o++)t[o].value&&e.push(this.createMatrixRow(t[o],n[t[o].value]));return e},t.prototype.createMatrixRow=function(e,t){return new gn(e.value,e,this,t)},t.prototype.getSearchableItemValueKeys=function(e){e.push("rows")},t}(fn);R.addClass("matrixdropdown",[{name:"rows:itemvalue[]"},"rowsVisibleIf:condition","rowTitleWidth",{name:"totalText",serializationProperty:"locTotalText"}],(function(){return new yn("")}),"matrixdropdownbase"),Gt.Instance.registerQuestion("matrixdropdown",(function(e){var t=new yn(e);return t.choices=[1,2,3,4,5],t.rows=Gt.DefaultRows,fn.addDefaultColumns(t),t}));var vn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),bn=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},xn=function(e){function t(t,n){var o=e.call(this)||this;return o.surveyValue=t,o.creator=n,o.onGhostPositionChanged=new F,o.onBeforeDrop=new F,o.onAfterDrop=new F,o.draggedElement=null,o.dropTarget=null,o.prevDropTarget=null,o.draggedElementShortcut=null,o.scrollIntervalId=null,o.allowDropHere=!1,o.dragOver=function(e){o.moveShortcutElement(e),o.draggedElementShortcut.style.cursor="grabbing";var t=o.findDropTargetNodeFromPoint(e.clientX,e.clientY);if(t){o.dropTarget=o.getDropTargetByNode(t,e);var n=o.calculateIsBottom(e.clientY,t),r=o.isDropTargetValid(o.dropTarget,n,t);o.doDragOver(t),r?(o.allowDropHere=!0,o.isDropTargetDoesntChanged(n)||(o.isBottom=null,o.isBottom=n,o.afterDragOver(t),o.prevDropTarget=o.dropTarget)):o.banDropHere()}else o.banDropHere()},o.drop=function(){if(o.allowDropHere){o.onBeforeDrop.fire(o,null);var e=o.doDrop();o.onAfterDrop.fire(o,{draggedElement:e})}o.clear()},o.handlePointerCancel=function(e){o.clear()},o.handleEscapeButton=function(e){27==e.keyCode&&o.clear()},o.banDropHere=function(){o.doBanDropHere(),o.allowDropHere=!1,o.dropTarget=null,o.draggedElementShortcut.style.cursor="not-allowed",o.isBottom=null},o.doBanDropHere=function(){},o.clear=function(){cancelAnimationFrame(o.scrollIntervalId),document.removeEventListener("pointermove",o.dragOver),document.removeEventListener("pointercancel",o.handlePointerCancel),document.removeEventListener("keydown",o.handleEscapeButton),document.removeEventListener("pointerup",o.drop),o.draggedElementShortcut.removeEventListener("pointerup",o.drop),document.body.removeChild(o.draggedElementShortcut),o.doClear(),o.dropTarget=null,o.draggedElementShortcut=null,o.draggedElement=null,o.isBottom=null,o.parentElement=null,o.scrollIntervalId=null},o}return vn(t,e),t.prototype.ghostPositionChanged=function(){this.onGhostPositionChanged.fire({},{})},Object.defineProperty(t.prototype,"dropTargetDataAttributeName",{get:function(){return"[data-sv-drop-target-"+this.draggedElementType+"]"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"survey",{get:function(){return this.surveyValue||this.creator.survey},enumerable:!1,configurable:!0}),t.prototype.startDrag=function(e,t,n,o){this.draggedElement=t,this.parentElement=n,this.doStartDrag();var r=this.getShortcutText(this.draggedElement);this.draggedElementShortcut=this.createDraggedElementShortcut(r,o),document.body.append(this.draggedElementShortcut),this.moveShortcutElement(e),document.addEventListener("pointermove",this.dragOver),document.addEventListener("pointercancel",this.handlePointerCancel),document.addEventListener("keydown",this.handleEscapeButton),document.addEventListener("pointerup",this.drop),this.draggedElementShortcut.addEventListener("pointerup",this.drop)},t.prototype.isDropTargetDoesntChanged=function(e){return this.dropTarget===this.prevDropTarget&&e===this.isBottom},t.prototype.doStartDrag=function(){},t.prototype.createDraggedElementShortcut=function(e,t){var n=document.createElement("div");return n.innerText=e,n.style.cssText="height: 24px; min-width: 100px; border-radius: 36px; background-color: white; padding: 16px; cursor: grabbing; position: absolute; z-index: 1000; box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1); font-family: 'Open Sans'; font-size: 16px; padding-left: 20px; line-height: 24px;",n},t.prototype.doDragOver=function(e){},t.prototype.afterDragOver=function(e){},t.prototype.getGhostPosition=function(e){return this.dropTarget!==e?null:this.isBottom?"bottom":"top"},t.prototype.moveShortcutElement=function(e){this.doScroll(e.clientY,e.clientX);var t,n,o=this.draggedElementShortcut.offsetHeight,r=this.draggedElementShortcut.offsetWidth,i=this.draggedElementShortcut.querySelector(".svc-item-value-controls__drag .sv-svg-icon")||this.draggedElementShortcut.querySelector(".sv-ranking-item__icon");if(i){var a=this.draggedElementShortcut.getBoundingClientRect(),s=i.getBoundingClientRect();t=s.x-a.x+s.width/2,n=s.y-a.y+s.height/2}else t=r/2,n=o/2;var l=document.documentElement.clientHeight,u=document.documentElement.clientWidth;return e.clientX+t>=u?(this.draggedElementShortcut.style.left=e.pageX-e.clientX+u-r+"px",void(this.draggedElementShortcut.style.top=e.pageY-n+"px")):e.clientX-t<=0?(this.draggedElementShortcut.style.left=e.pageX-e.clientX+"px",void(this.draggedElementShortcut.style.top=e.pageY-n+"px")):e.clientY+n>=l?(this.draggedElementShortcut.style.left=e.pageX-t+"px",void(this.draggedElementShortcut.style.top=e.pageY-e.clientY+l-o+"px")):e.clientY-n<=0?(this.draggedElementShortcut.style.left=e.pageX-t+"px",void(this.draggedElementShortcut.style.top=e.pageY-e.clientY+"px")):(this.draggedElementShortcut.style.left=e.pageX-t+"px",void(this.draggedElementShortcut.style.top=e.pageY-n+"px"))},t.prototype.doScroll=function(e,t){var n=this;cancelAnimationFrame(this.scrollIntervalId);var o=document.querySelector(".sd-row--multiple")||document.querySelector(".svc-tab-designer.sd-root-modern")||document.querySelector(".sv-root-modern")||document.querySelector(".sv_container"),r=o.getBoundingClientRect().top,i=o.getBoundingClientRect().bottom,a=o.getBoundingClientRect().left,s=o.getBoundingClientRect().right,l=function(){e-r<=50?o.scrollTop-=15:i-e<=50?o.scrollTop+=15:s-t<=50?o.scrollLeft+=15:t-a<=50&&(o.scrollLeft-=15),n.scrollIntervalId=requestAnimationFrame(l)};this.scrollIntervalId=requestAnimationFrame(l)},t.prototype.getDataAttributeValueByNode=function(e){var t=this,n="svDropTarget";return this.draggedElementType.split("-").forEach((function(e){n+=t.capitalizeFirstLetter(e)})),e.dataset[n]},t.prototype.getDropTargetByNode=function(e,t){var n=this.getDataAttributeValueByNode(e);return this.getDropTargetByDataAttributeValue(n,e,t)},t.prototype.capitalizeFirstLetter=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},t.prototype.calculateMiddleOfHTMLElement=function(e){var t=e.getBoundingClientRect();return t.y+t.height/2},t.prototype.calculateIsBottom=function(e,t){return e>=this.calculateMiddleOfHTMLElement(t)},t.prototype.findDropTargetNodeFromPoint=function(e,t){this.draggedElementShortcut.hidden=!0;var n=document.elementFromPoint(e,t);return this.draggedElementShortcut.hidden=!1,n?this.findDropTargetNodeByDragOverNode(n):null},t.prototype.findDropTargetNodeByDragOverNode=function(e){return e.querySelector(this.dropTargetDataAttributeName)||e.closest(this.dropTargetDataAttributeName)},t.prototype.doClear=function(){},bn([y({defaultValue:null,onSet:function(e,t){t.ghostPositionChanged()}})],t.prototype,"isBottom",void 0),t}(L),Cn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),wn=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.doDrop=function(){var e=t.parentElement,n=e.visibleRows.indexOf(t.draggedElement),o=e.visibleRows.indexOf(t.dropTarget);return e.moveRowByIndex(n,o),e},t}return Cn(t,e),Object.defineProperty(t.prototype,"draggedElementType",{get:function(){return"matrix-row"},enumerable:!1,configurable:!0}),t.prototype.ghostPositionChanged=function(){var t=this;this.parentElement.renderedTable.rows.forEach((function(e){e.ghostPosition=t.getGhostPosition(e.row)})),e.prototype.ghostPositionChanged.call(this)},t.prototype.getShortcutText=function(e){var t=this.parentElement.visibleRows.indexOf(e)+1;return e.cells[1].questionValue.value||e.cells[0].questionValue.value||""+t},t.prototype.getDropTargetByDataAttributeValue=function(e){return this.parentElement.visibleRows.filter((function(t){return t.id===e}))[0]},t.prototype.isDropTargetValid=function(e){return this.dropTarget!==this.draggedElement&&-1!==this.parentElement.visibleRows.indexOf(e)},t.prototype.calculateIsBottom=function(e){var t=this.parentElement.visibleRows;return t.indexOf(this.dropTarget)-t.indexOf(this.draggedElement)>0},t}(xn),Pn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),_n=function(e){function t(t,n,o){var r=e.call(this,n,o)||this;return r.index=t,r.buildCells(o),r}return Pn(t,e),Object.defineProperty(t.prototype,"rowName",{get:function(){return this.id},enumerable:!1,configurable:!0}),t}(dn),Vn=function(e){function t(t){var n=e.call(this,t)||this;return n.rowCounter=0,n.initialRowCount=2,n.setRowCountValueFromData=!1,n.moveRowByIndex=function(e,t){var o=n.createNewValue();if(o){var r=o[e];r&&(o.splice(e,1),o.splice(t,0,r),n.value=o)}},n.createLocalizableString("confirmDeleteText",n),n.createLocalizableString("addRowText",n).onGetTextCallback=function(e){return e||n.defaultAddRowText},n.createLocalizableString("removeRowText",n).onGetTextCallback=function(e){return e||u.getString("removeRow")},n.createLocalizableString("emptyRowsText",n).onGetTextCallback=function(e){return e||u.getString("emptyRowsText")},n.registerFunctionOnPropertiesValueChanged(["hideColumnsIfEmpty","allowAddRows"],(function(){n.updateShowTableAndAddRow()})),n.registerFunctionOnPropertyValueChanged("allowRowsDragAndDrop",(function(){n.clearRowsAndResetRenderedTable()})),n}return Pn(t,e),t.prototype.setSurveyImpl=function(t){e.prototype.setSurveyImpl.call(this,t),this.dragDropMatrixRows=new wn(this.survey)},t.prototype.startDragMatrixRow=function(e,t){this.dragDropMatrixRows.startDrag(e,t,this)},t.prototype.getType=function(){return"matrixdynamic"},Object.defineProperty(t.prototype,"isRowsDynamic",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"confirmDelete",{get:function(){return this.getPropertyValue("confirmDelete",!1)},set:function(e){this.setPropertyValue("confirmDelete",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"keyName",{get:function(){return this.getPropertyValue("keyName","")},set:function(e){this.setPropertyValue("keyName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultRowValue",{get:function(){return this.getPropertyValue("defaultRowValue")},set:function(e){this.setPropertyValue("defaultRowValue",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultValueFromLastRow",{get:function(){return this.getPropertyValue("defaultValueFromLastRow",!1)},set:function(e){this.setPropertyValue("defaultValueFromLastRow",e)},enumerable:!1,configurable:!0}),t.prototype.isDefaultValueEmpty=function(){return e.prototype.isDefaultValueEmpty.call(this)&&this.isValueEmpty(this.defaultRowValue)},t.prototype.valueFromData=function(t){if(this.minRowCount<1)return e.prototype.valueFromData.call(this,t);Array.isArray(t)||(t=[]);for(var n=t.length;n<this.minRowCount;n++)t.push({});return t},t.prototype.setDefaultValue=function(){if(!this.isValueEmpty(this.defaultRowValue)&&this.isValueEmpty(this.defaultValue)){if(this.isEmpty()&&0!=this.rowCount){for(var t=[],n=0;n<this.rowCount;n++)t.push(this.defaultRowValue);this.value=t}}else e.prototype.setDefaultValue.call(this)},Object.defineProperty(t.prototype,"rowCount",{get:function(){return this.rowCountValue},set:function(e){if(!(e<0||e>a.matrixMaximumRowCount)){this.setRowCountValueFromData=!1;var t=this.rowCountValue;if(this.rowCountValue=e,this.value&&this.value.length>e){var n=this.value;n.splice(e),this.value=n}if(this.isLoadingFromJson)this.initialRowCount=e;else{if(this.generatedVisibleRows||0==t){this.generatedVisibleRows||(this.generatedVisibleRows=[]),this.generatedVisibleRows.splice(e);for(var o=t;o<e;o++){var r=this.createMatrixRow(this.getValueForNewRow());this.generatedVisibleRows.push(r),this.onMatrixRowCreated(r)}}this.onRowsChanged()}}},enumerable:!1,configurable:!0}),t.prototype.getValueForNewRow=function(){var e=null;return this.onGetValueForNewRowCallBack&&(e=this.onGetValueForNewRowCallBack(this)),e},Object.defineProperty(t.prototype,"allowRowsDragAndDrop",{get:function(){return this.getPropertyValue("allowRowsDragAndDrop")},set:function(e){this.setPropertyValue("allowRowsDragAndDrop",e)},enumerable:!1,configurable:!0}),t.prototype.createRenderedTable=function(){return new Tn(this)},Object.defineProperty(t.prototype,"rowCountValue",{get:function(){return this.getPropertyValue("rowCount")},set:function(e){this.setPropertyValue("rowCount",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minRowCount",{get:function(){return this.getPropertyValue("minRowCount")},set:function(e){e<0&&(e=0),this.setPropertyValue("minRowCount",e),e>this.maxRowCount&&(this.maxRowCount=e),this.rowCount<e&&(this.rowCount=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxRowCount",{get:function(){return this.getPropertyValue("maxRowCount")},set:function(e){e<=0||(e>a.matrixMaximumRowCount&&(e=a.matrixMaximumRowCount),e!=this.maxRowCount&&(this.setPropertyValue("maxRowCount",e),e<this.minRowCount&&(this.minRowCount=e),this.rowCount>e&&(this.rowCount=e)))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowAddRows",{get:function(){return this.getPropertyValue("allowAddRows")},set:function(e){this.setPropertyValue("allowAddRows",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowRemoveRows",{get:function(){return this.getPropertyValue("allowRemoveRows")},set:function(e){this.setPropertyValue("allowRemoveRows",e),this.isLoadingFromJson||this.resetRenderedTable()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canAddRow",{get:function(){return this.allowAddRows&&!this.isReadOnly&&this.rowCount<this.maxRowCount},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canRemoveRows",{get:function(){var e=this.allowRemoveRows&&!this.isReadOnly&&this.rowCount>this.minRowCount;return this.canRemoveRowsCallback?this.canRemoveRowsCallback(e):e},enumerable:!1,configurable:!0}),t.prototype.canRemoveRow=function(e){return!this.survey||this.survey.matrixAllowRemoveRow(this,e.index,e)},t.prototype.addRowUI=function(){var e=this.rowCount;if(this.addRow(),e!==this.rowCount){var t=this.getQuestionToFocusOnAddingRow();t&&t.focus()}},t.prototype.getQuestionToFocusOnAddingRow=function(){for(var e=this.visibleRows[this.visibleRows.length-1],t=0;t<e.cells.length;t++){var n=e.cells[t].question;if(n&&n.isVisible&&!n.isReadOnly)return n}return null},t.prototype.addRow=function(){var e={question:this,canAddRow:this.canAddRow};this.survey&&this.survey.matrixBeforeRowAdded(e),e.canAddRow&&(this.onStartRowAddingRemoving(),this.addRowCore(),this.onEndRowAdding(),this.detailPanelShowOnAdding&&this.visibleRows.length>0&&this.visibleRows[this.visibleRows.length-1].showDetailPanel())},Object.defineProperty(t.prototype,"detailPanelShowOnAdding",{get:function(){return this.getPropertyValue("detailPanelShowOnAdding")},set:function(e){this.setPropertyValue("detailPanelShowOnAdding",e)},enumerable:!1,configurable:!0}),t.prototype.hasRowsAsItems=function(){return!1},t.prototype.unbindValue=function(){this.clearGeneratedRows(),this.clearPropertyValue("value"),this.rowCountValue=0,e.prototype.unbindValue.call(this)},t.prototype.isValueSurveyElement=function(t){return this.isEditingSurveyElement||e.prototype.isValueSurveyElement.call(this,t)},t.prototype.addRowCore=function(){var e=this.rowCount;this.rowCount=this.rowCount+1;var t=this.getDefaultRowValue(!0),n=null;if(this.isValueEmpty(t)||(n=this.createNewValue()).length==this.rowCount&&(n[n.length-1]=t,this.value=n),this.data){this.runCellsCondition(this.getDataFilteredValues(),this.getDataFilteredProperties());var o=this.visibleRows[this.rowCount-1];this.isValueEmpty(o.value)||(n||(n=this.createNewValue()),this.isValueSurveyElement(n)||this.isTwoValueEquals(n[n.length-1],o.value)||(n[n.length-1]=o.value,this.value=n))}this.survey&&e+1==this.rowCount&&(this.survey.matrixRowAdded(this,this.visibleRows[this.visibleRows.length-1]),this.onRowsChanged())},t.prototype.getDefaultRowValue=function(e){for(var t=null,n=0;n<this.columns.length;n++){var o=this.columns[n].templateQuestion;o&&!this.isValueEmpty(o.getDefaultValue())&&((t=t||{})[this.columns[n].name]=o.getDefaultValue())}if(!this.isValueEmpty(this.defaultRowValue))for(var r in this.defaultRowValue)(t=t||{})[r]=this.defaultRowValue[r];if(e&&this.defaultValueFromLastRow){var i=this.value;if(i&&Array.isArray(i)&&i.length>=this.rowCount-1){var a=i[this.rowCount-2];for(var r in a)(t=t||{})[r]=a[r]}}return t},t.prototype.removeRowUI=function(e){if(e&&e.rowName){var t=this.visibleRows.indexOf(e);if(t<0)return;e=t}this.isRequireConfirmOnRowDelete(e)&&!kt(this.confirmDeleteText)||this.removeRow(e)},t.prototype.isRequireConfirmOnRowDelete=function(e){if(!this.confirmDelete)return!1;if(e<0||e>=this.rowCount)return!1;var t=this.createNewValue();return!(this.isValueEmpty(t)||!Array.isArray(t))&&(!(e>=t.length)&&!this.isValueEmpty(t[e]))},t.prototype.removeRow=function(e){if(this.canRemoveRows&&!(e<0||e>=this.rowCount)){var t=this.visibleRows&&e<this.visibleRows.length?this.visibleRows[e]:null;t&&this.survey&&!this.survey.matrixRowRemoving(this,e,t)||(this.onStartRowAddingRemoving(),this.removeRowCore(e),this.onEndRowRemoving(t))}},t.prototype.removeRowCore=function(e){var t=this.generatedVisibleRows?this.generatedVisibleRows[e]:null;if(this.generatedVisibleRows&&e<this.generatedVisibleRows.length&&this.generatedVisibleRows.splice(e,1),this.rowCountValue--,this.value){var n=[];(n=Array.isArray(this.value)&&e<this.value.length?this.createValueCopy():this.createNewValue()).splice(e,1),n=this.deleteRowValue(n,null),this.isRowChanging=!0,this.value=n,this.isRowChanging=!1}this.onRowsChanged(),this.survey&&this.survey.matrixRowRemoved(this,e,t)},Object.defineProperty(t.prototype,"confirmDeleteText",{get:function(){return this.getLocalizableStringText("confirmDeleteText",u.getString("confirmDelete"))},set:function(e){this.setLocalizableStringText("confirmDeleteText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locConfirmDeleteText",{get:function(){return this.getLocalizableString("confirmDeleteText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"addRowText",{get:function(){return this.getLocalizableStringText("addRowText",this.defaultAddRowText)},set:function(e){this.setLocalizableStringText("addRowText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locAddRowText",{get:function(){return this.getLocalizableString("addRowText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultAddRowText",{get:function(){return u.getString(this.isColumnLayoutHorizontal?"addRow":"addColumn")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"addRowLocation",{get:function(){return this.getPropertyValue("addRowLocation")},set:function(e){this.setPropertyValue("addRowLocation",e)},enumerable:!1,configurable:!0}),t.prototype.getAddRowLocation=function(){return this.addRowLocation},Object.defineProperty(t.prototype,"hideColumnsIfEmpty",{get:function(){return this.getPropertyValue("hideColumnsIfEmpty")},set:function(e){this.setPropertyValue("hideColumnsIfEmpty",e)},enumerable:!1,configurable:!0}),t.prototype.getShowColumnsIfEmpty=function(){return this.hideColumnsIfEmpty},Object.defineProperty(t.prototype,"removeRowText",{get:function(){return this.getLocalizableStringText("removeRowText",u.getString("removeRow"))},set:function(e){this.setLocalizableStringText("removeRowText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locRemoveRowText",{get:function(){return this.getLocalizableString("removeRowText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"emptyRowsText",{get:function(){return this.getLocalizableStringText("emptyRowsText",u.getString("emptyRowsText"))},set:function(e){this.setLocalizableStringText("emptyRowsText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locEmptyRowsText",{get:function(){return this.getLocalizableString("emptyRowsText")},enumerable:!1,configurable:!0}),t.prototype.getDisplayValueCore=function(e,t){if(!t||!Array.isArray(t))return t;for(var n=this.getUnbindValue(t),o=this.visibleRows,r=0;r<o.length&&r<n.length;r++){var i=n[r];i&&(n[r]=this.getRowDisplayValue(e,o[r],i))}return n},t.prototype.addConditionObjectsByContext=function(e,t){for(var n=!!t&&this.columns.indexOf(t)>-1,o=0;o<this.columns.length;o++){var r=this.columns[o];this.addColumnIntoaddConditionObjectsByContext(e,0,r),n&&r!=t&&this.addColumnIntoaddConditionObjectsByContext(e,-1,r);for(var i=1;i<Math.min(a.matrixMaxRowCountInCondition,this.rowCount);i++)this.addColumnIntoaddConditionObjectsByContext(e,i,r)}},t.prototype.addColumnIntoaddConditionObjectsByContext=function(e,t,n){var o=t>-1?"["+t.toString()+"].":"row.";e.push({name:(t>-1?this.getValueName()+o:o)+n.name,text:(t>-1?this.processedTitle+o:o)+n.fullTitle,question:this})},t.prototype.supportGoNextPageAutomatic=function(){return!1},Object.defineProperty(t.prototype,"hasRowText",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.onCheckForErrors=function(t,n){e.prototype.onCheckForErrors.call(this,t,n),!n&&this.hasErrorInMinRows()&&t.push(new Z(this.minRowCount,this))},t.prototype.hasErrorInMinRows=function(){if(this.minRowCount<=0||!this.isRequired||!this.generatedVisibleRows)return!1;for(var e=0,t=0;t<this.generatedVisibleRows.length;t++){this.generatedVisibleRows[t].isEmpty||e++}return e<this.minRowCount},t.prototype.getUniqueColumns=function(){var t=e.prototype.getUniqueColumns.call(this);if(this.keyName){var n=this.getColumnByName(this.keyName);n&&t.indexOf(n)<0&&t.push(n)}return t},t.prototype.generateRows=function(){var e=new Array;if(0===this.rowCount)return e;for(var t=this.createNewValue(),n=0;n<this.rowCount;n++)e.push(this.createMatrixRow(this.getRowValueByIndex(t,n)));return this.isValueEmpty(this.getDefaultRowValue(!1))||(this.value=t),e},t.prototype.createMatrixRow=function(e){return new _n(this.rowCounter++,this,e)},t.prototype.onBeforeValueChanged=function(e){if(e&&Array.isArray(e)){var t=e.length;t!=this.rowCount&&(!this.setRowCountValueFromData&&t<this.initialRowCount||(this.setRowCountValueFromData=!0,this.rowCountValue=t,this.generatedVisibleRows&&(this.clearGeneratedRows(),this.generatedVisibleRows=this.visibleRows,this.onRowsChanged())))}},t.prototype.createNewValue=function(){var e=this.createValueCopy();e&&Array.isArray(e)||(e=[]),e.length>this.rowCount&&e.splice(this.rowCount);var t=this.getDefaultRowValue(!1);t=t||{};for(var n=e.length;n<this.rowCount;n++)e.push(this.getUnbindValue(t));return e},t.prototype.deleteRowValue=function(e,t){for(var n=!0,o=0;o<e.length;o++)if(this.isObject(e[o])&&Object.keys(e[o]).length>0){n=!1;break}return n?null:e},t.prototype.getRowValueByIndex=function(e,t){return Array.isArray(e)&&t>=0&&t<e.length?e[t]:null},t.prototype.getRowValueCore=function(e,t,n){if(void 0===n&&(n=!1),!this.generatedVisibleRows)return{};var o=this.getRowValueByIndex(t,this.generatedVisibleRows.indexOf(e));return!o&&n&&(o={}),o},t.prototype.getAddRowButtonCss=function(e){return void 0===e&&(e=!1),(new ze).append(this.cssClasses.button).append(this.cssClasses.buttonAdd).append(this.cssClasses.emptyRowsButton,e).toString()},t.prototype.getRemoveRowButtonCss=function(){return(new ze).append(this.cssClasses.button).append(this.cssClasses.buttonRemove).toString()},t}(fn),Tn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Pn(t,e),t.prototype.setDefaultRowActions=function(t,n){e.prototype.setDefaultRowActions.call(this,t,n)},t}(sn);R.addClass("matrixdynamic",[{name:"rowsVisibleIf:condition",visible:!1},{name:"allowAddRows:boolean",default:!0},{name:"allowRemoveRows:boolean",default:!0},{name:"rowCount:number",default:2,minValue:0,isBindable:!0},{name:"minRowCount:number",default:0,minValue:0},{name:"maxRowCount:number",default:a.matrixMaximumRowCount},{name:"keyName"},"defaultRowValue:rowvalue","defaultValueFromLastRow:boolean",{name:"confirmDelete:boolean"},{name:"confirmDeleteText",dependsOn:"confirmDelete",visibleIf:function(e){return!e||e.confirmDelete},serializationProperty:"locConfirmDeleteText"},{name:"addRowLocation",default:"default",choices:["default","top","bottom","topBottom"]},{name:"addRowText",serializationProperty:"locAddRowText"},{name:"removeRowText",serializationProperty:"locRemoveRowText"},"hideColumnsIfEmpty:boolean",{name:"emptyRowsText:text",serializationProperty:"locEmptyRowsText",dependsOn:"hideColumnsIfEmpty",visibleIf:function(e){return!e||e.hideColumnsIfEmpty}},{name:"detailPanelShowOnAdding:boolean",dependsOn:"detailPanelMode",visibleIf:function(e){return"none"!==e.detailPanelMode}},"allowRowsDragAndDrop:switch"],(function(){return new Vn("")}),"matrixdropdownbase"),Gt.Instance.registerQuestion("matrixdynamic",(function(e){var t=new Vn(e);return t.choices=[1,2,3,4,5],fn.addDefaultColumns(t),t}));var kn={currentType:"",getCss:function(){var e=this.currentType?this[this.currentType]:Sn;return e||(e=Sn),e}},Sn={root:"sv_main sv_default_css",container:"sv_container",header:"sv_header",body:"sv_body",bodyEmpty:"sv_body sv_body_empty",footer:"sv_nav",title:"",description:"",logo:"sv_logo",logoImage:"sv_logo__image",headerText:"sv_header__text",navigationButton:"",completedPage:"sv_completed_page",navigation:{complete:"sv_complete_btn",prev:"sv_prev_btn",next:"sv_next_btn",start:"sv_start_btn",preview:"sv_preview_btn",edit:"sv_edit_btn"},progress:"sv_progress",progressBar:"sv_progress_bar",progressTextInBar:"sv-hidden",progressButtonsContainerCenter:"sv_progress-buttons__container-center",progressButtonsContainer:"sv_progress-buttons__container",progressButtonsImageButtonLeft:"sv_progress-buttons__image-button-left",progressButtonsImageButtonRight:"sv_progress-buttons__image-button-right",progressButtonsImageButtonHidden:"sv_progress-buttons__image-button--hidden",progressButtonsListContainer:"sv_progress-buttons__list-container",progressButtonsList:"sv_progress-buttons__list",progressButtonsListElementPassed:"sv_progress-buttons__list-element--passed",progressButtonsListElementCurrent:"sv_progress-buttons__list-element--current",progressButtonsListElementNonClickable:"sv_progress-buttons__list-element--nonclickable",progressButtonsPageTitle:"sv_progress-buttons__page-title",progressButtonsPageDescription:"sv_progress-buttons__page-description",page:{root:"sv_p_root",title:"sv_page_title",description:""},pageTitle:"sv_page_title",pageDescription:"",row:"sv_row",question:{mainRoot:"sv_q sv_qstn",flowRoot:"sv_q_flow sv_qstn",header:"",headerLeft:"title-left",content:"",contentLeft:"content-left",titleLeftRoot:"sv_qstn_left",requiredText:"sv_q_required_text",title:"sv_q_title",titleExpandable:"sv_q_title_expandable",number:"sv_q_num",description:"sv_q_description",comment:"",required:"",titleRequired:"",hasError:"",indent:20,footer:"sv_q_footer",formGroup:"form-group",asCell:"sv_matrix_cell",icon:"sv_question_icon",iconExpanded:"sv_expanded",disabled:"sv_q--disabled"},panel:{title:"sv_p_title",titleExpandable:"sv_p_title_expandable",titleOnError:"",icon:"sv_panel_icon",iconExpanded:"sv_expanded",description:"sv_p_description",container:"sv_p_container",footer:"sv_p_footer",number:"sv_q_num",requiredText:"sv_q_required_text"},error:{root:"sv_q_erbox",icon:"",item:"",locationTop:"sv_qstn_error_top",locationBottom:"sv_qstn_error_bottom"},boolean:{root:"sv_qcbc sv_qbln",item:"sv-boolean",control:"sv-visuallyhidden",itemChecked:"sv-boolean--checked checked",itemIndeterminate:"sv-boolean--indeterminate",itemDisabled:"sv-boolean--disabled",switch:"sv-boolean__switch",slider:"sv-boolean__slider",sliderText:"sv-hidden",label:"sv-boolean__label ",disabledLabel:"sv-boolean__label--disabled",materialDecorator:"sv-item__decorator sv-boolean__decorator ",itemDecorator:"sv-item__svg  sv-boolean__svg",checkedPath:"sv-boolean__checked-path",uncheckedPath:"sv-boolean__unchecked-path",indeterminatePath:"sv-boolean__indeterminate-path"},checkbox:{root:"sv_qcbc sv_qcbx",item:"sv_q_checkbox",itemSelectAll:"sv_q_checkbox_selectall",itemNone:"sv_q_checkbox_none",itemChecked:"checked",itemInline:"sv_q_checkbox_inline",label:"sv_q_checkbox_label",labelChecked:"",itemControl:"sv_q_checkbox_control_item",itemDecorator:"sv-hidden",controlLabel:"sv_q_checkbox_control_label",materialDecorator:"checkbox-material",other:"sv_q_other sv_q_checkbox_other",column:"sv_q_select_column"},ranking:{root:"sv-ranking",rootMobileMod:"sv-ranking--mobile",rootDragMod:"sv-ranking--drag",item:"sv-ranking-item",itemContent:"sv-ranking-item__content",itemIndex:"sv-ranking-item__index",controlLabel:"sv-ranking-item__text",itemGhostNode:"sv-ranking-item__ghost",itemIconContainer:"sv-ranking-item__icon-container",itemIcon:"sv-ranking-item__icon",itemIconHoverMod:"sv-ranking-item__icon--hover",itemIconFocusMod:"sv-ranking-item__icon--focus",itemGhostMod:"sv-ranking-item--ghost",itemDragMod:"sv-ranking-item--drag"},comment:"",dropdown:{root:"",control:"sv_q_dropdown_control",selectWrapper:"sv_select_wrapper",other:"sv_q_dd_other"},html:{root:""},image:{root:"sv_q_image",image:"sv_image_image"},matrix:{root:"sv_q_matrix",label:"sv_q_m_label",itemChecked:"checked",itemDecorator:"sv-hidden",cell:"sv_q_m_cell",cellText:"sv_q_m_cell_text",cellTextSelected:"sv_q_m_cell_selected",cellLabel:"sv_q_m_cell_label"},matrixdropdown:{root:"sv_q_matrix_dropdown",cell:"sv_matrix_cell",headerCell:"sv_matrix_cell_header",row:"sv_matrix_row",rowAdditional:"sv-matrix__row--additional",detailRow:"sv_matrix_detail_row",detailRowText:"sv_matrix_cell_detail_rowtext",detailCell:"sv_matrix_cell_detail",choiceCell:"sv-table__cell--choice",detailButton:"sv_matrix_cell_detail_button",detailButtonExpanded:"sv_matrix_cell_detail_button_expanded",detailIcon:"sv_detail_panel_icon",detailIconExpanded:"sv_detail_expanded",detailPanelCell:"sv_matrix_cell_detail_panel",actionsCell:"sv_matrix_cell sv_matrix_cell_actions"},matrixdynamic:{root:"sv_q_matrix_dynamic",button:"sv_matrix_dynamic_button",buttonAdd:"",buttonRemove:"",iconAdd:"",iconRemove:"",iconDrag:"sv-matrixdynamic__drag-icon",cell:"sv_matrix_cell",headerCell:"sv_matrix_cell_header",row:"sv_matrix_row",detailRow:"sv_matrix_detail_row",detailCell:"sv_matrix_cell_detail",choiceCell:"sv-table__cell--choice",detailButton:"sv_matrix_cell_detail_button",detailButtonExpanded:"sv_matrix_cell_detail_button_expanded",detailIcon:"sv_detail_panel_icon",detailIconExpanded:"sv_detail_expanded",detailPanelCell:"sv_matrix_cell_detail_panel",actionsCell:"sv_matrix_cell sv_matrix_cell_actions",emptyRowsSection:"sv_matrix_empty_rows_section",emptyRowsText:"sv_matrix_empty_rows_text",emptyRowsButton:"",dragDropGhostPositionTop:"sv-matrix__drag-drop-ghost-position-top",dragDropGhostPositionBottom:"sv-matrix__drag-drop-ghost-position-bottom"},paneldynamic:{root:"sv_panel_dynamic",title:"sv_p_title",button:"",buttonAdd:"sv-paneldynamic__add-btn",buttonRemove:"sv_p_remove_btn",buttonRemoveRight:"sv_p_remove_btn_right",buttonPrev:"sv-paneldynamic__prev-btn",buttonNext:"sv-paneldynamic__next-btn",progressContainer:"sv-paneldynamic__progress-container",progress:"sv-progress",progressBar:"sv-progress__bar",progressText:"sv-paneldynamic__progress-text",panelWrapper:"sv_p_wrapper",panelWrapperInRow:"sv_p_wrapper_in_row"},multipletext:{root:"sv_q_mt",itemTitle:"sv_q_mt_title",row:"sv_q_mt_row",itemValue:"sv_q_mt_item_value sv_q_text_root"},radiogroup:{root:"sv_qcbc",item:"sv_q_radiogroup",itemChecked:"checked",itemInline:"sv_q_radiogroup_inline",itemDecorator:"sv-hidden",label:"sv_q_radiogroup_label",labelChecked:"",itemControl:"sv_q_radiogroup_control_item",controlLabel:"",materialDecorator:"circle",other:"sv_q_other sv_q_radiogroup_other",clearButton:"sv_q_radiogroup_clear",column:"sv_q_select_column"},buttongroup:{root:"sv-button-group",item:"sv-button-group__item",itemIcon:"sv-button-group__item-icon",itemDecorator:"sv-button-group__item-decorator",itemCaption:"sv-button-group__item-caption",itemHover:"sv-button-group__item--hover",itemSelected:"sv-button-group__item--selected",itemDisabled:"sv-button-group__item--disabled",itemControl:"sv-visuallyhidden"},imagepicker:{root:"sv_imgsel",item:"sv_q_imgsel",itemChecked:"checked",label:"sv_q_imgsel_label",itemControl:"sv_q_imgsel_control_item",image:"sv_q_imgsel_image",itemInline:"sv_q_imagepicker_inline",itemText:"sv_q_imgsel_text",clearButton:"sv_q_radiogroup_clear"},rating:{root:"sv_q_rating",item:"sv_q_rating_item",selected:"active",minText:"sv_q_rating_min_text",itemText:"sv_q_rating_item_text",maxText:"sv_q_rating_max_text"},text:"sv_q_text_root",expression:"",file:{root:"sv_q_file",placeholderInput:"sv-visuallyhidden",preview:"sv_q_file_preview",removeButton:"sv_q_file_remove_button",fileInput:"sv-visuallyhidden",removeFile:"sv_q_file_remove",removeFileSvg:"sv-hidden",fileDecorator:"sv-file__decorator",fileSignBottom:"sv-hidden",removeButtonBottom:"sv-hidden",chooseFile:"sv_q_file_choose_button",noFileChosen:"sv_q_file_placeholder",dragAreaPlaceholder:"sv-hidden",fileList:"",defaultImage:"sv-hidden"},signaturepad:{root:"sv_q_signaturepad sjs_sp_container",controls:"sjs_sp_controls",placeholder:"sjs_sp_placeholder",clearButton:"sjs_sp_clear"},saveData:{root:"",saving:"",error:"",success:"",saveAgainButton:""},window:{root:"sv_window",body:"sv_window_content",header:{root:"sv_window_title",title:"",button:"",buttonExpanded:"",buttonCollapsed:""}}};kn.standard=Sn;var On=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),En=function(e,t,n){void 0===n&&(n=-1),this.source=e,this.target=t,this.nestedPanelDepth=n},Rn=function(e){function t(n){var o=e.call(this)||this;return o.panel=n,o._scrollableParent=void 0,o._updateVisibility=void 0,o.idValue=t.getRowId(),o.visible=n.areInvisibleElementsShowing,o.createNewArray("elements"),o.createNewArray("visibleElements"),o}return On(t,e),t.getRowId=function(){return"pr_"+t.rowCounter++},t.prototype.startLazyRendering=function(e,t){var n=this;void 0===t&&(t=Et),this._scrollableParent=t(e),this.isNeedRender=!(this._scrollableParent.scrollHeight>this._scrollableParent.clientHeight),this._scrollableParent===document.documentElement&&(this._scrollableParent=window),this.isNeedRender||(this._updateVisibility=function(){var t=function(e,t){if(void 0===t&&(t=0),"undefined"==typeof document)return!1;var n=e.getBoundingClientRect(),o=-t,r=Math.max(document.documentElement.clientHeight,window.innerHeight)+t,i=n.top,a=n.bottom;return Math.max(o,i)<=Math.min(r,a)}(e,50);!n.isNeedRender&&t&&(n.isNeedRender=!0,n.stopLazyRendering())},setTimeout((function(){n._scrollableParent&&n._scrollableParent.addEventListener&&n._scrollableParent.addEventListener("scroll",n._updateVisibility),n.ensureVisibility()}),10))},t.prototype.ensureVisibility=function(){this._updateVisibility&&this._updateVisibility()},t.prototype.stopLazyRendering=function(){this._scrollableParent&&this._updateVisibility&&this._scrollableParent.removeEventListener&&this._scrollableParent.removeEventListener("scroll",this._updateVisibility),this._scrollableParent=void 0,this._updateVisibility=void 0},t.prototype.setIsLazyRendering=function(e){this.isLazyRenderingValue=e,this.isNeedRender=!e},t.prototype.isLazyRendering=function(){return!0===this.isLazyRenderingValue},Object.defineProperty(t.prototype,"id",{get:function(){return this.idValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"elements",{get:function(){return this.getPropertyValue("elements")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visibleElements",{get:function(){return this.getPropertyValue("visibleElements")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visible",{get:function(){return this.getPropertyValue("visible",!0)},set:function(e){this.setPropertyValue("visible",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNeedRender",{get:function(){return this.getPropertyValue("isneedrender",!0)},set:function(e){this.setPropertyValue("isneedrender",e)},enumerable:!1,configurable:!0}),t.prototype.updateVisible=function(){this.visible=this.calcVisible(),this.setWidth()},t.prototype.addElement=function(e){this.elements.push(e),this.updateVisible()},Object.defineProperty(t.prototype,"index",{get:function(){return this.panel.rows.indexOf(this)},enumerable:!1,configurable:!0}),t.prototype.setWidth=function(){var e=this.visibleElements.length;if(0!=e){for(var t=0,n=[],o=0;o<this.elements.length;o++){var r=this.elements[o];if(this.setElementMaxMinWidth(r),r.isVisible){var i=this.getElementWidth(r);i&&(r.renderWidth=this.getRenderedWidthFromWidth(i),n.push(r)),r.rightIndent=t<e-1?1:0,t++}else r.renderWidth=""}for(o=0;o<this.elements.length;o++){!(r=this.elements[o]).isVisible||n.indexOf(r)>-1||(0==n.length?r.renderWidth=(100/e).toFixed(6)+"%":r.renderWidth=this.getRenderedCalcWidth(r,n,e))}}},t.prototype.setElementMaxMinWidth=function(e){e.width&&"string"==typeof e.width&&-1===e.width.indexOf("%")&&(e.minWidth=e.width,e.maxWidth=e.width)},t.prototype.getRenderedCalcWidth=function(e,t,n){for(var o="100%",r=0;r<t.length;r++)o+=" - "+t[r].renderWidth;var i=n-t.length;return i>1&&(o="("+o+")/"+i.toString()),"calc("+o+")"},t.prototype.getElementWidth=function(e){var t=e.width;return t&&"string"==typeof t?t.trim():""},t.prototype.getRenderedWidthFromWidth=function(e){return s.isNumber(e)?e+"px":e},t.prototype.calcVisible=function(){for(var e=[],t=0;t<this.elements.length;t++)this.elements[t].isVisible&&e.push(this.elements[t]);return this.needToUpdateVisibleElements(e)&&this.setPropertyValue("visibleElements",e),e.length>0},t.prototype.needToUpdateVisibleElements=function(e){if(e.length!==this.visibleElements.length)return!0;for(var t=0;t<e.length;t++)if(e[t]!==this.visibleElements[t])return!0;return!1},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.stopLazyRendering()},t.prototype.getRowCss=function(){return(new ze).append(this.panel.cssClasses.row).append(this.panel.cssClasses.rowMultiple,this.visibleElements.length>1).toString()},t.rowCounter=100,t}(L),In=function(e){function t(n){void 0===n&&(n="");var o=e.call(this,n)||this;return o.isQuestionsReady=!1,o.questionsValue=new Array,o.isRandomizing=!1,o.createNewArray("rows"),o.elementsValue=o.createNewArray("elements",o.onAddElement.bind(o),o.onRemoveElement.bind(o)),o.id=t.getPanelId(),o.createLocalizableString("requiredErrorText",o),o.registerFunctionOnPropertyValueChanged("questionTitleLocation",(function(){o.onVisibleChanged.bind(o),o.updateElementCss(!0)})),o.registerFunctionOnPropertiesValueChanged(["questionStartIndex","showQuestionNumbers"],(function(){o.updateVisibleIndexes()})),o}return On(t,e),t.getPanelId=function(){return"sp_"+t.panelCounter++},t.prototype.getType=function(){return"panelbase"},t.prototype.setSurveyImpl=function(t){e.prototype.setSurveyImpl.call(this,t),this.isDesignMode&&this.onVisibleChanged();for(var n=0;n<this.elements.length;n++)this.elements[n].setSurveyImpl(t)},t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),this.markQuestionListDirty(),this.onRowsChanged()},Object.defineProperty(t.prototype,"hasTitle",{get:function(){return this.canShowTitle()&&this.title.length>0||this.isDesignMode&&a.allowShowEmptyTitleInDesignMode},enumerable:!1,configurable:!0}),t.prototype.canShowTitle=function(){return!0},Object.defineProperty(t.prototype,"_showDescription",{get:function(){return this.survey.showPageTitles&&this.description.length>0||this.isDesignMode&&a.allowShowEmptyTitleInDesignMode&&a.allowShowEmptyDescriptionInDesignMode},enumerable:!1,configurable:!0}),t.prototype.localeChanged=function(){e.prototype.localeChanged.call(this);for(var t=0;t<this.elements.length;t++)this.elements[t].localeChanged()},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this);for(var t=0;t<this.elements.length;t++)this.elements[t].locStrsChanged()},Object.defineProperty(t.prototype,"requiredText",{get:function(){return null!=this.survey&&this.isRequired?this.survey.requiredText:""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titlePattern",{get:function(){return this.survey?this.survey.questionTitlePattern:"numTitleRequire"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextOnStart",{get:function(){return this.isRequired&&"requireNumTitle"==this.titlePattern},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextBeforeTitle",{get:function(){return this.isRequired&&"numRequireTitle"==this.titlePattern},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextAfterTitle",{get:function(){return this.isRequired&&"numTitleRequire"==this.titlePattern},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredErrorText",{get:function(){return this.getLocalizableStringText("requiredErrorText")},set:function(e){this.setLocalizableStringText("requiredErrorText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locRequiredErrorText",{get:function(){return this.getLocalizableString("requiredErrorText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionsOrder",{get:function(){return this.getPropertyValue("questionsOrder")},set:function(e){this.setPropertyValue("questionsOrder",e)},enumerable:!1,configurable:!0}),t.prototype.canRandomize=function(e){return e&&"initial"!==this.questionsOrder||"random"===this.questionsOrder},t.prototype.randomizeElements=function(e){if(this.canRandomize(e)&&!this.isRandomizing){this.isRandomizing=!0;for(var t=[],n=this.elements,o=0;o<n.length;o++)t.push(n[o]);var r=s.randomizeArray(t);this.elements.splice(0,this.elements.length);for(o=0;o<r.length;o++)this.elements.push(r[o]);this.isRandomizing=!1}},Object.defineProperty(t.prototype,"parent",{get:function(){return this.getPropertyValue("parent",null)},set:function(e){this.setPropertyValue("parent",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"depth",{get:function(){return null==this.parent?0:this.parent.depth+1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visibleIf",{get:function(){return this.getPropertyValue("visibleIf","")},set:function(e){this.setPropertyValue("visibleIf",e)},enumerable:!1,configurable:!0}),t.prototype.calcCssClasses=function(e){var t={panel:{},error:{},row:"",rowMultiple:""};return this.copyCssClasses(t.panel,e.panel),this.copyCssClasses(t.error,e.error),e.row&&(t.row=e.row),e.rowMultiple&&(t.rowMultiple=e.rowMultiple),this.survey&&this.survey.updatePanelCssClasses(this,t),t},Object.defineProperty(t.prototype,"id",{get:function(){return this.getPropertyValue("id")},set:function(e){this.setPropertyValue("id",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPanel",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.getPanel=function(){return this},t.prototype.getLayoutType=function(){return"row"},t.prototype.isLayoutTypeSupported=function(e){return"flow"!==e},Object.defineProperty(t.prototype,"questions",{get:function(){if(!this.isQuestionsReady){this.questionsValue=[];for(var e=0;e<this.elements.length;e++){var t=this.elements[e];if(t.isPanel)for(var n=t.questions,o=0;o<n.length;o++)this.questionsValue.push(n[o]);else this.questionsValue.push(t)}this.isQuestionsReady=!0}return this.questionsValue},enumerable:!1,configurable:!0}),t.prototype.getValidName=function(e){return e?e.trim():e},t.prototype.getQuestionByName=function(e){for(var t=this.questions,n=0;n<t.length;n++)if(t[n].name==e)return t[n];return null},t.prototype.getElementByName=function(e){for(var t=this.elements,n=0;n<t.length;n++){var o=t[n];if(o.name==e)return o;var r=o.getPanel();if(r){var i=r.getElementByName(e);if(i)return i}}return null},t.prototype.getQuestionByValueName=function(e){for(var t=this.questions,n=0;n<t.length;n++)if(t[n].getValueName()==e)return t[n];return null},t.prototype.getValue=function(){for(var e={},t=this.questions,n=0;n<t.length;n++){var o=t[n];if(!o.isEmpty()){var r=o.getValueName();if(e[r]=o.value,this.data){var i=this.data.getComment(r);i&&(e[r+a.commentPrefix]=i)}}}return e},t.prototype.getDisplayValue=function(e){for(var t={},n=this.questions,o=0;o<n.length;o++){var r=n[o];if(!r.isEmpty())t[e?r.title:r.getValueName()]=r.getDisplayValue(e)}return t},t.prototype.getComments=function(){var e={};if(!this.data)return e;for(var t=this.questions,n=0;n<t.length;n++){var o=t[n],r=this.data.getComment(o.getValueName());r&&(e[o.getValueName()]=r)}return e},t.prototype.clearIncorrectValues=function(){for(var e=0;e<this.elements.length;e++)this.elements[e].clearIncorrectValues()},t.prototype.clearErrors=function(){for(var e=0;e<this.elements.length;e++)this.elements[e].clearErrors();this.errors=[]},t.prototype.markQuestionListDirty=function(){this.isQuestionsReady=!1,this.parent&&this.parent.markQuestionListDirty()},Object.defineProperty(t.prototype,"elements",{get:function(){return this.elementsValue},enumerable:!1,configurable:!0}),t.prototype.getElementsInDesign=function(e){return void 0===e&&(e=!1),this.elements},t.prototype.containsElement=function(e){for(var t=0;t<this.elements.length;t++){var n=this.elements[t];if(n==e)return!0;var o=n.getPanel();if(o&&o.containsElement(e))return!0}return!1},Object.defineProperty(t.prototype,"isRequired",{get:function(){return this.getPropertyValue("isRequired",!1)},set:function(e){this.setPropertyValue("isRequired",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredIf",{get:function(){return this.getPropertyValue("requiredIf","")},set:function(e){this.setPropertyValue("requiredIf",e)},enumerable:!1,configurable:!0}),t.prototype.searchText=function(t,n){e.prototype.searchText.call(this,t,n);for(var o=0;o<this.elements.length;o++)this.elements[o].searchText(t,n)},t.prototype.hasErrors=function(e,t,n){return void 0===e&&(e=!0),void 0===t&&(t=!1),void 0===n&&(n=null),n=n||{fireCallback:e,focuseOnFirstError:t,firstErrorQuestion:null,result:!1},this.hasErrorsCore(n),n.firstErrorQuestion&&n.firstErrorQuestion.focus(!0),n.result},t.prototype.hasErrorsInPanels=function(e){var t=[];if(this.hasRequiredError(e,t),this.survey){var n=this.survey.validatePanel(this);n&&(t.push(n),e.result=!0)}e.fireCallback&&(this.survey&&this.survey.beforeSettingPanelErrors(this,t),this.errors=t)},t.prototype.getErrorCustomText=function(e,t){return this.survey?this.survey.getErrorCustomText(e,t):e},t.prototype.hasRequiredError=function(e,t){if(this.isRequired){var n=[];if(this.addQuestionsToList(n,!0),0!=n.length){for(var o=0;o<n.length;o++)if(!n[o].isEmpty())return;e.result=!0,t.push(new Q(this.requiredErrorText,this)),e.focuseOnFirstError&&!e.firstErrorQuestion&&(e.firstErrorQuestion=n[0])}}},t.prototype.hasErrorsCore=function(e){for(var t=this.elements,n=null,o=0;o<t.length;o++)if((n=t[o]).isVisible)if(n.isPanel)n.hasErrorsCore(e);else{var r=n;if(r.isReadOnly)continue;r.hasErrors(e.fireCallback,e)&&(e.focuseOnFirstError&&null==e.firstErrorQuestion&&(e.firstErrorQuestion=r),e.result=!0)}this.hasErrorsInPanels(e),this.updateContainsErrors()},t.prototype.getContainsErrors=function(){var t=e.prototype.getContainsErrors.call(this);if(t)return t;for(var n=this.elements,o=0;o<n.length;o++)if(n[o].containsErrors)return!0;return!1},t.prototype.updateElementVisibility=function(){for(var e=0;e<this.elements.length;e++){var t=this.elements[e];t.setPropertyValue("isVisible",t.isVisible),t.isPanel&&t.updateElementVisibility()}},t.prototype.getFirstQuestionToFocus=function(e){void 0===e&&(e=!1);for(var t=this.elements,n=0;n<t.length;n++){var o=t[n];if(o.isVisible)if(o.isPanel){var r=o.getFirstQuestionToFocus(e);if(r)return r}else{var i=o;if(i.hasInput&&(!e||i.currentErrorCount>0))return i}}return null},t.prototype.focusFirstQuestion=function(){var e=this.getFirstQuestionToFocus();e&&e.focus()},t.prototype.focusFirstErrorQuestion=function(){var e=this.getFirstQuestionToFocus(!0);e&&e.focus()},t.prototype.addQuestionsToList=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1),this.addElementsToList(e,t,n,!1)},t.prototype.addPanelsIntoList=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1),this.addElementsToList(e,t,n,!0)},t.prototype.addElementsToList=function(e,t,n,o){t&&!this.visible||this.addElementsToListCore(e,this.elements,t,n,o)},t.prototype.addElementsToListCore=function(e,t,n,o,r){for(var i=0;i<t.length;i++){var a=t[i];n&&!a.visible||((r&&a.isPanel||!r&&!a.isPanel)&&e.push(a),a.isPanel?a.addElementsToListCore(e,a.elements,n,o,r):o&&this.addElementsToListCore(e,a.getElementsInDesign(!1),n,o,r))}},Object.defineProperty(t.prototype,"isActive",{get:function(){return!this.survey||this.survey.currentPage==this.root},enumerable:!1,configurable:!0}),t.prototype.updateCustomWidgets=function(){for(var e=0;e<this.elements.length;e++)this.elements[e].updateCustomWidgets()},Object.defineProperty(t.prototype,"questionTitleLocation",{get:function(){return this.getPropertyValue("questionTitleLocation")},set:function(e){this.setPropertyValue("questionTitleLocation",e.toLowerCase())},enumerable:!1,configurable:!0}),t.prototype.getQuestionTitleLocation=function(){return this.onGetQuestionTitleLocation?this.onGetQuestionTitleLocation():"default"!=this.questionTitleLocation?this.questionTitleLocation:this.parent?this.parent.getQuestionTitleLocation():this.survey?this.survey.questionTitleLocation:"top"},t.prototype.getStartIndex=function(){return this.parent?this.parent.getQuestionStartIndex():this.survey?this.survey.questionStartIndex:""},t.prototype.getQuestionStartIndex=function(){return this.getStartIndex()},t.prototype.getChildrenLayoutType=function(){return"row"},t.prototype.getProgressInfo=function(){return ft.getProgressInfoByElements(this.elements,this.isRequired)},Object.defineProperty(t.prototype,"root",{get:function(){for(var e=this;e.parent;)e=e.parent;return e},enumerable:!1,configurable:!0}),t.prototype.childVisibilityChanged=function(){this.getIsPageVisible(null)!==this.getPropertyValue("isVisible",!0)&&this.onVisibleChanged()},t.prototype.createRowAndSetLazy=function(e){var t=this.createRow();return t.setIsLazyRendering(this.isLazyRenderInRow(e)),t},t.prototype.createRow=function(){return new Rn(this)},t.prototype.onSurveyLoad=function(){for(var e=0;e<this.elements.length;e++)this.elements[e].onSurveyLoad();this.onElementVisibilityChanged(this)},t.prototype.onFirstRendering=function(){for(var e=0;e<this.elements.length;e++)this.elements[e].onFirstRendering();this.onRowsChanged()},Object.defineProperty(t.prototype,"rows",{get:function(){return this.getPropertyValue("rows")},enumerable:!1,configurable:!0}),t.prototype.ensureRowsVisibility=function(){this.rows.forEach((function(e){e.ensureVisibility()}))},t.prototype.onRowsChanged=function(){this.isLoadingFromJson||this.setPropertyValue("rows",this.buildRows())},t.prototype.onAddElement=function(e,t){if(e.setSurveyImpl(this.surveyImpl),e.parent=this,this.markQuestionListDirty(),this.updateRowsOnElementAdded(e,t),e.isPanel){var n=e;this.survey&&this.survey.panelAdded(n,t,this,this.root)}else if(this.survey){var o=e;this.survey.questionAdded(o,t,this,this.root)}this.addElementCallback&&this.addElementCallback(e);var r=this;e.registerFunctionOnPropertiesValueChanged(["visible","isVisible"],(function(){r.onElementVisibilityChanged(e)}),this.id),e.registerFunctionOnPropertyValueChanged("startWithNewLine",(function(){r.onElementStartWithNewLineChanged(e)}),this.id),this.onElementVisibilityChanged(this)},t.prototype.onRemoveElement=function(e){e.parent=null,this.markQuestionListDirty(),e.unRegisterFunctionOnPropertiesValueChanged(["visible","isVisible","startWithNewLine"],this.id),this.updateRowsOnElementRemoved(e),this.isRandomizing||(e.isPanel?this.survey&&this.survey.panelRemoved(e):this.survey&&this.survey.questionRemoved(e),this.removeElementCallback&&this.removeElementCallback(e),this.onElementVisibilityChanged(this))},t.prototype.onElementVisibilityChanged=function(e){this.isLoadingFromJson||this.isRandomizing||(this.updateRowsVisibility(e),this.childVisibilityChanged(),this.parent&&this.parent.onElementVisibilityChanged(this))},t.prototype.onElementStartWithNewLineChanged=function(e){this.onRowsChanged()},t.prototype.updateRowsVisibility=function(e){for(var t=this.rows,n=0;n<t.length;n++){var o=t[n];if(o.elements.indexOf(e)>-1){o.updateVisible(),o.visible&&!o.isNeedRender&&(o.isNeedRender=!0);break}}},t.prototype.canBuildRows=function(){return!this.isLoadingFromJson&&"row"==this.getChildrenLayoutType()},t.prototype.buildRows=function(){if(!this.canBuildRows())return[];for(var e=new Array,t=0;t<this.elements.length;t++){var n=this.elements[t],o=0==t||n.startWithNewLine,r=o?this.createRowAndSetLazy(e.length):e[e.length-1];o&&e.push(r),r.addElement(n)}for(t=0;t<e.length;t++)e[t].updateVisible();return e},t.prototype.isLazyRenderInRow=function(e){return!(!this.survey||!this.survey.isLazyRendering)&&(e>=a.lazyRowsRenderingStartRow||!this.canRenderFirstRows())},t.prototype.canRenderFirstRows=function(){return this.isPage},t.prototype.updateRowsOnElementAdded=function(e,t){if(this.canBuildRows()){var n=new En(null,e);n.target=e,n.isEdge=this.elements.length>1,this.elements.length<2?n.destination=this:(n.isBottom=t>0,n.destination=0==t?this.elements[1]:this.elements[t-1]),this.dragDropAddTargetToRow(n,null)}},t.prototype.updateRowsOnElementRemoved=function(e){this.canBuildRows()&&this.updateRowsRemoveElementFromRow(e,this.findRowByElement(e))},t.prototype.updateRowsRemoveElementFromRow=function(e,t){if(t&&t.panel){var n=t.elements.indexOf(e);n<0||(t.elements.splice(n,1),t.elements.length>0?t.updateVisible():t.index>=0&&t.panel.rows.splice(t.index,1))}},t.prototype.findRowByElement=function(e){for(var t=this.rows,n=0;n<t.length;n++)if(t[n].elements.indexOf(e)>-1)return t[n];return null},t.prototype.elementWidthChanged=function(e){if(!this.isLoadingFromJson){var t=this.findRowByElement(e);t&&t.updateVisible()}},Object.defineProperty(t.prototype,"processedTitle",{get:function(){return this.getRenderedTitle(this.locTitle.textOrHtml)},enumerable:!1,configurable:!0}),t.prototype.getRenderedTitle=function(e){return null!=this.textProcessor?this.textProcessor.processText(e,!0):e},Object.defineProperty(t.prototype,"visible",{get:function(){return this.getPropertyValue("visible",!0)},set:function(e){e!==this.visible&&(this.setPropertyValue("visible",e),this.setPropertyValue("isVisible",this.isVisible),this.isLoadingFromJson||this.onVisibleChanged())},enumerable:!1,configurable:!0}),t.prototype.onVisibleChanged=function(){if(!this.isRandomizing&&(this.setPropertyValue("isVisible",this.isVisible),this.survey&&this.survey.isClearValueOnHiddenContainer&&!this.isLoadingFromJson))for(var e=this.questions,t=0;t<e.length;t++)this.isVisible?e[t].updateValueWithDefaults():e[t].clearValue()},Object.defineProperty(t.prototype,"isVisible",{get:function(){return this.areInvisibleElementsShowing||this.getIsPageVisible(null)},enumerable:!1,configurable:!0}),t.prototype.getIsPageVisible=function(e){if(!this.visible)return!1;for(var t=0;t<this.elements.length;t++)if(this.elements[t]!=e&&this.elements[t].isVisible)return!0;return!1},t.prototype.setVisibleIndex=function(e){if(!this.isVisible||e<0)return this.resetVisibleIndexes(),0;this.lastVisibleIndex=e;var t=e;e+=this.beforeSetVisibleIndex(e);for(var n=this.getPanelStartIndex(e),o=n,r=0;r<this.elements.length;r++)o+=this.elements[r].setVisibleIndex(o);return this.isContinueNumbering()&&(e+=o-n),e-t},t.prototype.updateVisibleIndexes=function(){void 0!==this.lastVisibleIndex&&(this.resetVisibleIndexes(),this.setVisibleIndex(this.lastVisibleIndex))},t.prototype.resetVisibleIndexes=function(){for(var e=0;e<this.elements.length;e++)this.elements[e].setVisibleIndex(-1)},t.prototype.beforeSetVisibleIndex=function(e){return 0},t.prototype.getPanelStartIndex=function(e){return e},t.prototype.isContinueNumbering=function(){return!0},Object.defineProperty(t.prototype,"isReadOnly",{get:function(){var e=!!this.parent&&this.parent.isReadOnly,t=!!this.survey&&this.survey.isDisplayMode;return this.readOnly||e||t},enumerable:!1,configurable:!0}),t.prototype.onReadOnlyChanged=function(){for(var t=0;t<this.elements.length;t++){var n=this.elements[t];n.setPropertyValue("isReadOnly",n.isReadOnly)}e.prototype.onReadOnlyChanged.call(this)},t.prototype.updateElementCss=function(t){e.prototype.updateElementCss.call(this,t);for(var n=0;n<this.elements.length;n++){this.elements[n].updateElementCss(t)}},Object.defineProperty(t.prototype,"enableIf",{get:function(){return this.getPropertyValue("enableIf","")},set:function(e){this.setPropertyValue("enableIf",e)},enumerable:!1,configurable:!0}),t.prototype.addElement=function(e,t){return void 0===t&&(t=-1),!!this.canAddElement(e)&&(t<0||t>=this.elements.length?this.elements.push(e):this.elements.splice(t,0,e),!0)},t.prototype.insertElementAfter=function(e,t){var n=this.elements.indexOf(t);n>=0&&this.addElement(e,n+1)},t.prototype.insertElementBefore=function(e,t){var n=this.elements.indexOf(t);n>=0&&this.addElement(e,n)},t.prototype.canAddElement=function(e){return!!e&&e.isLayoutTypeSupported(this.getChildrenLayoutType())},t.prototype.addQuestion=function(e,t){return void 0===t&&(t=-1),this.addElement(e,t)},t.prototype.addPanel=function(e,t){return void 0===t&&(t=-1),this.addElement(e,t)},t.prototype.addNewQuestion=function(e,t,n){void 0===t&&(t=null),void 0===n&&(n=-1);var o=Gt.Instance.createQuestion(e,t);return this.addQuestion(o,n)?o:null},t.prototype.addNewPanel=function(e){void 0===e&&(e=null);var t=this.createNewPanel(e);return this.addPanel(t)?t:null},t.prototype.indexOf=function(e){return this.elements.indexOf(e)},t.prototype.createNewPanel=function(e){var t=R.createClass("panel");return t.name=e,t},t.prototype.removeElement=function(e){var t=this.elements.indexOf(e);if(t<0){for(var n=0;n<this.elements.length;n++)if(this.elements[n].removeElement(e))return!0;return!1}return this.elements.splice(t,1),!0},t.prototype.removeQuestion=function(e){this.removeElement(e)},t.prototype.runCondition=function(e,t){if(!this.isDesignMode&&!this.isLoadingFromJson){for(var n=this.elements.slice(),o=0;o<n.length;o++)n[o].runCondition(e,t);this.areInvisibleElementsShowing||this.runVisibleCondition(e,t),this.runEnableCondition(e,t),this.runRequiredCondition(e,t)}},t.prototype.runVisibleCondition=function(e,t){var n=this;if(this.visibleIf){var o=new Te(this.visibleIf);o.onRunComplete=function(e){n.visible=e},o.run(e,t)}},t.prototype.runEnableCondition=function(e,t){var n=this;if(this.enableIf){var o=new Te(this.enableIf);o.onRunComplete=function(e){n.readOnly=!e},o.run(e,t)}},t.prototype.runRequiredCondition=function(e,t){var n=this;if(this.requiredIf){var o=new Te(this.requiredIf);o.onRunComplete=function(e){n.isRequired=e},o.run(e,t)}},t.prototype.onAnyValueChanged=function(e){for(var t=this.elements,n=0;n<t.length;n++)t[n].onAnyValueChanged(e)},t.prototype.checkBindings=function(e,t){for(var n=this.elements,o=0;o<n.length;o++)n[o].checkBindings(e,t)},t.prototype.dragDropAddTarget=function(e){var t=this.dragDropFindRow(e.target);this.dragDropAddTargetToRow(e,t)&&this.updateRowsRemoveElementFromRow(e.target,t)},t.prototype.dragDropFindRow=function(e){if(!e||e.isPage)return null;for(var t=e,n=this.rows,o=0;o<n.length;o++)if(n[o].elements.indexOf(t)>-1)return n[o];for(o=0;o<this.elements.length;o++){var r=this.elements[o].getPanel();if(r){var i=r.dragDropFindRow(t);if(i)return i}}return null},t.prototype.dragDropAddTargetToRow=function(e,t){if(!e.destination)return!0;if(this.dragDropAddTargetToEmptyPanel(e))return!0;var n=e.destination,o=this.dragDropFindRow(n);return!o||(e.target.startWithNewLine?this.dragDropAddTargetToNewRow(e,o,t):this.dragDropAddTargetToExistingRow(e,o,t))},t.prototype.dragDropAddTargetToEmptyPanel=function(e){if(e.destination.isPage)return this.dragDropAddTargetToEmptyPanelCore(this.root,e.target,e.isBottom),!0;var t=e.destination;if(t.isPanel&&!e.isEdge){var n=t;if(e.target.template===t)return!1;if(e.nestedPanelDepth<0||e.nestedPanelDepth>=n.depth)return this.dragDropAddTargetToEmptyPanelCore(t,e.target,e.isBottom),!0}return!1},t.prototype.dragDropAddTargetToExistingRow=function(e,t,n){var o=t.elements.indexOf(e.destination);if(0==o&&!e.isBottom&&t.elements[0].startWithNewLine)return t.index>0?(e.isBottom=!0,t=t.panel.rows[t.index-1],e.destination=t.elements[t.elements.length-1],this.dragDropAddTargetToExistingRow(e,t,n)):this.dragDropAddTargetToNewRow(e,t,n);var r=-1;n==t&&(r=t.elements.indexOf(e.target)),e.isBottom&&o++;var i=this.findRowByElement(e.source);return(i!=t||i.elements.indexOf(e.source)!=o)&&(o!=r&&(r>-1&&(t.elements.splice(r,1),r<o&&o--),t.elements.splice(o,0,e.target),t.updateVisible(),r<0))},t.prototype.dragDropAddTargetToNewRow=function(e,t,n){var o=t.panel.createRowAndSetLazy(t.panel.rows.length);o.addElement(e.target);var r=t.index;if(e.isBottom&&r++,n&&n.panel==o.panel&&n.index==r)return!1;var i=this.findRowByElement(e.source);return(!i||i.panel!=o.panel||1!=i.elements.length||i.index!=r)&&(t.panel.rows.splice(r,0,o),!0)},t.prototype.dragDropAddTargetToEmptyPanelCore=function(e,t,n){var o=e.createRow();o.addElement(t),0==e.elements.length||n?e.rows.push(o):e.rows.splice(0,0,o)},t.prototype.dragDropMoveElement=function(e,t,n){n>e.parent.elements.indexOf(e)&&n--,this.removeElement(e),this.addElement(t,n)},Object.defineProperty(t.prototype,"no",{get:function(){return""},enumerable:!1,configurable:!0}),t.prototype.dispose=function(){if(e.prototype.dispose.call(this),this.rows){for(var t=0;t<this.rows.length;t++)this.rows[t].dispose();this.rows.splice(0,this.rows.length)}for(t=0;t<this.elements.length;t++)this.elements[t].dispose();this.elements.splice(0,this.elements.length)},t.panelCounter=100,t}(ft),qn=function(e){function t(t){void 0===t&&(t="");var n=e.call(this,t)||this,o=n;return n.createNewArray("footerActions"),n.registerFunctionOnPropertyValueChanged("width",(function(){o.parent&&o.parent.elementWidthChanged(o)})),n.registerFunctionOnPropertiesValueChanged(["indent","innerIndent","rightIndent"],(function(){o.onIndentChanged()})),n}return On(t,e),t.prototype.getType=function(){return"panel"},Object.defineProperty(t.prototype,"contentId",{get:function(){return this.id+"_content"},enumerable:!1,configurable:!0}),t.prototype.getSurvey=function(t){return void 0===t&&(t=!1),t?this.parent?this.parent.getSurvey(t):null:e.prototype.getSurvey.call(this,t)},t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.onIndentChanged()},t.prototype.onSetData=function(){e.prototype.onSetData.call(this),this.onIndentChanged()},Object.defineProperty(t.prototype,"isPanel",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"page",{get:function(){return this.getPage(this.parent)},set:function(e){this.setPage(this.parent,e)},enumerable:!1,configurable:!0}),t.prototype.delete=function(){this.parent&&this.removeSelfFromList(this.parent.elements)},t.prototype.moveTo=function(e,t){return void 0===t&&(t=null),this.moveToBase(this.parent,e,t)},Object.defineProperty(t.prototype,"visibleIndex",{get:function(){return this.getPropertyValue("visibleIndex",-1)},enumerable:!1,configurable:!0}),t.prototype.getTitleOwner=function(){return this},Object.defineProperty(t.prototype,"showNumber",{get:function(){return this.getPropertyValue("showNumber",!1)},set:function(e){this.setPropertyValue("showNumber",e),this.notifySurveyOnVisibilityChanged()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showQuestionNumbers",{get:function(){return this.getPropertyValue("showQuestionNumbers")},set:function(e){this.setPropertyValue("showQuestionNumbers",e),this.notifySurveyOnVisibilityChanged()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionStartIndex",{get:function(){return this.getPropertyValue("questionStartIndex","")},set:function(e){this.setPropertyValue("questionStartIndex",e)},enumerable:!1,configurable:!0}),t.prototype.getQuestionStartIndex=function(){return this.questionStartIndex?this.questionStartIndex:e.prototype.getQuestionStartIndex.call(this)},Object.defineProperty(t.prototype,"no",{get:function(){return this.getPropertyValue("no","")},enumerable:!1,configurable:!0}),t.prototype.setNo=function(e){this.setPropertyValue("no",s.getNumberByIndex(this.visibleIndex,this.getStartIndex()))},t.prototype.beforeSetVisibleIndex=function(e){var t=-1;return!this.showNumber||!this.isDesignMode&&this.locTitle.isEmpty||(t=e),this.setPropertyValue("visibleIndex",t),this.setNo(t),t<0?0:1},t.prototype.getPanelStartIndex=function(e){return"off"==this.showQuestionNumbers?-1:"onpanel"==this.showQuestionNumbers?0:e},t.prototype.isContinueNumbering=function(){return"off"!=this.showQuestionNumbers&&"onpanel"!=this.showQuestionNumbers},t.prototype.notifySurveyOnVisibilityChanged=function(){null==this.survey||this.isLoadingFromJson||this.survey.panelVisibilityChanged(this,this.isVisible)},t.prototype.hasErrorsCore=function(t){e.prototype.hasErrorsCore.call(this,t),this.isCollapsed&&t.result&&t.fireCallback&&this.expand()},t.prototype.getRenderedTitle=function(t){if(!t){if(this.isCollapsed||this.isExpanded)return this.name;if(this.isDesignMode)return"["+this.name+"]"}return e.prototype.getRenderedTitle.call(this,t)},Object.defineProperty(t.prototype,"width",{get:function(){return this.getPropertyValue("width")},set:function(e){this.setPropertyValue("width",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"indent",{get:function(){return this.getPropertyValue("indent")},set:function(e){this.setPropertyValue("indent",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"innerIndent",{get:function(){return this.getPropertyValue("innerIndent")},set:function(e){this.setPropertyValue("innerIndent",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderWidth",{get:function(){return this.getPropertyValue("renderWidth")},set:function(e){this.setPropertyValue("renderWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"startWithNewLine",{get:function(){return this.getPropertyValue("startWithNewLine")},set:function(e){this.setPropertyValue("startWithNewLine",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rightIndent",{get:function(){return this.getPropertyValue("rightIndent",0)},set:function(e){this.setPropertyValue("rightIndent",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowAdaptiveActions",{get:function(){return this.getPropertyValue("allowAdaptiveActions")},set:function(e){this.setPropertyValue("allowAdaptiveActions",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"paddingLeft",{get:function(){return this.getPropertyValue("paddingLeft","")},set:function(e){this.setPropertyValue("paddingLeft",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"innerPaddingLeft",{get:function(){return this.getPropertyValue("innerPaddingLeft","")},set:function(e){this.setPropertyValue("innerPaddingLeft",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"paddingRight",{get:function(){return this.getPropertyValue("paddingRight","")},set:function(e){this.setPropertyValue("paddingRight",e)},enumerable:!1,configurable:!0}),t.prototype.onIndentChanged=function(){this.getSurvey()&&(this.innerPaddingLeft=this.getIndentSize(this.innerIndent),this.paddingLeft=this.getIndentSize(this.indent),this.paddingRight=this.getIndentSize(this.rightIndent))},t.prototype.getIndentSize=function(e){if(e<1)return"";var t=this.survey.css;return t?e*t.question.indent+"px":""},t.prototype.clearOnDeletingContainer=function(){this.elements.forEach((function(e){(e instanceof Bt||e instanceof t)&&e.clearOnDeletingContainer()}))},Object.defineProperty(t.prototype,"footerActions",{get:function(){return this.getPropertyValue("footerActions")},enumerable:!1,configurable:!0}),t.prototype.getFooterToolbar=function(){var e=this;if(!this.footerToolbarValue){var t=this.footerActions;this.hasEditButton&&t.push({id:"cancel-preview",title:this.survey.editText,innerCss:this.survey.cssNavigationEdit,action:function(){e.cancelPreview()}}),this.footerToolbarValue=this.allowAdaptiveActions?new ct:new lt,this.cssClasses.panel&&(this.footerToolbarValue.containerCss=this.cssClasses.panel.footer),this.footerToolbarValue.setItems(t)}return this.footerToolbarValue},Object.defineProperty(t.prototype,"hasEditButton",{get:function(){return!(!this.survey||"preview"!==this.survey.state)&&1===this.depth},enumerable:!1,configurable:!0}),t.prototype.cancelPreview=function(){this.hasEditButton&&this.survey.cancelPreviewByPage(this)},Object.defineProperty(t.prototype,"cssTitle",{get:function(){return(new ze).append(this.cssClasses.panel.title).append(this.cssClasses.panel.titleExpandable,"default"!==this.state).append(this.cssClasses.panel.titleOnError,this.containsErrors).toString()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssError",{get:function(){return this.getCssError(this.cssClasses)},enumerable:!1,configurable:!0}),t.prototype.getCssError=function(e){var t=(new ze).append(this.cssClasses.error.root);return t.append("panel-error-root",t.isEmpty()).toString()},t.prototype.onVisibleChanged=function(){e.prototype.onVisibleChanged.call(this),this.notifySurveyOnVisibilityChanged()},t}(In);R.addClass("panelbase",["name",{name:"elements",alternativeName:"questions",baseClassName:"question",visible:!1,isLightSerializable:!1},{name:"visible:switch",default:!0},"visibleIf:condition","enableIf:condition","requiredIf:condition","readOnly:boolean",{name:"questionTitleLocation",default:"default",choices:["default","top","bottom","left","hidden"]},{name:"title:text",serializationProperty:"locTitle"},{name:"description:text",serializationProperty:"locDescription"},{name:"questionsOrder",default:"default",choices:["default","initial","random"]}],(function(){return new In})),R.addClass("panel",[{name:"state",default:"default",choices:["default","collapsed","expanded"]},"isRequired:switch",{name:"requiredErrorText:text",serializationProperty:"locRequiredErrorText"},{name:"startWithNewLine:boolean",default:!0},"width",{name:"innerIndent:number",default:0,choices:[0,1,2,3]},{name:"indent:number",default:0,choices:[0,1,2,3]},{name:"page",isSerializable:!1,visibleIf:function(e){var t=e?e.survey:null;return!t||t.pages.length>1},choices:function(e){var t=e?e.survey:null;return t?t.pages.map((function(e){return{value:e.name,text:e.title}})):[]}},"showNumber:boolean",{name:"showQuestionNumbers",default:"default",choices:["default","onpanel","off"]},"questionStartIndex",{name:"allowAdaptiveActions:boolean",default:!0,visible:!1}],(function(){return new qn}),"panelbase"),Jt.Instance.registerElement("panel",(function(e){return new qn(e)}));var Dn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),An=function(e){function t(t){void 0===t&&(t="");var n=e.call(this,t)||this;n.hasShownValue=!1,n.timeSpent=0;var o=n;return n.locTitle.onGetTextCallback=function(e){return o.num>0?o.num+". "+e:e},n.createLocalizableString("navigationTitle",n,!0),n.createLocalizableString("navigationDescription",n,!0),n}return Dn(t,e),t.prototype.getType=function(){return"page"},t.prototype.toString=function(){return this.name},Object.defineProperty(t.prototype,"isPage",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.canShowTitle=function(){return this.survey.showPageTitles},Object.defineProperty(t.prototype,"navigationTitle",{get:function(){return this.getLocalizableStringText("navigationTitle")},set:function(e){this.setLocalizableStringText("navigationTitle",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locNavigationTitle",{get:function(){return this.getLocalizableString("navigationTitle")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"navigationDescription",{get:function(){return this.getLocalizableStringText("navigationDescription")},set:function(e){this.setLocalizableStringText("navigationDescription",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locNavigationDescription",{get:function(){return this.getLocalizableString("navigationDescription")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"passed",{get:function(){return this.getPropertyValue("passed",!1)},set:function(e){this.setPropertyValue("passed",e)},enumerable:!1,configurable:!0}),t.prototype.delete=function(){this.survey&&this.removeSelfFromList(this.survey.pages)},t.prototype.onFirstRendering=function(){this.wasShown||e.prototype.onFirstRendering.call(this)},Object.defineProperty(t.prototype,"visibleIndex",{get:function(){return this.getPropertyValue("visibleIndex",-1)},set:function(e){this.setPropertyValue("visibleIndex",e)},enumerable:!1,configurable:!0}),t.prototype.canRenderFirstRows=function(){return!this.isDesignMode||0==this.visibleIndex},Object.defineProperty(t.prototype,"isStarted",{get:function(){return this.survey&&this.survey.isPageStarted(this)},enumerable:!1,configurable:!0}),t.prototype.calcCssClasses=function(e){var t={page:{},pageTitle:"",pageDescription:"",row:"",rowMultiple:""};return this.copyCssClasses(t.page,e.page),e.pageTitle&&(t.pageTitle=e.pageTitle),e.pageDescription&&(t.pageDescription=e.pageDescription),e.row&&(t.row=e.row),e.rowMultiple&&(t.rowMultiple=e.rowMultiple),this.survey&&this.survey.updatePageCssClasses(this,t),t},Object.defineProperty(t.prototype,"cssTitle",{get:function(){return(new ze).append(this.cssClasses.page.title).toString()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"num",{get:function(){return this.getPropertyValue("num",-1)},set:function(e){this.num!=e&&(this.setPropertyValue("num",e),this.onNumChanged(e))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"navigationButtonsVisibility",{get:function(){return this.getPropertyValue("navigationButtonsVisibility")},set:function(e){this.setPropertyValue("navigationButtonsVisibility",e.toLowerCase())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"wasShown",{get:function(){return this.hasShownValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasShown",{get:function(){return this.wasShown},enumerable:!1,configurable:!0}),t.prototype.setWasShown=function(e){if(e!=this.hasShownValue&&(this.hasShownValue=e,!this.isDesignMode&&!0===e)){for(var t=this.elements,n=0;n<t.length;n++)t[n].isPanel&&t[n].randomizeElements(this.areQuestionsRandomized);this.randomizeElements(this.areQuestionsRandomized)}},Object.defineProperty(t.prototype,"areQuestionsRandomized",{get:function(){return"random"==("default"==this.questionsOrder&&this.survey?this.survey.questionsOrder:this.questionsOrder)},enumerable:!1,configurable:!0}),t.prototype.scrollToTop=function(){this.survey&&this.survey.scrollElementToTop(this,null,this,this.id)},t.prototype.getPanels=function(e,t){void 0===e&&(e=!1),void 0===t&&(t=!1);var n=new Array;return this.addPanelsIntoList(n,e,t),n},Object.defineProperty(t.prototype,"maxTimeToFinish",{get:function(){return this.getPropertyValue("maxTimeToFinish",0)},set:function(e){this.setPropertyValue("maxTimeToFinish",e)},enumerable:!1,configurable:!0}),t.prototype.onNumChanged=function(e){},t.prototype.onVisibleChanged=function(){this.isRandomizing||(e.prototype.onVisibleChanged.call(this),null!=this.survey&&this.survey.pageVisibilityChanged(this,this.isVisible))},t.prototype.dragDropStart=function(e,t,n){void 0===n&&(n=-1),this.dragDropInfo=new En(e,t,n)},t.prototype.dragDropMoveTo=function(e,t,n){if(void 0===t&&(t=!1),void 0===n&&(n=!1),!this.dragDropInfo)return!1;if(this.dragDropInfo.destination=e,this.dragDropInfo.isBottom=t,this.dragDropInfo.isEdge=n,this.correctDragDropInfo(this.dragDropInfo),!this.dragDropCanDropTagert())return!1;if(!this.dragDropCanDropSource()||!this.dragDropAllowFromSurvey()){if(this.dragDropInfo.source){var o=this.dragDropFindRow(this.dragDropInfo.target);this.updateRowsRemoveElementFromRow(this.dragDropInfo.target,o)}return!1}return this.dragDropAddTarget(this.dragDropInfo),!0},t.prototype.correctDragDropInfo=function(e){if(e.destination){var t=e.destination.isPanel?e.destination:null;t&&(e.target.isLayoutTypeSupported(t.getChildrenLayoutType())||(e.isEdge=!0))}},t.prototype.dragDropAllowFromSurvey=function(){var e=this.dragDropInfo.destination;if(!e||!this.survey)return!0;var t=null,n=null,o=e.isPage||!this.dragDropInfo.isEdge&&e.isPanel?e:e.parent;if(!e.isPage){var r=e.parent;if(r){var i=r.elements,a=i.indexOf(e);a>-1&&(t=e,n=e,this.dragDropInfo.isBottom?t=a<i.length-1?i[a+1]:null:n=a>0?i[a-1]:null)}}var s={target:this.dragDropInfo.target,source:this.dragDropInfo.source,parent:o,insertAfter:n,insertBefore:t};return this.survey.dragAndDropAllow(s)},t.prototype.dragDropFinish=function(e){if(void 0===e&&(e=!1),this.dragDropInfo){var t=this.dragDropInfo.target,n=this.dragDropFindRow(t),o=this.dragDropGetElementIndex(t,n);if(this.updateRowsRemoveElementFromRow(t,n),!e&&n){var r=this.dragDropInfo.source;r&&r.parent&&(n.panel==r.parent?(n.panel.dragDropMoveElement(r,t,o),o=-1):r.parent.removeElement(r)),o>-1&&n.panel.addElement(t,o)}return this.dragDropInfo=null,e?null:t}},t.prototype.dragDropGetElementIndex=function(e,t){if(!t)return-1;var n=t.elements.indexOf(e);if(0==t.index)return n;var o=t.panel.rows[t.index-1],r=o.elements[o.elements.length-1];return n+t.panel.elements.indexOf(r)+1},t.prototype.dragDropCanDropTagert=function(){var e=this.dragDropInfo.destination;return!(e&&!e.isPage)||this.dragDropCanDropCore(this.dragDropInfo.target,e)},t.prototype.dragDropCanDropSource=function(){var e=this.dragDropInfo.source;if(!e)return!0;var t=this.dragDropInfo.destination;return!!this.dragDropCanDropCore(e,t)&&this.dragDropCanDropNotNext(e,t,this.dragDropInfo.isEdge,this.dragDropInfo.isBottom)},t.prototype.dragDropCanDropCore=function(e,t){if(!t)return!0;if(this.dragDropIsSameElement(t,e))return!1;if(e.isPanel){var n=e;if(n.containsElement(t)||n.getElementByName(t.name))return!1}return!0},t.prototype.dragDropCanDropNotNext=function(e,t,n,o){if(!t||t.isPanel&&!n)return!0;if(void 0===e.parent||e.parent!==t.parent)return!0;var r=e.parent,i=r.elements.indexOf(e),a=r.elements.indexOf(t);return a<i&&!o&&a--,o&&a++,i<a?a-i>1:i-a>0},t.prototype.dragDropIsSameElement=function(e,t){return e==t||e.name==t.name},t.prototype.ensureRowsVisibility=function(){e.prototype.ensureRowsVisibility.call(this),this.getPanels().forEach((function(e){return e.ensureRowsVisibility()}))},t}(In);R.addClass("page",[{name:"navigationButtonsVisibility",default:"inherit",choices:["inherit","show","hide"]},{name:"maxTimeToFinish:number",default:0,minValue:0},{name:"navigationTitle",visibleIf:function(e){return!!e.survey&&"buttons"===e.survey.progressBarType},serializationProperty:"locNavigationTitle"},{name:"navigationDescription",visibleIf:function(e){return!!e.survey&&"buttons"===e.survey.progressBarType},serializationProperty:"locNavigationDescription"},{name:"title:text",serializationProperty:"locTitle"},{name:"description:text",serializationProperty:"locDescription"}],(function(){return new An}),"panelbase");var jn=function(){function e(){}return Object.defineProperty(e,"serviceUrl",{get:function(){return a.surveyServiceUrl},set:function(e){a.surveyServiceUrl=e},enumerable:!1,configurable:!0}),e.prototype.loadSurvey=function(t,n){var o=new XMLHttpRequest;o.open("GET",e.serviceUrl+"/getSurvey?surveyId="+t),o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.onload=function(){var e=JSON.parse(o.response);n(200==o.status,e,o.response)},o.send()},e.prototype.getSurveyJsonAndIsCompleted=function(t,n,o){var r=new XMLHttpRequest;r.open("GET",e.serviceUrl+"/getSurveyAndIsCompleted?surveyId="+t+"&clientId="+n),r.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),r.onload=function(){var e=JSON.parse(r.response),t=e?e.survey:null,n=e?e.isCompleted:null;o(200==r.status,t,n,r.response)},r.send()},e.prototype.sendResult=function(t,n,o,r,i){void 0===r&&(r=null),void 0===i&&(i=!1);var a=new XMLHttpRequest;a.open("POST",e.serviceUrl+"/post/"),a.setRequestHeader("Content-Type","application/json; charset=utf-8");var s={postId:t,surveyResult:JSON.stringify(n)};r&&(s.clientId=r),i&&(s.isPartialCompleted=!0);var l=JSON.stringify(s);a.onload=a.onerror=function(){o&&o(200===a.status,a.response,a)},a.send(l)},e.prototype.sendFile=function(t,n,o){var r=new XMLHttpRequest;r.onload=r.onerror=function(){o&&o(200==r.status,JSON.parse(r.response))},r.open("POST",e.serviceUrl+"/upload/",!0);var i=new FormData;i.append("file",n),i.append("postId",t),r.send(i)},e.prototype.getResult=function(t,n,o){var r=new XMLHttpRequest,i="resultId="+t+"&name="+n;r.open("GET",e.serviceUrl+"/getResult?"+i),r.setRequestHeader("Content-Type","application/x-www-form-urlencoded");r.onload=function(){var e=null,t=null;if(200==r.status)for(var n in t=[],(e=JSON.parse(r.response)).QuestionResult){var i={name:n,value:e.QuestionResult[n]};t.push(i)}o(200==r.status,e,t,r.response)},r.send()},e.prototype.isCompleted=function(t,n,o){var r=new XMLHttpRequest,i="resultId="+t+"&clientId="+n;r.open("GET",e.serviceUrl+"/isCompleted?"+i),r.setRequestHeader("Content-Type","application/x-www-form-urlencoded");r.onload=function(){var e=null;200==r.status&&(e=JSON.parse(r.response)),o(200==r.status,e,r.response)},r.send()},e}(),Ln=function(){function e(){this.sheet=null,e.Enabled&&(this.sheet=e.findSheet(e.SurveyJSStylesSheetId),this.sheet||(this.sheet=e.createSheet(e.SurveyJSStylesSheetId),this.initializeStyles(this.sheet)))}return e.findSheet=function(e){if("undefined"==typeof document)return null;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode&&document.styleSheets[t].ownerNode.id===e)return document.styleSheets[t];return null},e.createSheet=function(e){var t=document.createElement("style");return t.id=e,t.appendChild(document.createTextNode("")),document.head.appendChild(t),t.sheet},e.applyTheme=function(t,n){var o;if(void 0===t&&(t="default"),void 0===n&&(n=".sv_main"),"modern"===t&&(n=".sv-root-modern "),-1!==["bootstrap","bootstrapmaterial","modern"].indexOf(t)?(o=e[t+"ThemeCss"],kn.currentType=t):(o=e.ThemeCss,kn.currentType="standard"),e.Enabled){var r=e.findSheet(t+n);if(!r){r=e.createSheet(t+n);var i=e.ThemeColors[t]||e.ThemeColors.default;Object.keys(o).forEach((function(e){var t=o[e];Object.keys(i).forEach((function(e){return t=t.replace(new RegExp("\\"+e,"g"),i[e])}));try{r.insertRule(n+e+" { "+t+" }",0)}catch(e){}}))}}},e.prototype.initializeStyles=function(t){e.Enabled&&(Object.keys(e.Styles).forEach((function(n){try{t.insertRule(n+" { "+e.Styles[n]+" }",0)}catch(e){}})),Object.keys(e.Media).forEach((function(n){try{t.insertRule(e.Media[n].media+" { "+n+" { "+e.Media[n].style+" } }",0)}catch(e){}})))},e.SurveyJSStylesSheetId="surveyjs-styles",e.Styles={".sv_main span":"word-break: break-word;",".sv_main legend":"border: none; margin: 0;",".sv_bootstrap_css .sv_qstn":"padding: 0.5em 1em 1.5em 1em;",".sv_bootstrap_css .sv_qcbc input[type=checkbox], .sv_bootstrap_css .sv_qcbc input[type=radio]":"vertical-align: middle; margin-top: -1px",".sv_bootstrap_css .sv_qstn fieldset":"display: block;",".sv_bootstrap_css .sv_qstn  .sv_q_checkbox_inline, .sv_bootstrap_css .sv_qstn .sv_q_radiogroup_inline":"display: inline-block;",".sv_bootstrap_css .sv-paneldynamic__progress-container ":"position: relative; margin-right: 250px; margin-left: 40px; margin-top: 10px;",".sv_main.sv_bootstrapmaterial_css .sv_q_radiogroup_control_label":"display: inline; position: static;",".sv_main.sv_bootstrapmaterial_css .checkbox":"margin-top:10px;margin-bottom:10px;",".sv_row":"clear: both; min-width:300px;",".sv_row .sv_qstn":"float: left",".sv_row .sv_qstn:last-child":"float: none",".sv_qstn":"display: vertical-align: top; overflow: auto; min-width:300px;",".sv_p_container":"display: vertical-align: top; min-width:300px;",".sv_q_title .sv_question_icon":"float: right; margin-right: 1em;",".sv_q_title .sv_question_icon::before":"content: ''; background-repeat: no-repeat; background-position: center; padding: 0.5em; display: inline-block; background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAyMi4wLjEsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiDQoJIHZpZXdCb3g9IjAgMCAxMCAxMCIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMTAgMTA7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI+DQoJLnN0MHtmaWxsOiM2RDcwNzI7fQ0KPC9zdHlsZT4NCjxwb2x5Z29uIGNsYXNzPSJzdDAiIHBvaW50cz0iMiwyIDAsNCA1LDkgMTAsNCA4LDIgNSw1ICIvPg0KPC9zdmc+DQo=);",".sv_q_title .sv_question_icon.sv_expanded::before":"transform: rotate(180deg);",".sv_qbln .checkbox-material":"margin-right: 3px;",".sv_qcbx .checkbox-material":"margin-right: 5px;",".sv_qcbx .checkbox label":"justify-content: left; display: inline-block;",".sv_qstn .radio label":"justify-content: left; display: inline-block;",".sv_qstn .sv_q_imgsel > label img":"pointer-events: none;",".sv_qstn .sv_q_imgsel.sv_q_imagepicker_inline":"display: inline-block;",".sv_qstn label.sv_q_m_label":"position: absolute; margin: 0; display: block; width: 100%;",".sv_qstn td":"position: relative;",".sv_q_mt_item_value":"float: left;",'[dir="rtl"] .sv_q_mt_item_value':"float: right;",".sv_qstn.sv_qstn_left":"margin-top: 0.75em;",".sv_qstn .title-left":"float: left; margin-right: 1em;",'[dir="rtl"] .sv_qstn .title-left':"float: right; margin-left: 1em;",".sv_qstn .content-left":"overflow: hidden",".sv_q_radiogroup_inline .sv_q_radiogroup_other":"display: inline-block;",".sv_q_checkbox_inline .sv_q_checkbox_other":"display: inline-block;",".sv_q_checkbox_inline, .sv_q_radiogroup_inline, .sv_q_imagepicker_inline":"line-height: 2.5em;",".form-inline .sv_q_checkbox_inline:not(:last-child)":"margin-right: 1em;",".form-inline .sv_q_radiogroup_inline:not(:last-child)":"margin-right: 1em;",".sv_imgsel .sv_q_imagepicker_inline:not(:last-child)":"margin-right: 1em;",".sv_qstn fieldset":"border: none; margin: 0; padding: 0;",".sv_qstn .sv_q_file_placeholder":"display:none",".sv_p_title":"padding-left: 1em; padding-bottom: 0.3em;",".sv_p_title_expandable":"cursor: pointer;",".sv_q_title_expandable":"cursor: pointer;",".sv_p_title .sv_panel_icon":"float: right; margin-right: 1em;",".sv_p_title .sv_panel_icon::before":"content: ''; background-repeat: no-repeat; background-position: center; padding: 0.5em; display: inline-block; background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAyMi4wLjEsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiDQoJIHZpZXdCb3g9IjAgMCAxMCAxMCIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMTAgMTA7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI+DQoJLnN0MHtmaWxsOiM2RDcwNzI7fQ0KPC9zdHlsZT4NCjxwb2x5Z29uIGNsYXNzPSJzdDAiIHBvaW50cz0iMiwyIDAsNCA1LDkgMTAsNCA4LDIgNSw1ICIvPg0KPC9zdmc+DQo=);",".sv_p_title .sv_panel_icon.sv_expanded::before":"transform: rotate(180deg);",".sv_p_footer":"padding-left: 1em; padding-bottom: 1em;padding-top: 1em;",".sv_matrix_cell_detail_button":"position: relative",".sv_detail_panel_icon":"display: block; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 14px; height: 14px;",".sv_detail_panel_icon::before":"content: ''; background-repeat: no-repeat; background-position: center; width: 14px; height: 14px; display: block; transform: rotate(270deg); background-image: url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3C!-- Generator: Adobe Illustrator 21.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 15 15' style='enable-background:new 0 0 15 15;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0%7Bfill:%23FFFFFF;%7D%0A%3C/style%3E%3Cpolygon class='st0' points='14,5.5 12.6,4.1 7.5,9.1 2.4,4.1 1,5.5 7.5,12 '/%3E%3C/svg%3E%0A\");",".sv_detail_panel_icon.sv_detail_expanded::before":"transform: rotate(0deg)",".sv_matrix_empty_rows_section":"text-align: center; vertical-align: middle;",".sv_matrix_empty_rows_text":"padding:20px",".sv_q_file > input[type=file], .sv_q_file > button":"display: inline-block;",".sv_q_file_preview":"display: inline-block; vertical-align: top; border: 1px solid lightgray; padding: 5px; margin-top: 10px;",".sv_q_file_preview > a":"display: block; overflow: hidden; vertical-align: top; white-space: nowrap; text-overflow: ellipsis;",".sv_q_file_remove_button":"line-height: normal;",".sv_q_file_remove":"display: block; cursor: pointer;",".sv_q_m_cell_text":"cursor: pointer;",".sv_q_dd_other":"margin-top: 1em;",".sv_q_dd_other input":"width: 100%;",".sv_qstn .sv-q-col-1, .sv-question .sv-q-col-1":"width: 100%; display: inline-block; padding-right: 1em; box-sizing: border-box; word-break: break-word;",".sv_qstn .sv-q-col-2, .sv-question .sv-q-col-2":"width: calc(50% - 1em); display: inline-block; padding-right: 1em; box-sizing: border-box; word-break: break-word;",".sv_qstn .sv-q-col-3, .sv-question .sv-q-col-3":"width: calc(33.33333% - 1em); display: inline-block; padding-right: 1em; box-sizing: border-box; word-break: break-word;",".sv_qstn .sv-q-col-4, .sv-question .sv-q-col-4":"width: calc(25% - 1em); display: inline-block; padding-right: 1em; box-sizing: border-box; word-break: break-word;",".sv_qstn .sv-q-col-5, .sv-question .sv-q-col-5":"width: calc(20% - 1em); display: inline-block; padding-right: 1em; box-sizing: border-box; word-break: break-word;",".sv_qstn .sv-q-column-1, .sv-question .sv-q-column-1":"width: 100%; max-width: 100%; display: inline-block; padding-right: 1em; box-sizing: border-box; word-break: break-word;",".sv_qstn .sv-q-column-2, .sv-question .sv-q-column-2":"max-width: 50%; display: inline-block; padding-right: 1em; box-sizing: border-box; word-break: break-word;",".sv_qstn .sv-q-column-3, .sv-question .sv-q-column-3":"max-width: 33.33333%; display: inline-block; padding-right: 1em; box-sizing: border-box; word-break: break-word;",".sv_qstn .sv-q-column-4, .sv-question .sv-q-column-4":"max-width: 25%; display: inline-block; padding-right: 1em; box-sizing: border-box; word-break: break-word;",".sv_qstn .sv-q-column-5, .sv-question .sv-q-column-5":"max-width: 20%; display: inline-block; padding-right: 1em; box-sizing: border-box; word-break: break-word;",".sv_qstn .sv_q_file_input":"color: transparent;",".sv_qstn .sv_q_imgsel label > div":"overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding: 4px; border: 1px solid lightgray; border-radius: 4px;",".sv_qstn .sv_q_imgsel label > div > img, .sv_qstn .sv_q_imgsel label > div > embed":"display: block;",".sv_qstn table tr td .sv_q_m_cell_label":"position: absolute; left: 0; right: 0; top: 0; bottom: 0;","f-panel":"padding: 0.5em 1em; display: inline-block; line-height: 2em;",".sv_progress_bar > span":"white-space: nowrap;",".sv_progress-buttons__container-center":"text-align: center;",".sv_progress-buttons__container":"display: inline-block; font-size: 0; width: 100%; max-width: 1100px; white-space: nowrap; overflow: hidden;",".sv_progress-buttons__image-button-left":"display: inline-block; vertical-align: top; margin-top: 22px; font-size: 14px; width: 16px; height: 16px; cursor: pointer; background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAyMi4wLjEsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiDQoJIHZpZXdCb3g9IjAgMCAxNiAxNiIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMTYgMTY7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxwb2x5Z29uIHBvaW50cz0iMTEsMTIgOSwxNCAzLDggOSwyIDExLDQgNyw4ICIvPg0KPC9zdmc+DQo=);",".sv_progress-buttons__image-button-right":"display: inline-block; vertical-align: top; margin-top: 22px; font-size: 14px; width: 16px; height: 16px; cursor: pointer; background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAyMi4wLjEsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiDQoJIHZpZXdCb3g9IjAgMCAxNiAxNiIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMTYgMTY7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxwb2x5Z29uIHBvaW50cz0iNSw0IDcsMiAxMyw4IDcsMTQgNSwxMiA5LDggIi8+DQo8L3N2Zz4NCg==);",".sv_progress-buttons__image-button--hidden":"visibility: hidden;",".sv_progress-buttons__list-container":"max-width: calc(100% - 36px); display: inline-block; overflow: hidden;",".sv_progress-buttons__list":"display: inline-block; width: max-content; padding-left: 28px; padding-right: 28px; margin-top: 14px; margin-bottom: 14px;",".sv_progress-buttons__list li":"width: 138px; font-size: 14px; font-family: 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif; position: relative; text-align: center; vertical-align: top; display: inline-block;",".sv_progress-buttons__list li:before":"width: 24px; height: 24px; content: ''; line-height: 30px; display: block; margin: 0 auto 10px auto; border: 3px solid; border-radius: 50%; box-sizing: content-box; cursor: pointer;",".sv_progress-buttons__list li:after":"width: 73%; height: 3px; content: ''; position: absolute; top: 15px; left: -36.5%;",".sv_progress-buttons__list li:first-child:after":"content: none;",".sv_progress-buttons__list .sv_progress-buttons__page-title":"width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: bold;",".sv_progress-buttons__list .sv_progress-buttons__page-description":"width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;",".sv_progress-buttons__list li.sv_progress-buttons__list-element--nonclickable:before":"cursor: not-allowed;",".sv-ranking":"outline: none; user-select: none; touch-action: none;",".sv-ranking-item":"cursor: pointer; margin-bottom: 5px;position: relative;",".sv-ranking-item:focus .sv-ranking-item__icon--hover":"visibility: hidden;",".sv-ranking-item:hover .sv-ranking-item__icon--hover":"visibility: visible;",".sv-question--disabled .sv-ranking-item:hover .sv-ranking-item__icon--hover":"visibility: hidden;",".sv-ranking-item:focus":"outline: none;",".sv-ranking-item:focus .sv-ranking-item__icon--focus":"visibility: visible; top: 15px;",".sv-ranking-item:focus .sv-ranking-item__index":"background: white; border: 2px solid #19b394;",".sv-ranking-item__content":"display: inline-block;background-color: white;padding-top: 5px;padding-bottom: 5px;padding-left: 35px;padding-right: 10px; border-radius: 100px;",".sv-ranking-item__icon-container":"position: absolute;left: 0;top: 0;bottom: 0;width: 35px;",".sv-ranking-item__icon":"visibility: hidden;left:10px;top:20px;fill:#19b394;position: absolute;",".sv-ranking-item__index":"display: inline-block;padding: 10px 16px;background: rgba(25, 179, 148, 0.1);border-radius: 100px;border: 2px solid transparent; margin-right: 10px;",".sv-ranking-item__text":"display: inline-block;",".sv-ranking-item__ghost":"display: none;background: #f3f3f3;border-radius: 100px;width: 200px;height: 55px;z-index: 1;position: absolute;left: 35px;",".sv-ranking-item--ghost .sv-ranking-item__ghost":"display: block;",".sv-ranking-item--ghost .sv-ranking-item__content":"visibility: hidden;",".sv-ranking-item--drag .sv-ranking-item__content":"box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1);border-radius: 100px;",".sv-ranking--drag .sv-ranking-item:hover .sv-ranking-item__icon":"visibility: hidden;",".sv-ranking-item--drag .sv-ranking-item__icon--hover":"visibility: visible;",".sv-ranking--mobile .sv-ranking-item__icon--hover":"visibility:visible; fill:#9f9f9f;",".sv-ranking--mobile.sv-ranking--drag .sv-ranking-item--ghost .sv-ranking-item__icon.sv-ranking-item__icon--hover":"visibility:hidden;",".sv_qstn .sv_q_select_column":"display: inline-block; vertical-align: top; min-width: 10%;",".sv_qstn .sv_q_select_column > *:not(.sv_technical)":"display: block;",".sv_main .sv_container .sv_body .sv_p_root .sv_qstn .sv_q_select_column textarea":"margin-left: 0; padding-left: 0; line-height: initial;",".sv_main .sv-hidden":"display: none !important;",".sv_main .sv-visuallyhidden":"position: absolute; height: 1px !important; width: 1px !important; overflow: hidden; clip: rect(1px 1px 1px 1px); clip: rect(1px, 1px, 1px, 1px);",".sv_main .sv-progress":"height: 0.19em; background-color: $header-background-color; position: relative;",".sv_main .sv-progress__bar":"background-color: $main-color; height: 100%; position: relative;",".sv_main .sv-paneldynamic__progress-container":"position: relative; display: inline-block; width: calc(100% - 250px); margin-top: 20px;",".sv_main .sv-paneldynamic__add-btn":"float: right;",".sv_main .sv-paneldynamic__add-btn--list-mode":"float: none; margin-top: 0;",".sv_main .sv-paneldynamic__remove-btn":"margin-top: 1.25em;",".sv_main .sv-paneldynamic__remove-btn--right":"margin-top: 0; margin-left: 1.25em;",".sv_main .sv-paneldynamic__prev-btn, .sv_main .sv-paneldynamic__next-btn":"box-sizing: border-box; display: inline-block; cursor: pointer; width: 0.7em; top: -0.28em; position: absolute;",".sv_main .sv-paneldynamic__prev-btn":"left: -1.3em; transform: rotate(90deg);",".sv_main .sv-paneldynamic__next-btn ":"right: -1.3em; transform: rotate(270deg);",".sv_main .sv-paneldynamic__prev-btn.sv-paneldynamic__prev-btn--disabled, .sv_main .sv-paneldynamic__next-btn.sv-paneldynamic__next-btn--disabled":"cursor: auto;",".sv_main .sv-paneldynamic__progress-text":"font-weight: bold; font-size: 0.87em; margin-top: 0.69em; margin-left: 4em",".sv_main .sv-boolean__switch":"display: inline-block; box-sizing: border-box; width: 63px; height: 24px; margin-right: 17px; margin-left: 21px; padding: 2px 3px; vertical-align: middle; border-radius: 12px; cursor: pointer;",".sv_main .sv-boolean__slider":"display: inline-block; width: 20px; height: 20px; transition-duration: .4s; transition-property: margin-left; border: none; border-radius: 100%;",".sv_main .sv-boolean__label":"vertical-align: middle; cursor: pointer;",".sv_main .sv-boolean--indeterminate  .sv-boolean__slider":"margin-left: calc(50% - 10px);",".sv_main .sv-boolean--checked  .sv-boolean__slider":"margin-left: calc(100% - 20px);","[dir='rtl'] .sv-boolean__label ":"float: right;","[dir='rtl'] .sv-boolean--indeterminate .sv-boolean__slider":"margin-right: calc(50% - 0.625em);","[dir='rtl'] .sv-boolean--checked .sv-boolean__slider":"margin-right: calc(100% - 1.25em);","[dir='rtl'] .sv-boolean__switch":"float: right;","[style*='direction:rtl'] .sv-boolean__label ":"float: right;","[style*='direction:rtl'] .sv-boolean--indeterminate .sv-boolean__slider":"margin-right: calc(50% - 0.625em);","[style*='direction:rtl'] .sv-boolean--checked .sv-boolean__slider":"margin-right: calc(100% - 1.25em);","[style*='direction:rtl'] .sv-boolean__switch":"float: right;",".sv_main .sv_q_num":"",".sv_main .sv_q_num + span":"",".sv_main .sjs_sp_container":"position: relative; box-sizing: content-box;",".sv_main .sjs_sp_controls":"position: absolute; left: 0; bottom: 0;",".sv_main .sjs_sp_controls > button":"user-select: none;",".sv_main .sjs_sp_container>div>canvas:focus":"outline: none;",".sv_main .sjs_sp_placeholder":"display: flex;  align-items: center; justify-content: center; position: absolute; z-index: 0; user-select: none; pointer-events: none; width: 100%; height: 100%;",".sv_main .sv_logo":"",".sv_main .sv-logo--left":"display: inline-block; vertical-align: top; margin-right: 2em;",".sv_main .sv-logo--right":"display: inline-block; vertical-align: top; margin-left: 2em; float: right;",".sv_main .sv-logo--right+.sv-logo--right-tail":"clear: both;",".sv_main .sv-logo--top":"display: block; width: 100%; text-align: center;",".sv_main .sv-logo--bottom":"display: block; width: 100%; text-align: center;",".sv_main .sv_header__text":"display: inline-block; vertical-align: top; max-width: 100%",".sv_main .sv-expand-action:before":"content: \"\"; display: inline-block; background-image: url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3C!-- Generator: Adobe Illustrator 21.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 10 10' style='enable-background:new 0 0 10 10;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0%7Bfill:%23404040;%7D%0A%3C/style%3E%3Cpolygon class='st0' points='2,2 0,4 5,9 10,4 8,2 5,5 '/%3E%3C/svg%3E%0A\"); background-repeat: no-repeat; background-position: center center; height: 10px; width: 12px; margin: auto 8px;",".sv_main .sv-expand-action--expanded:before":"transform: rotate(180deg);",".sv_main .sv-action-bar":"display: flex; position: relative; align-items: center; margin-left: auto; padding: 0 0 0 16px; overflow: hidden; white-space: nowrap;",".sv_main .sv-action-bar-separator":"display: inline-block; width: 1px; height: 24px; vertical-align: middle; margin-right: 16px; background-color: #d6d6d6;",".sv_main .sv-action-bar-item":"-webkit-appearance: none; -moz-appearance: none; appearance: none; display: flex; height: 40px; padding: 8px; box-sizing: border-box; margin-right: 16px; border: none; border-radius: 2px; background-color: transparent; cursor: pointer; line-height: 24px; font-size: 16px; overflow-x: hidden; white-space: nowrap; min-width: auto; font-weight: normal",".sv_main .sv-action-bar-item__title":"vertical-align: middle; white-space: nowrap;",".sv_main .sv-action-bar-item__title--with-icon":"margin-left: 8px;",".sv_main .sv-action__content":"display: flex; flex-direction: row; align-items: center;",".sv_main .sv-action__content > *":"flex: 0 0 auto;",".sv_main .sv-action--hidden":"width: 0px; height: 0px; overflow: hidden;",".sv_main .sv-action-bar-item__icon svg":"display: block;",".sv_main .sv-action-bar-item:active":"opacity: 0.5;",".sv_main .sv-action-bar-item:focus":"outline: none;",".sv_main .sv-title-actions":"display: flex;align-items: center;",".sv_main .sv-title-actions__title":"flex-wrap: wrap; max-width: 90%; min-width: 50%;",".sv_main .sv-title-actions__bar":"min-width: 56px;",".sv_main .sv_matrix_cell_actions .sv-action-bar":"margin-left: 0; padding-left: 0;",".sv_main .sv_p_wrapper_in_row":"display: flex; flex-direction: row; align-items: center;",".sv_main  .sv_p_remove_btn_right":"margin-left: 1em;",".sv_main .sv-button-group":"display: flex; align-items: center; flex-direction: row; font-size: 16px; height: 48px; overflow: auto;",".sv_main .sv-button-group__item":"display: flex; box-sizing: border-box; flex-direction: row; justify-content: center; align-items: center; width: 100%; padding: 11px 16px; line-height: 24px; border-width: 1px; border-style: solid; outline: none; font-size: 16px; font-weight: 400; cursor: pointer; overflow: hidden;",".sv_main .sv-button-group__item:not(:first-of-type)":"margin-left: -1px;",".sv_main .sv-button-group__item-icon":"display: block; height: 24px;",".sv_main .sv-button-group__item--selected":"font-weight: 600;",".sv_main .sv-button-group__item-decorator":"display: flex; align-items: center; max-width: 100%;",".sv_main  .sv-button-group__item-icon + .sv-button-group__item-caption":"margin-left: 8px",".sv_main .sv-button-group__item-caption":"display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;",".sv_main .sv-button-group__item--disabled":"color: cursor: default;","sv-popup":"display: block; position: absolute; z-index: -1;",".sv-popup":"position: fixed; left: 0; top: 0; z-index: 1000; width: 100vw; height: 100vh; outline: none;",".sv-popup--modal":"display: flex; align-items: center; justify-content: center;",".sv-popup--modal .sv-popup__container":"position: static; filter: none; padding: calc(4 * 8px);",".sv-popup__container":"position: absolute; filter: drop-shadow(0px calc(1 * 8px) calc(2 * 8px) rgba(0, 0, 0, 0.1)); padding: calc(1 * 8px) 0; background: white; border-radius: 4px; display: flex; flex-direction: column; max-height: 90vh; max-width: 90vw; box-sizing: border-box;",".sv-popup__scrolling-content":"overflow: auto;",".sv-popup__scrolling-content::-webkit-scrollbar":"height: 6px; width: 6px; background-color: #f3f3f3;",".sv-popup__scrolling-content::-webkit-scrollbar-thumb":"background: rgba(25, 179, 148, 0.1);",".sv-popup__content":"min-width: 100%;",".sv-popup--show-pointer.sv-popup--top":"transform: translateY(calc(-1 * 8px));",".sv-popup--show-pointer.sv-popup--top .sv-popup__pointer":"transform: translate(calc(-1 * 8px)) rotate(180deg);",".sv-popup--show-pointer.sv-popup--bottom":"transform: translateY(calc(1 * 8px));",".sv-popup--show-pointer.sv-popup--bottom .sv-popup__pointer":"transform: translate(calc(-1 * 8px), calc(-1 * 8px));",".sv-popup--show-pointer.sv-popup--right":"transform: translate(calc(1 * 8px));",".sv-popup--show-pointer.sv-popup--right .sv-popup__pointer":"transform: translate(-12px, -4px) rotate(-90deg);",".sv-popup--show-pointer.sv-popup--left":"transform: translate(calc(-1 * 8px));",".sv-popup--show-pointer.sv-popup--left .sv-popup__pointer":"transform: translate(-4px, -4px) rotate(90deg);",".sv-popup__pointer":"display: block; position: absolute;",".sv-popup__pointer:after":"content: ' '; display: block; width: 0; height: 0; border-left: calc(1 * 8px) solid transparent; border-right: calc(1 * 8px) solid transparent; border-bottom: calc(1 * 8px) solid white; align-self: center;",".sv-popup__header":"font-family: Open Sans; font-size: calc(3 * 8px); line-height: calc(4 * 8px); font-style: normal; font-weight: 700; margin-bottom: calc(2 * 8px); color: rgb(22, 22, 22)",".sv-popup__footer":"display: flex; margin-top: calc(4 * 8px);",".sv-popup__footer-item:first-child":"margin-left: auto;",".sv-popup__footer-item + .sv-popup__footer-item":"margin-left: calc(1 * 8px);",".sv-popup__button":"padding: calc(2 * 8px) calc(6 * 8px); background: #fff; box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.15); border-radius: 4px; cursor: pointer; margin: 2px; font-family: 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif; font-style: normal; font-weight: 600; font-size: calc(2 * 8px); line-height: calc(3 * 8px); text-align: center; color: #19b394; border: none; outline: none;",".sv-popup__button:hover":"box-shadow: 0 0 0 2px #19b394;",".sv-popup__button:disabled":"color: rgba(22, 22, 22, 0.16); cursor: default;",".sv-popup__button:disabled:hover":"box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.15);",".sv-popup__button.sv-popup__button--apply":"background-color: #19b394; color: #fff;",".sv-popup__button.sv-popup__button--apply:disabled":"background-color: #f3f3f3;",".sv-list":"display: flex; flex-direction: column; align-items: flex-start; padding: 0; margin: 0; background: #ffffff; font-family: 'Open Sans'; list-style-type: none;",".sv-list__item":"width: 100%; display: flex; align-items: center; box-sizing: border-box; padding: calc(1 * 8px) calc(2 * 8px); cursor: pointer;",".sv-list__item-icon":"float: left; width: calc(3 * 8px); height: calc(3 * 8px); margin-right: calc(2 * 8px);",".sv-list__item-icon svg":"display: block;",".sv-list__item-icon use":"fill: #909090;",".sv-list__item:not(.sv-list__item--selected):hover":"background-color: #f3f3f3;",".sv-list__item--selected":"background-color: #19b394; color: #fff;",".sv-list__item--selected .sv-list__item-icon use":"fill: #fff;",".sv-list__item--disabled":"color: rgba(22, 22, 22, 0.16); cursor: default; pointer-events: none;",".sv-list__item span":"white-space: nowrap;",".sv-skeleton-element":"min-height: 50px;"},e.Media={".sv_qstn fieldset .sv-q-col-1":{style:"width: 100%;",media:"@media only screen and (max-width: 480px)"},".sv_qstn fieldset .sv-q-col-2":{style:"width: 100%;",media:"@media only screen and (max-width: 480px)"},".sv_qstn fieldset .sv-q-col-3":{style:"width: 100%;",media:"@media only screen and (max-width: 480px)"},".sv_qstn fieldset .sv-q-col-4":{style:"width: 100%;",media:"@media only screen and (max-width: 480px)"},".sv_qstn fieldset .sv-q-col-5":{style:"width: 100%;",media:"@media only screen and (max-width: 480px)"},".sv_main .sv_container .panel-body.card-block .sv_row .sv_qstn":{style:"display: block; width: 100% !important;",media:"@media (max-width: 600px)"},".sv_main .sv_container .panel-body.card-block .sv_row .sv_qstn .title-left":{style:"float: none;",media:"@media (max-width: 600px)"},".sv_main .sv_container .panel-body.card-block .sv_row .sv_qstn .sv_q_radiogroup_inline, .sv_main .sv_container .panel-body.card-block .sv_row .sv_qstn .sv_q_checkbox_inline, .sv_main .sv_container .panel-body.card-block .sv_row .sv_qstn .sv_q_imagepicker_inline":{style:"display: block;",media:"@media (max-width: 600px)"},".sv_main .sv_container .panel-body.card-block .sv_row .sv_qstn table.table":{style:"display: block;",media:"@media (max-width: 600px)"},".sv_main .sv_container .panel-body.card-block .sv_row .sv_qstn table.table thead":{style:"display: none;",media:"@media (max-width: 600px)"},".sv_main .sv_container .panel-body.card-block .sv_row .sv_qstn table.table tbody, .sv_main .sv_container .panel-body.card-block .sv_row .sv_qstn table.table tr, .sv_main .sv_container .panel-body.card-block .sv_row .sv_qstn table.table td":{style:"display: block;",media:"@media (max-width: 600px)"},".sv_main .sv_container .panel-body.card-block .sv_row .sv_qstn table.table:not(.sv_q_matrix) td:before":{style:"content: attr(title);",media:"@media (max-width: 600px)"},".sv_main .sv_container .panel-body.card-block .sv_row .sv_qstn table.sv_q_matrix td:after":{style:"content: attr(title); padding-left: 1em",media:"@media (max-width: 600px)"},".sv_main .sv_container .panel-body.card-block .sv_row .sv_qstn .radio label, .sv_main .sv_container .panel-body.card-block .sv_row .sv_qstn .checkbox label":{style:"line-height: 12px; vertical-align: top;",media:"@media (max-width: 600px)"},".sv_qstn label.sv_q_m_label":{style:"display: inline;",media:"@media (max-width: 600px)"},".sv_main .sv_custom_header":{style:"display: none;",media:"@media (max-width: 1300px)"},".sv_main .sv_container .sv_header h3":{style:"font-size: 1.5em;",media:"@media (max-width: 1300px)"},".sv_main .sv_container .sv_header h3 span":{style:"font-size: 0.75em;",media:"@media (max-width: 700px)"},".sv_main.sv_bootstrap_css .sv-progress__text":{style:"margin-left: 8em;",media:"@media (min-width: 768px)"},".sv_row":{style:" display: flex; flex-wrap: wrap;",media:"@supports (display: flex)"},".sv-vue-row-additional-div":{style:" display: flex; flex-wrap: wrap; flex-basis: 100%; width: 100%;",media:"@supports (display: flex)"},".sv-row > .sv-row__panel, .sv-row__question:not(:last-child)":{style:"float: left;",media:"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)"},"[dir='rtl'],[style*='direction:rtl'] .sv-row__question:not(:last-child)":{style:"float: right;",media:"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)"},".sv-row > .sv-row__panel, .sv-row__question":{style:"width: 100% !important; padding-right: 0 !important;",media:"@media only screen and (max-width: 600px)"}},e.ThemeColors={default:{"$header-background-color":"#e7e7e7","$body-container-background-color":"#f4f4f4","$main-color":"#1ab394","$main-hover-color":"#0aa384","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#6d7072","$text-input-color":"#6d7072","$header-color":"#6d7072","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fd6575","$progress-text-color":"#9d9d9d","$disable-color":"#dbdbdb","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf","$foreground-light":"#909090","$foreground-disabled":"#161616","$background-dim":"#f3f3f3","$progress-buttons-color":"#8dd9ca","$progress-buttons-line-color":"#d4d4d4"},orange:{"$header-background-color":"#4a4a4a","$body-container-background-color":"#f8f8f8","$main-color":"#f78119","$main-hover-color":"#e77109","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#4a4a4a","$text-input-color":"#4a4a4a","$header-color":"#f78119","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fd6575","$progress-text-color":"#9d9d9d","$disable-color":"#dbdbdb","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf","$foreground-light":"#909090","$foreground-disabled":"#161616","$background-dim":"#f3f3f3","$progress-buttons-color":"#f7b781","$progress-buttons-line-color":"#d4d4d4"},darkblue:{"$header-background-color":"#d9d8dd","$body-container-background-color":"#f6f7f2","$main-color":"#3c4f6d","$main-hover-color":"#2c3f5d","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#4a4a4a","$text-input-color":"#4a4a4a","$header-color":"#6d7072","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fd6575","$progress-text-color":"#9d9d9d","$disable-color":"#dbdbdb","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf","$foreground-light":"#909090","$foreground-disabled":"#161616","$background-dim":"#f3f3f3","$progress-buttons-color":"#839ec9","$progress-buttons-line-color":"#d4d4d4"},darkrose:{"$header-background-color":"#ddd2ce","$body-container-background-color":"#f7efed","$main-color":"#68656e","$main-hover-color":"#58555e","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#4a4a4a","$text-input-color":"#4a4a4a","$header-color":"#6d7072","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fd6575","$progress-text-color":"#9d9d9d","$disable-color":"#dbdbdb","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf","$foreground-light":"#909090","$foreground-disabled":"#161616","$background-dim":"#f3f3f3","$progress-buttons-color":"#c6bed4","$progress-buttons-line-color":"#d4d4d4"},stone:{"$header-background-color":"#cdccd2","$body-container-background-color":"#efedf4","$main-color":"#0f0f33","$main-hover-color":"#191955","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#0f0f33","$text-input-color":"#0f0f33","$header-color":"#0f0f33","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fd6575","$progress-text-color":"#9d9d9d","$disable-color":"#dbdbdb","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf","$foreground-light":"#909090","$foreground-disabled":"#161616","$background-dim":"#f3f3f3","$progress-buttons-color":"#747491","$progress-buttons-line-color":"#d4d4d4"},winter:{"$header-background-color":"#82b8da","$body-container-background-color":"#dae1e7","$main-color":"#3c3b40","$main-hover-color":"#1e1d20","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#000","$text-input-color":"#000","$header-color":"#000","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fd6575","$disable-color":"#dbdbdb","$progress-text-color":"#9d9d9d","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf","$foreground-light":"#909090","$foreground-disabled":"#161616","$background-dim":"#f3f3f3","$progress-buttons-color":"#d1c9f5","$progress-buttons-line-color":"#d4d4d4"},winterstone:{"$header-background-color":"#323232","$body-container-background-color":"#f8f8f8","$main-color":"#5ac8fa","$main-hover-color":"#06a1e7","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#000","$text-input-color":"#000","$header-color":"#fff","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fd6575","$disable-color":"#dbdbdb","$progress-text-color":"#9d9d9d","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf","$foreground-light":"#909090","$foreground-disabled":"#161616","$background-dim":"#f3f3f3","$progress-buttons-color":"#acdcf2","$progress-buttons-line-color":"#d4d4d4"},modern:{"$main-color":"#1ab394","$add-button-color":"#1948b3","$remove-button-color":"#ff1800","$disable-color":"#dbdbdb","$progress-text-color":"#9d9d9d","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf","$error-color":"#d52901","$text-color":"#404040","$light-text-color":"#fff","$button-text-color":"#fff","$checkmark-color":"#fff","$matrix-text-checked-color":"#fff","$progress-buttons-color":"#8dd9ca","$progress-buttons-line-color":"#d4d4d4","$text-input-color":"#404040","$inputs-background-color":"transparent","$main-hover-color":"#9f9f9f","$body-container-background-color":"#f4f4f4","$text-border-color":"#d4d4d4","$disabled-text-color":"rgba(64, 64, 64, 0.5)","$border-color":"rgb(64, 64, 64, 0.5)","$dropdown-border-color":"#d4d4d4","$header-background-color":"#e7e7e7","$answer-background-color":"rgba(26, 179, 148, 0.2)","$error-background-color":"rgba(213, 41, 1, 0.2)","$radio-checked-color":"#404040","$clean-button-color":"#1948b3","$body-background-color":"#ffffff","$foreground-light":"#909090","$foreground-disabled":"#161616","$background-dim":"#f3f3f3"},bootstrap:{"$main-color":"#18a689","$text-color":"#404040;","$text-input-color":"#404040;","$progress-text-color":"#9d9d9d","$disable-color":"#dbdbdb","$header-background-color":"#e7e7e7","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf","$foreground-light":"#909090","$foreground-disabled":"#161616","$background-dim":"#f3f3f3","$progress-buttons-color":"#8dd6c7","$progress-buttons-line-color":"#d4d4d4"},bootstrapmaterial:{"$main-color":"#18a689","$text-color":"#404040;","$text-input-color":"#404040;","$progress-text-color":"#9d9d9d","$disable-color":"#dbdbdb","$header-background-color":"#e7e7e7","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf","$body-background-color":"#ffffff","$foreground-light":"#909090","$foreground-disabled":"#161616","$background-dim":"#f3f3f3","$progress-buttons-color":"#8dd6c7","$progress-buttons-line-color":"#d4d4d4"}},e.ThemeCss={".sv_default_css":"background-color: $body-container-background-color;",".sv_default_css hr":"border-color: $border-color;",".sv_default_css input[type='button'], .sv_default_css button":"color: $body-background-color; background-color: $main-color;",".sv_default_css input[type='button']:hover, .sv_default_css button:hover":"background-color: $main-hover-color;",".sv_default_css .sv_header":"color: $header-color;",".sv_default_css .sv_custom_header":"background-color: $header-background-color;",".sv_default_css .sv_container":"color: $text-color;",".sv_default_css .sv_body":"background-color: $body-background-color; border-color: $main-color;",".sv_default_css .sv_progress":"background-color: $border-color;",".sv_default_css .sv_progress_bar":"background-color: $main-color;",".sv_default_css .sv_progress-buttons__list li:before":"border-color: $progress-buttons-color; background-color: $progress-buttons-color;",".sv_default_css .sv_progress-buttons__list li:after":"background-color: $progress-buttons-line-color;",".sv_default_css .sv_progress-buttons__list .sv_progress-buttons__page-title":" color: $text-color;",".sv_default_css .sv_progress-buttons__list .sv_progress-buttons__page-description":" color: $text-color;",".sv_default_css .sv_progress-buttons__list li.sv_progress-buttons__list-element--passed:before":"border-color: $main-color; background-color: $main-color;",".sv_default_css .sv_progress-buttons__list li.sv_progress-buttons__list-element--passed + li:after":"background-color: $progress-buttons-color",".sv_default_css .sv_progress-buttons__list li.sv_progress-buttons__list-element--current:before":"border-color: $main-color; background-color: white;",".sv_default_css .sv_progress-buttons__list li.sv_progress-buttons__list-element--passed.sv_progress-buttons__list-element--current:before":"border-color: $main-color; background-color: white;",".sv_default_css .sv_p_root > .sv_row":"border-color: $border-color;",".sv_default_css .sv_p_root > .sv_row:nth-child(odd)":"background-color: $body-background-color;",".sv_default_css .sv_p_root > .sv_row:nth-child(even)":"background-color: $body-container-background-color;",".sv_default_css .sv_q_other input":"color: $text-color; -webkit-text-fill-color: $text-color; border-color: $border-color; background-color: $inputs-background-color;",".sv_default_css .sv_q_text_root":"color: $text-color; -webkit-text-fill-color: $text-color; border-color: $border-color; background-color: $inputs-background-color;",".sv_default_css .sv_q_dropdown_control":"color: $text-input-color; border-color: $border-color; background-color: $inputs-background-color;",".sv_default_css input[type='text']":"color: $text-color; -webkit-text-fill-color: $text-color; border-color: $border-color; background-color: $inputs-background-color;",".sv_default_css select":"color: $text-color; border-color: $border-color; background-color: $inputs-background-color;",".sv_default_css textarea":"color: $text-input-color; -webkit-text-fill-color: $text-input-color; border-color: $border-color; background-color: $inputs-background-color;",".sv_default_css input:not([type='button']):not([type='reset']):not([type='submit']):not([type='image']):not([type='checkbox']):not([type='radio'])":"border: 1px solid $border-color; background-color: $inputs-background-color;color: $text-input-color; -webkit-text-fill-color: $text-input-color;",".sv_default_css input:not([type='button']):not([type='reset']):not([type='submit']):not([type='image']):not([type='checkbox']):not([type='radio']):focus":"border: 1px solid $main-color;",".sv_default_css .sv_container .sv_body .sv_p_root .sv_q .sv_select_wrapper .sv_q_dropdown_control ":"background-color: $inputs-background-color;",".sv_default_css .sv_q_other input:focus":"border-color: $main-color;",".sv_default_css .sv_q_text_root:focus":"border-color: $main-color;",".sv_default_css .sv_q_dropdown_control:focus":"border-color: $main-color;",".sv_default_css input[type='text']:focus":"border-color: $main-color;",'.sv_default_css .sv_container .sv_body .sv_p_root .sv_q input[type="radio"]:focus, .sv_default_css .sv_container .sv_body .sv_p_root .sv_q input[type="checkbox"]:focus':"outline: 1px dotted $main-color;",".sv_default_css select:focus":"border-color: $main-color;",".sv_default_css textarea:focus":"border-color: $main-color;",".sv_default_css .sv_select_wrapper":"background-color: $body-background-color;",".sv_default_css .sv_select_wrapper::before":"background-color: $main-color;",".sv_default_css .sv_q_rating_item.active .sv_q_rating_item_text":"background-color: $main-hover-color; border-color: $main-hover-color; color: $body-background-color;",".sv_default_css .sv_q_rating_item .sv_q_rating_item_text":"border-color: $border-color;",".sv_default_css .sv_q_rating_item .sv_q_rating_item_text:hover":"border-color: $main-hover-color;",".sv_default_css table.sv_q_matrix tr":"border-color: $border-color;",".sv_default_css table.sv_q_matrix_dropdown tr":"border-color: $border-color;",".sv_default_css table.sv_q_matrix_dynamic tr":"border-color: $border-color;",".sv_default_css .sv_q_m_cell_selected":"color: $body-background-color; background-color: $main-hover-color;",".sv_main .sv_q_file_remove:hover":"color: $main-color;",".sv_main .sv_q_file_choose_button":"color: $body-background-color; background-color: $main-color;",".sv_main .sv_q_file_choose_button:hover":"background-color: $main-hover-color;",".sv_main .sv_q_imgsel.checked label>div":"background-color: $main-color",".sv_default_css .sv_p_description":"padding-left: 1.29em;",".sv_main .sv-progress":"background-color: $header-background-color;",".sv_main .sv-progress__bar":"background-color: $main-color;",".sv_main .sv-paneldynamic__prev-btn.sv-paneldynamic__prev-btn--disabled, .sv_main .sv-paneldynamic__next-btn.sv-paneldynamic__next-btn--disabled":"fill: $disable-color;",".sv_main .sv-paneldynamic__progress-text":"color: $progress-text-color;",".sv_main .sv-paneldynamic__prev-btn, .sv_main .sv-paneldynamic__next-btn":"fill: $text-color",".sv_main .sv-boolean__switch":"background-color: $main-color;",".sv_main .sv-boolean__slider":"background-color: $slider-color;",".sv_main .sv-boolean__label--disabled":"color: $disabled-label-color;",".sv_main .sv-boolean--disabled .sv-boolean__switch":"background-color: $disabled-switch-color;",".sv_main .sv-boolean--disabled .sv-boolean__slider":"background-color: $disabled-slider-color;",".sv_main .sjs_sp_container":"border: 1px dashed $disable-color;",".sv_main .sjs_sp_placeholder":"color: $foreground-light;",".sv_main .sv_matrix_detail_row":"background-color: #ededed; border-top: 1px solid $header-background-color; border-bottom: 1px solid $header-background-color;",".sv_main .sv-action-bar-item":"color: $text-color;",".sv_main .sv-action-bar-item__icon use":"fill: $foreground-light;",".sv_main .sv-action-bar-item:hover":"background-color: $background-dim;",".sv_main .sv-button-group__item--hover:hover":"background-color: $background-dim;",".sv_main .sv-button-group__item-icon use":"fill: $foreground-light;",".sv_main .sv-button-group__item--selected":"color: $main-color;",".sv_main .sv-button-group__item--selected .sv-button-group__item-icon use":"fill: $main-color;",".sv_main .sv-button-group__item--disabled":"color: $foreground-disabled;",".sv_main .sv-button-group__item--disabled .sv-button-group__item-icon use":"fill: $foreground-disabled;",".sv_main .sv-button-group__item":"background: $body-background-color; border-color: $border-color;",".sv_main .sv_qstn textarea":"max-width: 100%",".sv_main .sv-matrixdynamic__drag-icon":"padding-top:14px",".sv_main .sv-matrixdynamic__drag-icon:after":"content: ' '; display: block; height: 6px; width: 20px; border: 1px solid $border-color; box-sizing: border-box; border-radius: 10px; cursor: move; margin-top: 12px;",".sv_main .sv-matrix__drag-drop-ghost-position-top, .sv_main .sv-matrix__drag-drop-ghost-position-bottom":"position: relative;",".sv_main .sv-matrix__drag-drop-ghost-position-top::after, .sv_main .sv-matrix__drag-drop-ghost-position-bottom::after":"content: ''; width: 100%; height: 4px; background-color: var(--primary, #19b394); position: absolute; left: 0;",".sv_main .sv-matrix__drag-drop-ghost-position-top::after":"top: 0;",".sv_main .sv-matrix__drag-drop-ghost-position-bottom::after":"bottom: 0;",".sv-skeleton-element":"background-color: $background-dim;"},e.modernThemeCss={".sv-boolean__switch":"background-color: $main-color;",".sv-boolean__slider":"background-color: $slider-color;",".sv-boolean__label--disabled":"color: $disabled-label-color;",".sv-boolean--disabled .sv-boolean__switch":"background-color: $disabled-switch-color;",".sv-boolean--disabled .sv-boolean__slider":"background-color: $disabled-slider-color;",".sv-btn":"color: $button-text-color;",".sv-checkbox__svg":"border-color: $border-color; fill: transparent;",".sv-checkbox--allowhover:hover .sv-checkbox__svg":"background-color: $main-hover-color; fill: $checkmark-color;",".sv-checkbox--checked .sv-checkbox__svg":"background-color: $main-color; fill: $checkmark-color;",".sv-checkbox--checked.sv-checkbox--disabled .sv-checkbox__svg":"background-color: $disable-color; fill: $checkmark-color;",".sv-checkbox--disabled .sv-checkbox__svg":"border-color: $disable-color;",".sv-comment":"border-color: $text-border-color; max-width: 100%;",".sv-comment:focus":"border-color: $main-color;",".sv-completedpage":"color: $text-color; background-color: $body-container-background-color;",".sv-container-modern":"color: $text-color;",".sv-container-modern__title":"color: $main-color;",".sv-description":"color: $disabled-text-color;",".sv-dropdown":"border-bottom: 0.06em solid $text-border-color;",".sv-dropdown:focus":"border-color: $dropdown-border-color;",".sv-dropdown--error":"border-color: $error-color; color: $error-color;",".sv-dropdown--error::placeholder":"color: $error-color;",".sv-dropdown--error::-ms-input-placeholder":"color: $error-color;",".sv-file__decorator":"background-color: $body-container-background-color;",".sv-file__clean-btn":"background-color: $remove-button-color;",".sv-file__choose-btn:not(.sv-file__choose-btn--disabled)":"background-color: $add-button-color;",".sv-file__choose-btn--disabled":"background-color: $disable-color;",".sv-file__remove-svg":"fill: #ff1800;",".sv-file__sign a":"color: $text-color;",".sv-footer__complete-btn":"background-color: $main-color;",".sv-footer__next-btn":"background-color: $main-color;",".sv-footer__prev-btn":"background-color: $main-color;",".sv-footer__start-btn":"background-color: $main-color;",".sv-footer__preview-btn":"background-color: $main-color;",".sv-footer__edit-btn":"background-color: $main-color;",".sv-imagepicker__item--allowhover:hover .sv-imagepicker__image":"background-color: $main-hover-color; border-color: $main-hover-color;",".sv-imagepicker__item--checked .sv-imagepicker__image":"background-color: $main-color; border-color: $main-color;",".sv-imagepicker__item--disabled.sv-imagepicker__item--checked .sv-imagepicker__image":"background-color: $disable-color; border-color: $disable-color;",".sv-item__control:focus + .sv-item__decorator":"border-color: $main-color;",".sv-matrix__text--checked":"color: $matrix-text-checked-color; background-color: $main-color;",".sv-matrix__text--disabled.sv-matrix__text--checked":"background-color: $disable-color;",".sv-matrixdynamic__add-btn":"background-color: $add-button-color;",".sv-matrixdynamic__remove-btn":"background-color: $remove-button-color;",".sv-paneldynamic__add-btn":"background-color: $add-button-color;",".sv-paneldynamic__remove-btn":"background-color: $remove-button-color;",".sv-paneldynamic__prev-btn, .sv-paneldynamic__next-btn":"fill: $text-color;",".sv-paneldynamic__prev-btn--disabled, .sv-paneldynamic__next-btn--disabled":"fill: $disable-color;",".sv-paneldynamic__progress-text":"color: $progress-text-color;",".sv-progress":"background-color: $header-background-color;",".sv-progress__bar":"background-color: $main-color;",".sv-progress__text":"color: $progress-text-color;",".sv_progress-buttons__list li:before":"border-color: $progress-buttons-color; background-color: $progress-buttons-color;",".sv_progress-buttons__list li:after":"background-color: $progress-buttons-line-color;",".sv_progress-buttons__list .sv_progress-buttons__page-title":" color: $text-color;",".sv_progress-buttons__list .sv_progress-buttons__page-description":" color: $text-color;",".sv_progress-buttons__list li.sv_progress-buttons__list-element--passed:before":"border-color: $main-color; background-color: $main-color;",".sv_progress-buttons__list li.sv_progress-buttons__list-element--passed + li:after":"background-color: $progress-buttons-color",".sv_progress-buttons__list li.sv_progress-buttons__list-element--current:before":"border-color: $main-color; background-color: white;",".sv_progress-buttons__list li.sv_progress-buttons__list-element--passed.sv_progress-buttons__list-element--current:before":"border-color: $main-color; background-color: white;",".sv-question__erbox":"color: $error-color;",".sv-question__title--answer":"background-color: $answer-background-color;",".sv-question__title--error":"background-color: $error-background-color;",".sv-panel__title--error":"background-color: $error-background-color;",".sv-radio__svg":"border-color: $border-color; fill: transparent;",".sv-radio--allowhover:hover .sv-radio__svg":"fill: $border-color;",".sv-radio--checked .sv-radio__svg":"border-color: $radio-checked-color; fill: $radio-checked-color;",".sv-radio--disabled .sv-radio__svg":"border-color: $disable-color;",".sv-radio--disabled.sv-radio--checked .sv-radio__svg":"fill: $disable-color;",".sv-rating":"color: $text-color;",".sv-rating input:focus + .sv-rating__min-text + .sv-rating__item-text, .sv-rating input:focus + .sv-rating__item-text":"outline-color: $main-color;",".sv-rating__item-text":"color: $main-hover-color; border: solid 0.1875em $main-hover-color;",".sv-rating__item-text:hover":"background-color: $main-hover-color; color: $body-background-color;",".sv-rating__item--selected .sv-rating__item-text":"background-color: $main-color; color: $body-background-color; border-color: $main-color;",".sv-rating--disabled .sv-rating__item-text":"color: $disable-color; border-color: $disable-color;",".sv-rating--disabled .sv-rating__item-text:hover":"background-color: transparent;",".sv-rating--disabled .sv-rating__item-text:hover .sv-rating__item--selected .sv-rating__item-text":"background-color: $disable-color; color: $body-background-color;","::-webkit-scrollbar":"background-color: $main-hover-color;","::-webkit-scrollbar-thumb":"background: $main-color;",".sv-selectbase__clear-btn":"background-color: $clean-button-color;",".sv-table":"background-color: rgba($main-hover-color, 0.1);",".sv-text:focus":"border-color: $main-color;",'.sv-text[type="date"]::-webkit-calendar-picker-indicator':"color: transparent; background: transparent;",".sv-text--error":"color: $error-color; border-color: $error-color;",".sv-text--error::placeholder":"color: $error-color;",".sv-text--error::-ms-placeholder":"color: $error-color;",".sv-text--error:-ms-placeholder":"color: $error-color;","input.sv-text, textarea.sv-comment, select.sv-dropdown":"color: $text-input-color; background-color: $inputs-background-color;",".sv-text::placeholder":"color: $text-input-color;",".sv-text::-ms-placeholder":"color: $text-input-color;",".sv-text:-ms-placeholder":"color: $text-input-color;",".sv-table__row--detail":"background-color: $header-background-color;",".sjs_sp_container":"border: 1px dashed $disable-color;",".sjs_sp_placeholder":"color: $foreground-light;",".sv-matrixdynamic__drag-icon":"padding-top:16px",".sv-matrixdynamic__drag-icon:after":"content: ' '; display: block; height: 6px; width: 20px; border: 1px solid $border-color; box-sizing: border-box; border-radius: 10px; cursor: move; margin-top: 12px;",".sv-matrix__drag-drop-ghost-position-top, .sv-matrix__drag-drop-ghost-position-bottom":"position: relative;",".sv-matrix__drag-drop-ghost-position-top::after, .sv-matrix__drag-drop-ghost-position-bottom::after":"content: ''; width: 100%; height: 4px; background-color: var(--primary, #19b394); position: absolute; left: 0;",".sv-matrix__drag-drop-ghost-position-top::after":"top: 0;",".sv-matrix__drag-drop-ghost-position-bottom::after":"bottom: 0;",".sv-skeleton-element":"background-color: $background-dim;"},e.bootstrapThemeCss={".sv_main .sv_q_imgsel.checked label>div":"background-color: $main-color",".sv_main .sv_p_description":"padding-left: 1.66em;",".sv_main .sv_qstn_error_bottom":"margin-top: 20px; margin-bottom: 0;",".sv_main .progress":"width: 60%;",".sv_main .progress-bar":"width: auto; margin-left: 2px; margin-right: 2px;",".sv_main .table>tbody>tr>td":"min-width: 90px;",".sv_main f-panel .sv_qstn":"padding: 0; vertical-align: middle;",".sv_main .sv_q_image":"display: inline-block;",".sv_main .sv_row .sv_qstn:first-child:last-child":"flex: none !important;",".sv_main .sv_row .sv_p_container:first-child:last-child":"flex: none !important;",".sv_main .sv-progress":"background-color: $header-background-color;",".sv_main .sv-progress__bar":"background-color: $main-color;",".sv_main .sv_progress-buttons__list li:before":"border-color: $progress-buttons-color; background-color: $progress-buttons-color;",".sv_main .sv_progress-buttons__list li:after":"background-color: $progress-buttons-line-color;",".sv_main .sv_progress-buttons__list .sv_progress-buttons__page-title":" color: $text-color;",".sv_main .sv_progress-buttons__list .sv_progress-buttons__page-description":" color: $text-color;",".sv_main .sv_progress-buttons__list li.sv_progress-buttons__list-element--passed:before":"border-color: $main-color; background-color: $main-color;",".sv_main .sv_progress-buttons__list li.sv_progress-buttons__list-element--passed + li:after":"background-color: $progress-buttons-color",".sv_main .sv_progress-buttons__list li.sv_progress-buttons__list-element--current:before":"border-color: $main-color; background-color: white;",".sv_main .sv_progress-buttons__list li.sv_progress-buttons__list-element--passed.sv_progress-buttons__list-element--current:before":"border-color: $main-color; background-color: white;",".sv_main .sv-paneldynamic__prev-btn.sv-paneldynamic__prev-btn--disabled, .sv_main .sv-paneldynamic__next-btn.sv-paneldynamic__next-btn--disabled":"fill: $disable-color;",".sv_main .sv-paneldynamic__progress-text":"color: $progress-text-color;",".sv_main .sv-paneldynamic__prev-btn, .sv_main .sv-paneldynamic__next-btn":"fill: $text-color",".sv_main .sv-boolean__switch":"background-color: $main-color;",".sv_main .sv-boolean__slider":"background-color: $slider-color;",".sv_main .sv-boolean__label--disabled":"color: $disabled-label-color;",".sv_main .sv-boolean--disabled .sv-boolean__switch":"background-color: $disabled-switch-color;",".sv_main .sv-boolean--disabled  .sv-boolean__slider":"background-color: $disabled-slider-color;",".sv_main .sjs_sp_container":"border: 1px dashed $disable-color;",".sv_main .sjs_sp_placeholder":"color: $foreground-light;",".sv_main .sv_matrix_detail_row":"background-color: #ededed; border-top: 1px solid $header-background-color; border-bottom: 1px solid $header-background-color;",".sv_main .sv-action-bar-item":"color: $text-color;",".sv_main .sv-action-bar-item__icon use":"fill: $foreground-light;",".sv_main .sv-action-bar-item:hover":"background-color: $background-dim;",".sv-skeleton-element":"background-color: $background-dim;"},e.bootstrapmaterialThemeCss={".sv_main.sv_bootstrapmaterial_css .form-group.is-focused .form-control":"linear-gradient(0deg, $main-color 2px, $main-color 0),linear-gradient(0deg, #D2D2D2 1px, transparent 0);",".sv_main.sv_bootstrapmaterial_css .sv_qstn":"margin-bottom: 1rem;",".sv_main.sv_bootstrapmaterial_css .sv_qstn label.sv_q_m_label":"height: 100%;",".sv_main.sv_bootstrapmaterial_css .sv_q_image":"display: inline-block;",".sv_main .sv_row .sv_qstn:first-child:last-child":"flex: none !important;",".sv_main .sv_row .sv_p_container:first-child:last-child":"flex: none !important;",".sv_main.sv_bootstrapmaterial_css .checkbox input[type=checkbox]:checked + .checkbox-material .check":"border-color: $main-color;",".sv_main.sv_bootstrapmaterial_css label.checkbox-inline input[type=checkbox]:checked + .checkbox-material .check":"border-color: $main-color;",".sv_main.sv_bootstrapmaterial_css .checkbox input[type=checkbox]:checked + .checkbox-material .check:before":"color: $main-color;",".sv_main.sv_bootstrapmaterial_css label.checkbox-inline input[type=checkbox]:checked + .checkbox-material .check:before":"color: $main-color;",".sv_main.sv_bootstrapmaterial_css .radio input[type=radio]:checked ~ .circle":"border-color: $main-color;",".sv_main.sv_bootstrapmaterial_css label.radio-inline input[type=radio]:checked ~ .circle":"border-color: $main-color;",".sv_main.sv_bootstrapmaterial_css .radio input[type=radio]:checked ~ .check":"background-color: $main-color;",".sv_main.sv_bootstrapmaterial_css label.radio-inline input[type=radio]:checked ~ .check":"background-color: $main-color;",".sv_main.sv_bootstrapmaterial_css .btn-default.active":"background-color: $main-color; color: $body-background-color;",".sv_main.sv_bootstrapmaterial_css .btn-default:active":"background-color: $main-color; color: $body-background-color;",".sv_main.sv_bootstrapmaterial_css .btn-secondary.active":"background-color: $main-color; color: $body-background-color;",".sv_main.sv_bootstrapmaterial_css .btn-secondary:active":"background-color: $main-color; color: $body-background-color;",".sv_main.sv_bootstrapmaterial_css .open>.dropdown-toggle.btn-default":"background-color: $main-color; color: $body-background-color;",".sv_main.sv_bootstrapmaterial_css input[type='button'].btn-primary, .sv_main.sv_bootstrapmaterial_css button.btn-primary":"color: $body-background-color; background-color: $main-color;",".sv_main.sv_bootstrapmaterial_css input[type='button'].btn-primary:hover, .sv_main.sv_bootstrapmaterial_css button.btn-primary:hover":"background-color: $main-hover-color;",".sv_main .sv_q_imgsel.checked label>div":"background-color: $main-color;",".sv_main.sv_bootstrapmaterial_css .sv_q_file_remove:hover":"color: $main-color;",".sv_main.sv_bootstrapmaterial_css .form-group input[type=file]":"position: relative; opacity: 1;",".sv_main.sv_bootstrapmaterial_css .progress":"width: 60%; height: 1.5em;",".sv_main.sv_bootstrapmaterial_css .progress-bar":"width: auto; margin-left: 2px; margin-right: 2px;",".sv_main .sv-progress":"background-color: $header-background-color;",".sv_main .sv-progress__bar":"background-color: $main-color;",".sv_main.sv_bootstrapmaterial_css .sv_progress-buttons__list li:before":"border-color: $progress-buttons-color; background-color: $progress-buttons-color;",".sv_main.sv_bootstrapmaterial_css .sv_progress-buttons__list li:after":"background-color: $progress-buttons-line-color;",".sv_main.sv_bootstrapmaterial_css .sv_progress-buttons__list .sv_progress-buttons__page-title":" color: $text-color;",".sv_main.sv_bootstrapmaterial_css .sv_progress-buttons__list .sv_progress-buttons__page-description":" color: $text-color;",".sv_main.sv_bootstrapmaterial_css .sv_progress-buttons__list li.sv_progress-buttons__list-element--passed:before":"border-color: $main-color; background-color: $main-color;",".sv_main.sv_bootstrapmaterial_css .sv_progress-buttons__list li.sv_progress-buttons__list-element--passed + li:after":"background-color: $progress-buttons-color",".sv_main.sv_bootstrapmaterial_css .sv_progress-buttons__list li.sv_progress-buttons__list-element--current:before":"border-color: $main-color; background-color: white;",".sv_main.sv_bootstrapmaterial_css .sv_progress-buttons__list li.sv_progress-buttons__list-element--passed.sv_progress-buttons__list-element--current:before":"border-color: $main-color; background-color: white;",".sv_main .sv-paneldynamic__prev-btn.sv-paneldynamic__prev-btn--disabled, .sv_main .sv-paneldynamic__next-btn.sv-paneldynamic__next-btn--disabled":"fill: $disable-color;",".sv_main .sv-paneldynamic__progress-text":"color: $progress-text-color;",".sv_main .sv-paneldynamic__prev-btn, .sv_main .sv-paneldynamic__next-btn":"fill: $text-color",".sv_main .sv-boolean .checkbox-decorator":"display: none;",".sv_main .sv-boolean__switch":"background-color: $main-color;",".sv_main .sv-boolean__slider":"background-color: $slider-color;",".sv_main .sv-boolean__label.sv-boolean__label--disabled":"color: $disabled-label-color;",".sv_main .sv-boolean__label":"color: $text-color;",".sv_main .sv-boolean--disabled .sv-boolean__switch":"background-color: $disabled-switch-color;",".sv_main .sv-boolean--disabled  .sv-boolean__slider":"background-color: $disabled-slider-color;",".sv_main .sv_matrix_detail_row":"background-color: #ededed; border-top: 1px solid $header-background-color; border-bottom: 1px solid $header-background-color;",".sv_main .sjs_sp_container":"border: 1px dashed $disable-color;",".sv_main .sjs_sp_placeholder":"color: $foreground-light;",".sv_main .sv-action-bar-item":"color: $text-color;",".sv_main .sv-action-bar-item__icon use":"fill: $foreground-light;",".sv_main .sv-action-bar-item:hover":"background-color: $background-dim;",".sv-skeleton-element":"background-color: $background-dim;"},e.Enabled=!0,e}(),Nn=function(e){return"undefined"==typeof window?0:window.setTimeout(e,1e3)},Mn=function(e){"undefined"!=typeof window&&window.clearTimeout(e)},Fn=function(){function e(){this.listenerCounter=0,this.timerId=-1,this.onTimer=new M}return Object.defineProperty(e,"instance",{get:function(){return e.instanceValue||(e.instanceValue=new e),e.instanceValue},enumerable:!1,configurable:!0}),e.prototype.start=function(e){var t=this;void 0===e&&(e=null),e&&this.onTimer.add(e),this.timerId<0&&(this.timerId=Nn((function(){t.doTimer()}))),this.listenerCounter++},e.prototype.stop=function(e){void 0===e&&(e=null),e&&this.onTimer.remove(e),this.listenerCounter--,0==this.listenerCounter&&this.timerId>-1&&(Mn(this.timerId),this.timerId=-1)},e.prototype.doTimer=function(){var e=this;this.timerId<0||(this.onTimer.fire(this,{}),this.timerId=Nn((function(){e.doTimer()})))},e.instanceValue=null,e}(),Bn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),zn=function(e){function t(n){void 0===n&&(n=null);var o=e.call(this)||this;return o.valuesHash={},o.variablesHash={},o.localeValue="",o.completedStateValue="",o.completedStateTextValue="",o.isTimerStarted=!1,o.onCompleting=o.addEvent(),o.onComplete=o.addEvent(),o.onShowingPreview=o.addEvent(),o.onNavigateToUrl=o.addEvent(),o.onStarted=o.addEvent(),o.onPartialSend=o.addEvent(),o.onCurrentPageChanging=o.addEvent(),o.onCurrentPageChanged=o.addEvent(),o.onValueChanging=o.addEvent(),o.onValueChanged=o.addEvent(),o.onVariableChanged=o.addEvent(),o.onVisibleChanged=o.addEvent(),o.onPageVisibleChanged=o.addEvent(),o.onPanelVisibleChanged=o.addEvent(),o.onQuestionCreated=o.addEvent(),o.onQuestionAdded=o.addEvent(),o.onQuestionRemoved=o.addEvent(),o.onPanelAdded=o.addEvent(),o.onPanelRemoved=o.addEvent(),o.onPageAdded=o.addEvent(),o.onValidateQuestion=o.addEvent(),o.onSettingQuestionErrors=o.addEvent(),o.onServerValidateQuestions=o.addEvent(),o.onValidatePanel=o.addEvent(),o.onErrorCustomText=o.addEvent(),o.onValidatedErrorsOnCurrentPage=o.addEvent(),o.onProcessHtml=o.addEvent(),o.onGetQuestionTitle=o.addEvent(),o.onGetTitleTagName=o.addEvent(),o.onGetQuestionNo=o.addEvent(),o.onProgressText=o.addEvent(),o.onTextMarkdown=o.addEvent(),o.onTextRenderAs=o.addEvent(),o.onSendResult=o.addEvent(),o.onGetResult=o.addEvent(),o.onUploadFiles=o.addEvent(),o.onDownloadFile=o.addEvent(),o.onClearFiles=o.addEvent(),o.onLoadChoicesFromServer=o.addEvent(),o.onLoadedSurveyFromService=o.addEvent(),o.onProcessTextValue=o.addEvent(),o.onUpdateQuestionCssClasses=o.addEvent(),o.onUpdatePanelCssClasses=o.addEvent(),o.onUpdatePageCssClasses=o.addEvent(),o.onUpdateChoiceItemCss=o.addEvent(),o.onAfterRenderSurvey=o.addEvent(),o.onAfterRenderHeader=o.addEvent(),o.onAfterRenderPage=o.addEvent(),o.onAfterRenderQuestion=o.addEvent(),o.onAfterRenderQuestionInput=o.addEvent(),o.onAfterRenderPanel=o.addEvent(),o.onMatrixRowAdded=o.addEvent(),o.onMatrixBeforeRowAdded=o.addEvent(),o.onMatrixRowRemoving=o.addEvent(),o.onMatrixRowRemoved=o.addEvent(),o.onMatrixAllowRemoveRow=o.addEvent(),o.onMatrixCellCreating=o.addEvent(),o.onMatrixCellCreated=o.addEvent(),o.onMatrixAfterCellRender=o.addEvent(),o.onMatrixCellValueChanged=o.addEvent(),o.onMatrixCellValueChanging=o.addEvent(),o.onMatrixCellValidate=o.addEvent(),o.onDynamicPanelAdded=o.addEvent(),o.onDynamicPanelRemoved=o.addEvent(),o.onTimer=o.addEvent(),o.onTimerPanelInfoText=o.addEvent(),o.onDynamicPanelItemValueChanged=o.addEvent(),o.onIsAnswerCorrect=o.addEvent(),o.onDragDropAllow=o.addEvent(),o.onScrollingElementToTop=o.addEvent(),o.onLocaleChangedEvent=o.addEvent(),o.onGetQuestionTitleActions=o.addEvent(),o.onGetPanelTitleActions=o.addEvent(),o.onGetPageTitleActions=o.addEvent(),o.onGetMatrixRowActions=o.addEvent(),o.onElementContentVisibilityChanged=o.addEvent(),o.onGetExpressionDisplayValue=o.addEvent(),o.jsonErrors=null,o.cssValue=null,o.hideRequiredErrors=!1,o._isMobile=!1,o._isDesignMode=!1,o.ignoreValidation=!1,o.isNavigationButtonPressed=!1,o.isCalculatingProgressText=!1,o.isTriggerIsRunning=!1,o.triggerValues=null,o.triggerKeys=null,o.conditionValues=null,o.isValueChangedOnRunningCondition=!1,o.conditionRunnerCounter=0,o.conditionUpdateVisibleIndexes=!1,o.conditionNotifyElementsOnAnyValueOrVariableChanged=!1,o.isEndLoadingFromJson=null,o.questionHashes={names:{},namesInsensitive:{},valueNames:{},valueNamesInsensitive:{}},o.timerFunc=null,o.timeSpent=0,o.skeletonComponentName="sv-skeleton","undefined"!=typeof document&&(t.stylesManager=new Ln),o.createLocalizableString("logo",o,!1),o.createLocalizableString("completedHtml",o),o.createLocalizableString("completedBeforeHtml",o),o.createLocalizableString("loadingHtml",o),o.createLocalizableString("startSurveyText",o,!1,!0),o.createLocalizableString("pagePrevText",o,!1,!0),o.createLocalizableString("pageNextText",o,!1,!0),o.createLocalizableString("completeText",o,!1,!0),o.createLocalizableString("previewText",o,!1,!0),o.createLocalizableString("editText",o,!1,!0),o.createLocalizableString("questionTitleTemplate",o,!0),o.textPreProcessor=new Ut,o.textPreProcessor.onProcess=function(e){o.getProcessedTextValue(e)},o.createNewArray("pages",(function(e){o.doOnPageAdded(e)}),(function(e){o.doOnPageRemoved(e)})),o.createNewArray("triggers",(function(e){e.setOwner(o)})),o.createNewArray("calculatedValues",(function(e){e.setOwner(o)})),o.createNewArray("completedHtmlOnCondition",(function(e){e.locOwner=o})),o.createNewArray("navigateToUrlOnCondition",(function(e){e.locOwner=o})),o.registerFunctionOnPropertyValueChanged("firstPageIsStarted",(function(){o.onFirstPageIsStartedChanged()})),o.registerFunctionOnPropertyValueChanged("mode",(function(){o.onModeChanged()})),o.registerFunctionOnPropertyValueChanged("progressBarType",(function(){o.updateProgressText()})),o.registerFunctionOnPropertiesValueChanged(["questionStartIndex","requiredText","questionTitlePattern"],(function(){o.resetVisibleIndexes()})),o.onGetQuestionNo.onCallbacksChanged=function(){o.resetVisibleIndexes()},o.onProgressText.onCallbacksChanged=function(){o.updateProgressText()},o.onTextMarkdown.onCallbacksChanged=function(){o.locStrsChanged()},o.onGetQuestionTitle.onCallbacksChanged=function(){o.locStrsChanged()},o.onBeforeCreating(),n&&(("string"==typeof n||n instanceof String)&&(n=JSON.parse(n)),n&&n.clientId&&(o.clientId=n.clientId),o.fromJSON(n),o.surveyId&&o.loadSurveyFromService(o.surveyId,o.clientId)),o.onCreating(),o}return Bn(t,e),Object.defineProperty(t.prototype,"platformName",{get:function(){return t.platform},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"commentPrefix",{get:function(){return a.commentPrefix},set:function(e){a.commentPrefix=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currentPageValue",{get:function(){return this.getPropertyValue("currentPageValue",null)},set:function(e){this.setPropertyValue("currentPageValue",e)},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"survey"},t.prototype.onPropertyValueChanged=function(e,t,n){"questionsOnPageMode"===e&&this.onQuestionsOnPageModeChanged(t)},Object.defineProperty(t.prototype,"pages",{get:function(){return this.getPropertyValue("pages")},enumerable:!1,configurable:!0}),t.prototype.getCss=function(){return this.css},Object.defineProperty(t.prototype,"css",{get:function(){return this.cssValue||(this.cssValue={},this.copyCssClasses(this.cssValue,kn.getCss())),this.cssValue},set:function(e){this.updateElementCss(!1),this.mergeValues(e,this.css)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssTitle",{get:function(){return this.css.title},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssNavigationComplete",{get:function(){return this.getNavigationCss(this.css.navigationButton,this.css.navigation.complete)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssNavigationPreview",{get:function(){return this.getNavigationCss(this.css.navigationButton,this.css.navigation.preview)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssNavigationEdit",{get:function(){return this.getNavigationCss(this.css.navigationButton,this.css.navigation.edit)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssNavigationPrev",{get:function(){return this.getNavigationCss(this.css.navigationButton,this.css.navigation.prev)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssNavigationStart",{get:function(){return this.getNavigationCss(this.css.navigationButton,this.css.navigation.start)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssNavigationNext",{get:function(){return this.getNavigationCss(this.css.navigationButton,this.css.navigation.next)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"completedCss",{get:function(){return(new ze).append(this.css.body).append(this.css.completedPage).toString()},enumerable:!1,configurable:!0}),t.prototype.getNavigationCss=function(e,t){return(new ze).append(e).append(t).toString()},Object.defineProperty(t.prototype,"lazyRendering",{get:function(){return!0===this.lazyRenderingValue},set:function(e){this.lazyRenderingValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isLazyRendering",{get:function(){return this.lazyRendering||a.lazyRowsRendering},enumerable:!1,configurable:!0}),t.prototype.updateLazyRenderingRowsOnRemovingElements=function(){if(this.isLazyRendering){var e=this.currentPage;e&&function(e){if(document){var t=document.getElementById(e);if(t){var n=Et(t);n&&n.dispatchEvent(new CustomEvent("scroll"))}}}(e.id)}},Object.defineProperty(t.prototype,"triggers",{get:function(){return this.getPropertyValue("triggers")},set:function(e){this.setPropertyValue("triggers",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"calculatedValues",{get:function(){return this.getPropertyValue("calculatedValues")},set:function(e){this.setPropertyValue("calculatedValues",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"surveyId",{get:function(){return this.getPropertyValue("surveyId","")},set:function(e){this.setPropertyValue("surveyId",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"surveyPostId",{get:function(){return this.getPropertyValue("surveyPostId","")},set:function(e){this.setPropertyValue("surveyPostId",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clientId",{get:function(){return this.getPropertyValue("clientId","")},set:function(e){this.setPropertyValue("clientId",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cookieName",{get:function(){return this.getPropertyValue("cookieName","")},set:function(e){this.setPropertyValue("cookieName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sendResultOnPageNext",{get:function(){return this.getPropertyValue("sendResultOnPageNext",!1)},set:function(e){this.setPropertyValue("sendResultOnPageNext",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"surveyShowDataSaving",{get:function(){return this.getPropertyValue("surveyShowDataSaving",!1)},set:function(e){this.setPropertyValue("surveyShowDataSaving",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"focusFirstQuestionAutomatic",{get:function(){return this.getPropertyValue("focusFirstQuestionAutomatic")},set:function(e){this.setPropertyValue("focusFirstQuestionAutomatic",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"focusOnFirstError",{get:function(){return this.getPropertyValue("focusOnFirstError")},set:function(e){this.setPropertyValue("focusOnFirstError",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showNavigationButtons",{get:function(){return this.getPropertyValue("showNavigationButtons")},set:function(e){!0!==e&&void 0!==e||(e="bottom"),!1===e&&(e="none"),this.setPropertyValue("showNavigationButtons",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showPrevButton",{get:function(){return this.getPropertyValue("showPrevButton")},set:function(e){this.setPropertyValue("showPrevButton",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showTitle",{get:function(){return this.getPropertyValue("showTitle")},set:function(e){this.setPropertyValue("showTitle",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showPageTitles",{get:function(){return this.getPropertyValue("showPageTitles")},set:function(e){this.setPropertyValue("showPageTitles",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showCompletedPage",{get:function(){return this.getPropertyValue("showCompletedPage")},set:function(e){this.setPropertyValue("showCompletedPage",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"navigateToUrl",{get:function(){return this.getPropertyValue("navigateToUrl")},set:function(e){this.setPropertyValue("navigateToUrl",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"navigateToUrlOnCondition",{get:function(){return this.getPropertyValue("navigateToUrlOnCondition")},set:function(e){this.setPropertyValue("navigateToUrlOnCondition",e)},enumerable:!1,configurable:!0}),t.prototype.getNavigateToUrl=function(){var e=this.getExpressionItemOnRunCondition(this.navigateToUrlOnCondition),t=e?e.url:this.navigateToUrl;return t&&(t=this.processText(t,!0)),t},t.prototype.navigateTo=function(){var e={url:this.getNavigateToUrl()};this.onNavigateToUrl.fire(this,e),e.url&&"undefined"!=typeof window&&window.location&&(window.location.href=e.url)},Object.defineProperty(t.prototype,"requiredText",{get:function(){return this.getPropertyValue("requiredText","*")},set:function(e){this.setPropertyValue("requiredText",e)},enumerable:!1,configurable:!0}),t.prototype.beforeSettingQuestionErrors=function(e,t){this.maakeRequiredErrorsInvisibgle(t),this.onSettingQuestionErrors.fire(this,{question:e,errors:t})},t.prototype.beforeSettingPanelErrors=function(e,t){this.maakeRequiredErrorsInvisibgle(t)},t.prototype.maakeRequiredErrorsInvisibgle=function(e){if(this.hideRequiredErrors)for(var t=0;t<e.length;t++){var n=e[t].getErrorType();"required"!=n&&"requireoneanswer"!=n||(e[t].visible=!1)}},Object.defineProperty(t.prototype,"questionStartIndex",{get:function(){return this.getPropertyValue("questionStartIndex","")},set:function(e){this.setPropertyValue("questionStartIndex",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"storeOthersAsComment",{get:function(){return this.getPropertyValue("storeOthersAsComment")},set:function(e){this.setPropertyValue("storeOthersAsComment",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxTextLength",{get:function(){return this.getPropertyValue("maxTextLength")},set:function(e){this.setPropertyValue("maxTextLength",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxOthersLength",{get:function(){return this.getPropertyValue("maxOthersLength")},set:function(e){this.setPropertyValue("maxOthersLength",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"goNextPageAutomatic",{get:function(){return this.getPropertyValue("goNextPageAutomatic",!1)},set:function(e){this.setPropertyValue("goNextPageAutomatic",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowCompleteSurveyAutomatic",{get:function(){return this.getPropertyValue("allowCompleteSurveyAutomatic",!0)},set:function(e){this.setPropertyValue("allowCompleteSurveyAutomatic",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"checkErrorsMode",{get:function(){return this.getPropertyValue("checkErrorsMode")},set:function(e){this.setPropertyValue("checkErrorsMode",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"autoGrowComment",{get:function(){return this.getPropertyValue("autoGrowComment")},set:function(e){this.setPropertyValue("autoGrowComment",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"textUpdateMode",{get:function(){return this.getPropertyValue("textUpdateMode")},set:function(e){this.setPropertyValue("textUpdateMode",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clearInvisibleValues",{get:function(){return this.getPropertyValue("clearInvisibleValues")},set:function(e){!0===e&&(e="onComplete"),!1===e&&(e="none"),this.setPropertyValue("clearInvisibleValues",e)},enumerable:!1,configurable:!0}),t.prototype.clearIncorrectValues=function(e){void 0===e&&(e=!1);for(var t=0;t<this.pages.length;t++)this.pages[t].clearIncorrectValues();if(e){var n=this.data,o=!1;for(var r in n)if(!this.getQuestionByValueName(r)&&!this.iscorrectValueWithPostPrefix(r,a.commentPrefix)&&!this.iscorrectValueWithPostPrefix(r,a.matrixTotalValuePostFix)){var i=this.getCalculatedValueByName(r);i&&i.includeIntoResult||(o=!0,delete n[r])}o&&(this.data=n)}},t.prototype.iscorrectValueWithPostPrefix=function(e,t){return e.indexOf(t)===e.length-t.length&&!!this.getQuestionByValueName(e.substr(0,e.indexOf(t)))},Object.defineProperty(t.prototype,"locale",{get:function(){return this.localeValue},set:function(e){u.currentLocale=e,this.localeValue=u.currentLocale,this.setPropertyValue("locale",this.localeValue),this.isLoadingFromJson||(this.locStrsChanged(),this.localeChanged(),this.onLocaleChangedEvent.fire(this,e))},enumerable:!1,configurable:!0}),t.prototype.getUsedLocales=function(){var e=new Array;this.addUsedLocales(e);var t=e.indexOf("default");if(t>-1){var n=u.defaultLocale,o=e.indexOf(n);o>-1&&e.splice(o,1),t=e.indexOf("default"),e[t]=n}return e},t.prototype.localeChanged=function(){for(var e=0;e<this.pages.length;e++)this.pages[e].localeChanged()},t.prototype.getLocale=function(){return this.locale},t.prototype.locStrsChanged=function(){if(e.prototype.locStrsChanged.call(this),this.currentPageValue){this.updateProgressText();var t=this.activePage;t&&t.locStrsChanged()}},t.prototype.getMarkdownHtml=function(e,t){return this.getSurveyMarkdownHtml(this,e,t)},t.prototype.getRenderer=function(e){return this.getRendererForString(this,e)},t.prototype.getRendererContext=function(e){return this.getRendererContextForString(this,e)},t.prototype.getRendererForString=function(e,t){var n={element:e,name:t,renderAs:this.getBuiltInRendererForString(e,t)};return this.onTextRenderAs.fire(this,n),n.renderAs},t.prototype.getRendererContextForString=function(e,t){return t},t.prototype.getExpressionDisplayValue=function(e,t,n){var o={question:e,value:t,displayValue:n};return this.onGetExpressionDisplayValue.fire(this,o),o.displayValue},t.prototype.getBuiltInRendererForString=function(e,t){if(this.isDesignMode)return d.editableRenderer},t.prototype.getProcessedText=function(e){return this.processText(e,!0)},t.prototype.getLocString=function(e){return u.getString(e)},t.prototype.getErrorCustomText=function(e,t){var n={text:e,name:t.getErrorType(),error:t};return this.onErrorCustomText.fire(this,n),n.text},Object.defineProperty(t.prototype,"emptySurveyText",{get:function(){return this.getLocString("emptySurvey")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"logo",{get:function(){return this.getLocalizableStringText("logo")},set:function(e){this.setLocalizableStringText("logo",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locLogo",{get:function(){return this.getLocalizableString("logo")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"logoWidth",{get:function(){return qt(this.getPropertyValue("logoWidth"))},set:function(e){this.setPropertyValue("logoWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"logoHeight",{get:function(){return qt(this.getPropertyValue("logoHeight"))},set:function(e){this.setPropertyValue("logoHeight",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"logoPosition",{get:function(){return this.getPropertyValue("logoPosition")},set:function(e){this.setPropertyValue("logoPosition",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasLogo",{get:function(){return!!this.logo&&"none"!==this.logoPosition},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isLogoBefore",{get:function(){return!this.isDesignMode&&(this.renderedHasLogo&&("left"===this.logoPosition||"top"===this.logoPosition))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isLogoAfter",{get:function(){return this.isDesignMode?this.renderedHasLogo:this.renderedHasLogo&&("right"===this.logoPosition||"bottom"===this.logoPosition)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"logoClassNames",{get:function(){return(new ze).append(this.css.logo).append({left:"sv-logo--left",right:"sv-logo--right",top:"sv-logo--top",bottom:"sv-logo--bottom"}[this.logoPosition]).toString()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedHasTitle",{get:function(){return this.isDesignMode?this.isPropertyVisible("title"):!this.locTitle.isEmpty&&this.showTitle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitle",{get:function(){return this.renderedHasTitle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedHasLogo",{get:function(){return this.isDesignMode?this.isPropertyVisible("logo"):this.hasLogo},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedHasHeader",{get:function(){return this.renderedHasTitle||this.renderedHasLogo},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"logoFit",{get:function(){return this.getPropertyValue("logoFit")},set:function(e){this.setPropertyValue("logoFit",e)},enumerable:!1,configurable:!0}),t.prototype.setIsMobile=function(e){void 0===e&&(e=!0),this._isMobile=e},Object.defineProperty(t.prototype,"isMobile",{get:function(){return"undefined"!=typeof window&&void 0!==window.orientation||this._isMobile},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleMaxWidth",{get:function(){if(!this.isMobile&&!this.isValueEmpty(this.logo)&&!a.supportCreatorV2){var e=this.logoWidth;if("left"===this.logoPosition||"right"===this.logoPosition)return"calc(100% - 5px - 2em - "+e+")"}return""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"completedHtml",{get:function(){return this.getLocalizableStringText("completedHtml")},set:function(e){this.setLocalizableStringText("completedHtml",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locCompletedHtml",{get:function(){return this.getLocalizableString("completedHtml")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"completedHtmlOnCondition",{get:function(){return this.getPropertyValue("completedHtmlOnCondition")},set:function(e){this.setPropertyValue("completedHtmlOnCondition",e)},enumerable:!1,configurable:!0}),t.prototype.runExpression=function(e){if(!e)return null;var t=this.getFilteredValues(),n=this.getFilteredProperties();return new ke(e).run(t,n)},t.prototype.runCondition=function(e){if(!e)return!1;var t=this.getFilteredValues(),n=this.getFilteredProperties();return new Te(e).run(t,n)},t.prototype.runTriggers=function(){this.checkTriggers(this.getFilteredValues(),!1)},Object.defineProperty(t.prototype,"renderedCompletedHtml",{get:function(){var e=this.getExpressionItemOnRunCondition(this.completedHtmlOnCondition);return e?e.html:this.completedHtml},enumerable:!1,configurable:!0}),t.prototype.getExpressionItemOnRunCondition=function(e){if(0==e.length)return null;for(var t=this.getFilteredValues(),n=this.getFilteredProperties(),o=0;o<e.length;o++)if(e[o].runCondition(t,n))return e[o];return null},Object.defineProperty(t.prototype,"completedBeforeHtml",{get:function(){return this.getLocalizableStringText("completedBeforeHtml")},set:function(e){this.setLocalizableStringText("completedBeforeHtml",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locCompletedBeforeHtml",{get:function(){return this.getLocalizableString("completedBeforeHtml")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"loadingHtml",{get:function(){return this.getLocalizableStringText("loadingHtml")},set:function(e){this.setLocalizableStringText("loadingHtml",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locLoadingHtml",{get:function(){return this.getLocalizableString("loadingHtml")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"startSurveyText",{get:function(){return this.getLocalizableStringText("startSurveyText")},set:function(e){this.setLocalizableStringText("startSurveyText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locStartSurveyText",{get:function(){return this.getLocalizableString("startSurveyText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pagePrevText",{get:function(){return this.getLocalizableStringText("pagePrevText")},set:function(e){this.setLocalizableStringText("pagePrevText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPagePrevText",{get:function(){return this.getLocalizableString("pagePrevText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pageNextText",{get:function(){return this.getLocalizableStringText("pageNextText")},set:function(e){this.setLocalizableStringText("pageNextText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPageNextText",{get:function(){return this.getLocalizableString("pageNextText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"completeText",{get:function(){return this.getLocalizableStringText("completeText")},set:function(e){this.setLocalizableStringText("completeText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locCompleteText",{get:function(){return this.getLocalizableString("completeText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"previewText",{get:function(){return this.getLocalizableStringText("previewText")},set:function(e){this.setLocalizableStringText("previewText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPreviewText",{get:function(){return this.getLocalizableString("previewText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"editText",{get:function(){return this.getLocalizableStringText("editText")},set:function(e){this.setLocalizableStringText("editText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locEditText",{get:function(){return this.getLocalizableString("editText")},enumerable:!1,configurable:!0}),t.prototype.getElementTitleTagName=function(e,t){if(this.onGetTitleTagName.isEmpty)return t;var n={element:e,tagName:t};return this.onGetTitleTagName.fire(this,n),n.tagName},Object.defineProperty(t.prototype,"questionTitlePattern",{get:function(){return this.getPropertyValue("questionTitlePattern","numTitleRequire")},set:function(e){"numRequireTitle"!==e&&"requireNumTitle"!==e&&"numTitle"!=e&&(e="numTitleRequire"),this.setPropertyValue("questionTitlePattern",e)},enumerable:!1,configurable:!0}),t.prototype.getQuestionTitlePatternOptions=function(){var e=new Array,t=this.getLocString("questionTitlePatternText"),n=this.questionStartIndex?this.questionStartIndex:"1.";return e.push({value:"numTitleRequire",text:n+" "+t+" "+this.requiredText}),e.push({value:"numRequireTitle",text:n+" "+this.requiredText+" "+t}),e.push({value:"requireNumTitle",text:this.requiredText+" "+n+" "+t}),e.push({value:"numTitle",text:n+" "+t}),e},Object.defineProperty(t.prototype,"questionTitleTemplate",{get:function(){return this.getLocalizableStringText("questionTitleTemplate")},set:function(e){this.setLocalizableStringText("questionTitleTemplate",e),this.questionTitlePattern=this.getNewTitlePattern(e),this.questionStartIndex=this.getNewQuestionTitleElement(e,"no",this.questionStartIndex,"1"),this.requiredText=this.getNewQuestionTitleElement(e,"require",this.requiredText,"*")},enumerable:!1,configurable:!0}),t.prototype.getNewTitlePattern=function(e){if(e){for(var t=[];e.indexOf("{")>-1;){var n=(e=e.substr(e.indexOf("{")+1)).indexOf("}");if(n<0)break;t.push(e.substr(0,n)),e=e.substr(n+1)}if(t.length>1){if("require"==t[0])return"requireNumTitle";if("require"==t[1]&&3==t.length)return"numRequireTitle";if(t.indexOf("require")<0)return"numTitle"}if(1==t.length&&"title"==t[0])return"numTitle"}return"numTitleRequire"},t.prototype.getNewQuestionTitleElement=function(e,t,n,o){if(t="{"+t+"}",!e||e.indexOf(t)<0)return n;for(var r=e.indexOf(t),i="",a="",s=r-1;s>=0&&"}"!=e[s];s--);for(s<r-1&&(i=e.substr(s+1,r-s-1)),s=r+=t.length;s<e.length&&"{"!=e[s];s++);for(s>r&&(a=e.substr(r,s-r)),s=0;s<i.length&&i.charCodeAt(s)<33;)s++;for(i=i.substr(s),s=a.length-1;s>=0&&a.charCodeAt(s)<33;)s--;return a=a.substr(0,s+1),i||a?i+(n||o)+a:n},Object.defineProperty(t.prototype,"locQuestionTitleTemplate",{get:function(){return this.getLocalizableString("questionTitleTemplate")},enumerable:!1,configurable:!0}),t.prototype.getUpdatedQuestionTitle=function(e,t){if(this.onGetQuestionTitle.isEmpty)return t;var n={question:e,title:t};return this.onGetQuestionTitle.fire(this,n),n.title},t.prototype.getUpdatedQuestionNo=function(e,t){if(this.onGetQuestionNo.isEmpty)return t;var n={question:e,no:t};return this.onGetQuestionNo.fire(this,n),n.no},Object.defineProperty(t.prototype,"showPageNumbers",{get:function(){return this.getPropertyValue("showPageNumbers",!1)},set:function(e){e!==this.showPageNumbers&&(this.setPropertyValue("showPageNumbers",e),this.updateVisibleIndexes())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showQuestionNumbers",{get:function(){return this.getPropertyValue("showQuestionNumbers")},set:function(e){(e="onpage"===(e=e.toLowerCase())?"onPage":e)!==this.showQuestionNumbers&&(this.setPropertyValue("showQuestionNumbers",e),this.updateVisibleIndexes())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showProgressBar",{get:function(){return this.getPropertyValue("showProgressBar")},set:function(e){this.setPropertyValue("showProgressBar",e.toLowerCase())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"progressBarType",{get:function(){return this.getPropertyValue("progressBarType")},set:function(e){"correctquestion"===e&&(e="correctQuestion"),"requiredquestion"===e&&(e="requiredQuestion"),this.setPropertyValue("progressBarType",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowProgressBarOnTop",{get:function(){return!!this.canShowProresBar()&&("top"===this.showProgressBar||"both"===this.showProgressBar)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowProgressBarOnBottom",{get:function(){return!!this.canShowProresBar()&&("bottom"===this.showProgressBar||"both"===this.showProgressBar)},enumerable:!1,configurable:!0}),t.prototype.canShowProresBar=function(){return!this.isShowingPreview||"showAllQuestions"!=this.showPreviewBeforeComplete},Object.defineProperty(t.prototype,"processedTitle",{get:function(){return this.locTitle.renderedHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionTitleLocation",{get:function(){return this.getPropertyValue("questionTitleLocation")},set:function(e){this.setPropertyValue("questionTitleLocation",e.toLowerCase()),this.isLoadingFromJson||this.updateElementCss(!0)},enumerable:!1,configurable:!0}),t.prototype.updateElementCss=function(e){for(var t=this.visiblePages,n=0;n<t.length;n++)t[n].updateElementCss(e)},Object.defineProperty(t.prototype,"questionErrorLocation",{get:function(){return this.getPropertyValue("questionErrorLocation")},set:function(e){this.setPropertyValue("questionErrorLocation",e.toLowerCase())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionDescriptionLocation",{get:function(){return this.getPropertyValue("questionDescriptionLocation")},set:function(e){this.setPropertyValue("questionDescriptionLocation",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"mode",{get:function(){return this.getPropertyValue("mode")},set:function(e){(e=e.toLowerCase())!=this.mode&&("edit"!=e&&"display"!=e||this.setPropertyValue("mode",e))},enumerable:!1,configurable:!0}),t.prototype.onModeChanged=function(){for(var e=0;e<this.pages.length;e++){var t=this.pages[e];t.setPropertyValue("isReadOnly",t.isReadOnly)}},Object.defineProperty(t.prototype,"data",{get:function(){for(var e={},t=this.getValuesKeys(),n=0;n<t.length;n++){var o=t[n],r=this.getDataValueCore(this.valuesHash,o);void 0!==r&&(e[o]=r)}return this.setCalcuatedValuesIntoResult(e),e},set:function(e){this.valuesHash={},this.setDataCore(e)},enumerable:!1,configurable:!0}),t.prototype.mergeData=function(e){e&&this.setDataCore(e)},t.prototype.setDataCore=function(e){if(e)for(var t in e)this.setDataValueCore(this.valuesHash,t,e[t]);this.updateAllQuestionsValue(),this.notifyAllQuestionsOnValueChanged(),this.notifyElementsOnAnyValueOrVariableChanged(""),this.runConditions()},Object.defineProperty(t.prototype,"editingObj",{get:function(){return this.editingObjValue},set:function(e){var t=this;if(this.editingObj!=e&&(this.editingObj&&this.editingObj.onPropertyChanged.remove(this.onEditingObjPropertyChanged),this.editingObjValue=e,!this.isDisposed)){if(!e)for(var n=this.getAllQuestions(),o=0;o<n.length;o++)n[o].unbindValue();this.editingObj&&(this.setDataCore({}),this.onEditingObjPropertyChanged=function(e,n){R.hasOriginalProperty(t.editingObj,n.name)&&t.updateOnSetValue(n.name,t.editingObj[n.name],n.oldValue)},this.editingObj.onPropertyChanged.add(this.onEditingObjPropertyChanged))}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isEditingSurveyElement",{get:function(){return!!this.editingObj},enumerable:!1,configurable:!0}),t.prototype.setCalcuatedValuesIntoResult=function(e){for(var t=0;t<this.calculatedValues.length;t++){var n=this.calculatedValues[t];n.includeIntoResult&&n.name&&void 0!==this.getVariable(n.name)&&(e[n.name]=this.getVariable(n.name))}},t.prototype.getAllValues=function(){return this.data},t.prototype.getPlainData=function(e){void 0===e&&(e={includeEmpty:!0,includeQuestionTypes:!1});var t=[];return this.getAllQuestions().forEach((function(n){var o=n.getPlainData(e);o&&t.push(o)})),t},t.prototype.getFilteredValues=function(){var e={};for(var t in this.variablesHash)e[t]=this.variablesHash[t];this.addCalculatedValuesIntoFilteredValues(e);for(var n=this.getValuesKeys(),o=0;o<n.length;o++){e[t=n[o]]=this.getDataValueCore(this.valuesHash,t)}return e},t.prototype.addCalculatedValuesIntoFilteredValues=function(e){for(var t=this.calculatedValues,n=0;n<t.length;n++)e[t[n].name]=t[n].value},t.prototype.getFilteredProperties=function(){return{survey:this}},t.prototype.getValuesKeys=function(){if(!this.editingObj)return Object.keys(this.valuesHash);for(var e=R.getPropertiesByObj(this.editingObj),t=[],n=0;n<e.length;n++)t.push(e[n].name);return t},t.prototype.getDataValueCore=function(e,t){return this.editingObj?R.getObjPropertyValue(this.editingObj,t):e[t]},t.prototype.setDataValueCore=function(e,t,n){this.editingObj?R.setObjPropertyValue(this.editingObj,t,n):e[t]=n},t.prototype.deleteDataValueCore=function(e,t){this.editingObj?this.editingObj[t]=null:delete e[t]},Object.defineProperty(t.prototype,"comments",{get:function(){for(var e={},t=this.getValuesKeys(),n=0;n<t.length;n++){var o=t[n];o.indexOf(this.commentPrefix)>0&&(e[o]=this.getDataValueCore(this.valuesHash,o))}return e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visiblePages",{get:function(){if(this.isDesignMode)return this.pages;for(var e=new Array,t=0;t<this.pages.length;t++)this.pages[t].isVisible&&!this.pages[t].isStarted&&e.push(this.pages[t]);return e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isEmpty",{get:function(){return 0==this.pages.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"PageCount",{get:function(){return this.pageCount},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pageCount",{get:function(){return this.pages.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visiblePageCount",{get:function(){return this.visiblePages.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"startedPage",{get:function(){var e=this.firstPageIsStarted&&this.pages.length>0?this.pages[0]:null;return e&&(e.onFirstRendering(),e.setWasShown(!0)),e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currentPage",{get:function(){var e=this.visiblePages;return null!=this.currentPageValue&&e.indexOf(this.currentPageValue)<0&&(this.onContainsPageCallback&&this.onContainsPageCallback(this.currentPageValue)||(this.currentPage=null)),null==this.currentPageValue&&e.length>0&&(this.currentPage=e[0]),this.currentPageValue},set:function(e){if(!this.isLoadingFromJson){var t=this.getPageByObject(e);if(!e||t){var n=this.visiblePages;if(!(null!=t&&n.indexOf(t)<0)&&t!=this.currentPageValue){var o=this.currentPageValue;this.currentPageChanging(t,o)&&(this.currentPageValue=t,t&&(t.onFirstRendering(),t.updateCustomWidgets(),t.setWasShown(!0)),this.locStrsChanged(),this.currentPageChanged(t,o))}}}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"activePage",{get:function(){return this.isStartedState&&this.startedPage?this.startedPage:this.currentPage},enumerable:!1,configurable:!0}),t.prototype.getPageByObject=function(e){if(!e)return null;if(e.getType&&"page"==e.getType())return e;if("string"==typeof e||e instanceof String)return this.getPageByName(String(e));if(!isNaN(e)){var t=Number(e),n=this.visiblePages;return e<0||e>=n.length?null:n[t]}return e},Object.defineProperty(t.prototype,"currentPageNo",{get:function(){return this.visiblePages.indexOf(this.currentPage)},set:function(e){var t=this.visiblePages;e<0||e>=t.length||(this.currentPage=t[e])},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionsOrder",{get:function(){return this.getPropertyValue("questionsOrder")},set:function(e){this.setPropertyValue("questionsOrder",e)},enumerable:!1,configurable:!0}),t.prototype.focusFirstQuestion=function(){if(!this.isFocusingQuestion){var e=this.activePage;e&&(e.scrollToTop(),e.focusFirstQuestion())}},t.prototype.scrollToTopOnPageChange=function(){var e=this.activePage;e&&(e.scrollToTop(),this.focusFirstQuestionAutomatic&&!this.isFocusingQuestion&&e.focusFirstQuestion())},Object.defineProperty(t.prototype,"state",{get:function(){return this.isLoading?"loading":this.isCompleted?"completed":this.isCompletedBefore?"completedbefore":!this.isDesignMode&&this.isEditMode&&this.isStartedState&&this.startedPage?"starting":this.isShowingPreview?this.currentPage?"preview":"empty":this.currentPage?"running":"empty"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isCompleted",{get:function(){return this.getPropertyValue("isCompleted",!1)},set:function(e){this.setPropertyValue("isCompleted",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowingPreview",{get:function(){return this.getPropertyValue("isShowingPreview",!1)},set:function(e){this.isShowingPreview!=e&&(this.setPropertyValue("isShowingPreview",e),this.onShowingPreviewChanged())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isStartedState",{get:function(){return this.getPropertyValue("isStartedState",!1)},set:function(e){this.setPropertyValue("isStartedState",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isCompletedBefore",{get:function(){return this.getPropertyValue("isCompletedBefore",!1)},set:function(e){this.setPropertyValue("isCompletedBefore",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isLoading",{get:function(){return this.getPropertyValue("isLoading",!1)},set:function(e){this.setPropertyValue("isLoading",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"completedState",{get:function(){return this.completedStateValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"completedStateText",{get:function(){return this.completedStateTextValue},enumerable:!1,configurable:!0}),t.prototype.setCompletedState=function(e,t){this.completedStateValue=e,t||("saving"==e&&(t=this.getLocString("savingData")),"error"==e&&(t=this.getLocString("savingDataError")),"success"==e&&(t=this.getLocString("savingDataSuccess"))),this.completedStateTextValue=t},t.prototype.clear=function(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0),e&&(this.data=null,this.variablesHash={}),this.timeSpent=0;for(var n=0;n<this.pages.length;n++)this.pages[n].timeSpent=0,this.pages[n].setWasShown(!1),this.pages[n].passed=!1;this.isCompleted=!1,this.isCompletedBefore=!1,this.isLoading=!1,this.isStartedState=this.firstPageIsStarted,t&&this.visiblePageCount>0&&(this.currentPage=this.visiblePages[0]),e&&this.updateValuesWithDefaults()},t.prototype.mergeValues=function(e,t){if(t&&e&&"object"==typeof t)for(var n in e){var o=e[n];o&&"object"==typeof o?(t[n]||(t[n]={}),this.mergeValues(o,t[n])):t[n]=o}},t.prototype.updateValuesWithDefaults=function(){if(!this.isDesignMode&&!this.isLoading)for(var e=0;e<this.pages.length;e++)for(var t=this.pages[e].questions,n=0;n<t.length;n++)t[n].updateValueWithDefaults()},t.prototype.updateCustomWidgets=function(e){e&&e.updateCustomWidgets()},t.prototype.currentPageChanging=function(e,t){var n={oldCurrentPage:t,newCurrentPage:e,allowChanging:!0,isNextPage:this.isNextPage(e,t),isPrevPage:this.isPrevPage(e,t)};return this.onCurrentPageChanging.fire(this,n),n.allowChanging},t.prototype.currentPageChanged=function(e,t){var n=this.isNextPage(e,t);n&&(t.passed=!0),this.onCurrentPageChanged.fire(this,{oldCurrentPage:t,newCurrentPage:e,isNextPage:n,isPrevPage:this.isPrevPage(e,t)})},t.prototype.isNextPage=function(e,t){return!(!e||!t)&&e.visibleIndex==t.visibleIndex+1},t.prototype.isPrevPage=function(e,t){return!(!e||!t)&&e.visibleIndex+1==t.visibleIndex},t.prototype.getProgress=function(){if(null==this.currentPage)return 0;if("pages"!==this.progressBarType){var e=this.getProgressInfo();return"requiredQuestions"===this.progressBarType?e.requiredQuestionCount>1?Math.ceil(100*e.requiredAnsweredQuestionCount/e.requiredQuestionCount):100:e.questionCount>1?Math.ceil(100*e.answeredQuestionCount/e.questionCount):100}var t=this.visiblePages.indexOf(this.currentPage)+1;return Math.ceil(100*t/this.visiblePageCount)},Object.defineProperty(t.prototype,"progressValue",{get:function(){return this.getPropertyValue("progressValue",0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNavigationButtonsShowing",{get:function(){if(this.isDesignMode)return"none";var e=this.currentPage;return e?"show"===e.navigationButtonsVisibility?"bottom":"hide"===e.navigationButtonsVisibility?"none":this.showNavigationButtons:"none"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNavigationButtonsShowingOnTop",{get:function(){return this.getIsNavigationButtonsShowingOn("top")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNavigationButtonsShowingOnBottom",{get:function(){return this.getIsNavigationButtonsShowingOn("bottom")},enumerable:!1,configurable:!0}),t.prototype.getIsNavigationButtonsShowingOn=function(e){var t=this.isNavigationButtonsShowing;return"both"==t||t==e},Object.defineProperty(t.prototype,"isEditMode",{get:function(){return"edit"==this.mode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isCompleteButtonVisible",{get:function(){return this.isEditMode&&(!this.isShowPreviewBeforeComplete||"preview"==this.state)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPreviewButtonVisible",{get:function(){return this.isEditMode&&this.isShowPreviewBeforeComplete&&"running"==this.state},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isCancelPreviewButtonVisible",{get:function(){return this.isEditMode&&this.isShowPreviewBeforeComplete&&"preview"==this.state},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDisplayMode",{get:function(){return"display"==this.mode||"preview"==this.state},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isUpdateValueTextOnTyping",{get:function(){return"onTyping"==this.textUpdateMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDesignMode",{get:function(){return this._isDesignMode},enumerable:!1,configurable:!0}),t.prototype.setDesignMode=function(e){this._isDesignMode=e,this.onQuestionsOnPageModeChanged("standard")},Object.defineProperty(t.prototype,"showInvisibleElements",{get:function(){return this.getPropertyValue("showInvisibleElements",!1)},set:function(e){var t=this.visiblePages;this.setPropertyValue("showInvisibleElements",e),this.isLoadingFromJson||(this.runConditions(),this.updateAllElementsVisibility(t))},enumerable:!1,configurable:!0}),t.prototype.updateAllElementsVisibility=function(e){for(var t=0;t<this.pages.length;t++){var n=this.pages[t];n.updateElementVisibility(),e.indexOf(n)>-1!=n.isVisible&&this.onPageVisibleChanged.fire(this,{page:n,visible:n.isVisible})}},Object.defineProperty(t.prototype,"areInvisibleElementsShowing",{get:function(){return this.isDesignMode||this.showInvisibleElements},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"areEmptyElementsHidden",{get:function(){return this.isShowingPreview&&"showAnsweredQuestions"==this.showPreviewBeforeComplete},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasCookie",{get:function(){if(!this.cookieName||"undefined"==typeof document)return!1;var e=document.cookie;return e&&e.indexOf(this.cookieName+"=true")>-1},enumerable:!1,configurable:!0}),t.prototype.setCookie=function(){this.cookieName&&"undefined"!=typeof document&&(document.cookie=this.cookieName+"=true; expires=Fri, 31 Dec 9999 0:0:0 GMT")},t.prototype.deleteCookie=function(){this.cookieName&&(document.cookie=this.cookieName+"=;")},t.prototype.nextPage=function(){return!this.isLastPage&&this.doCurrentPageComplete(!1)},t.prototype.hasErrorsOnNavigate=function(e){var t=this;if(this.ignoreValidation||!this.isEditMode)return!1;var n=function(n){n||t.doCurrentPageCompleteCore(e)};return"onComplete"===this.checkErrorsMode?!!this.isLastPage&&!1!==this.hasErrors(!0,!0,n):!1!==this.hasCurrentPageErrors(n)},t.prototype.checkForAsyncQuestionValidation=function(e,t){var n=this;this.clearAsyncValidationQuesitons();for(var o=function(){if(e[i].isRunningValidators){var o=e[i];o.onCompletedAsyncValidators=function(e){n.onCompletedAsyncQuestionValidators(o,t,e)},r.asyncValidationQuesitons.push(e[i])}},r=this,i=0;i<e.length;i++)o();return this.asyncValidationQuesitons.length>0},t.prototype.clearAsyncValidationQuesitons=function(){if(this.asyncValidationQuesitons)for(var e=this.asyncValidationQuesitons,t=0;t<e.length;t++)e[t].onCompletedAsyncValidators=null;this.asyncValidationQuesitons=[]},t.prototype.onCompletedAsyncQuestionValidators=function(e,t,n){if(n){if(this.clearAsyncValidationQuesitons(),t(!0),this.focusOnFirstError&&e&&e.page&&e.page===this.currentPage){for(var o=this.currentPage.questions,r=0;r<o.length;r++)if(o[r]!==e&&o[r].errors.length>0)return;e.focus(!0)}}else{for(var i=this.asyncValidationQuesitons,a=0;a<i.length;a++)if(i[a].isRunningValidators)return;t(!1)}},Object.defineProperty(t.prototype,"isCurrentPageHasErrors",{get:function(){return this.checkIsCurrentPageHasErrors()},enumerable:!1,configurable:!0}),t.prototype.hasCurrentPageErrors=function(e){return this.hasPageErrors(void 0,e)},t.prototype.hasPageErrors=function(e,t){return e||(e=this.activePage),!!e&&(!!this.checkIsPageHasErrors(e)||!!t&&(!!this.checkForAsyncQuestionValidation(e.questions,(function(e){return t(e)}))&&void 0))},t.prototype.hasErrors=function(e,t,n){void 0===e&&(e=!0),void 0===t&&(t=!1),n&&(e=!0);for(var o=this.visiblePages,r=null,i=!1,a=0;a<o.length;a++)o[a].hasErrors(e,!1)&&(r||(r=o[a]),i=!0);if(t&&r){this.currentPage=r;var s=r.questions;for(a=0;a<s.length;a++)if(s[a].errors.length>0){s[a].focus(!0);break}}return i||!n?i:!!this.checkForAsyncQuestionValidation(this.getAllQuestions(),(function(e){return n(e)}))&&void 0},t.prototype.ensureUniqueNames=function(e){if(void 0===e&&(e=null),null==e)for(var t=0;t<this.pages.length;t++)this.ensureUniqueName(this.pages[t]);else this.ensureUniqueName(e)},t.prototype.ensureUniqueName=function(e){if(e.isPage&&this.ensureUniquePageName(e),e.isPanel&&this.ensureUniquePanelName(e),e.isPage||e.isPanel)for(var t=e.elements,n=0;n<t.length;n++)this.ensureUniqueNames(t[n]);else this.ensureUniqueQuestionName(e)},t.prototype.ensureUniquePageName=function(e){var t=this;return this.ensureUniqueElementName(e,(function(e){return t.getPageByName(e)}))},t.prototype.ensureUniquePanelName=function(e){var t=this;return this.ensureUniqueElementName(e,(function(e){return t.getPanelByName(e)}))},t.prototype.ensureUniqueQuestionName=function(e){var t=this;return this.ensureUniqueElementName(e,(function(e){return t.getQuestionByName(e)}))},t.prototype.ensureUniqueElementName=function(e,t){var n=t(e.name);if(n&&n!=e){for(var o=this.getNewName(e.name);t(o);)o=this.getNewName(e.name);e.name=o}},t.prototype.getNewName=function(e){for(var t=e.length;t>0&&e[t-1]>="0"&&e[t-1]<="9";)t--;var n=e.substr(0,t),o=0;return t<e.length&&(o=parseInt(e.substr(t))),n+ ++o},t.prototype.checkIsCurrentPageHasErrors=function(e){return void 0===e&&(e=void 0),this.checkIsPageHasErrors(this.activePage,e)},t.prototype.checkIsPageHasErrors=function(e,t){if(void 0===t&&(t=void 0),void 0===t&&(t=this.focusOnFirstError),!e)return!0;var n=e.hasErrors(!0,t);return this.fireValidatedErrorsOnPage(e),n},t.prototype.fireValidatedErrorsOnPage=function(e){if(!this.onValidatedErrorsOnCurrentPage.isEmpty&&e){for(var t=e.questions,n=new Array,o=new Array,r=0;r<t.length;r++){var i=t[r];if(i.errors.length>0){n.push(i);for(var a=0;a<i.errors.length;a++)o.push(i.errors[a])}}this.onValidatedErrorsOnCurrentPage.fire(this,{questions:n,errors:o,page:e})}},t.prototype.prevPage=function(){if(this.isFirstPage)return!1;this.resetNavigationButton();var e=this.visiblePages,t=e.indexOf(this.currentPage);return this.currentPage=e[t-1],!0},t.prototype.completeLastPage=function(){var e=this.doCurrentPageComplete(!0);return e&&this.cancelPreview(),e},t.prototype.navigationMouseDown=function(){return this.isNavigationButtonPressed=!0,!0},t.prototype.resetNavigationButton=function(){this.isNavigationButtonPressed=!1},t.prototype.showPreview=function(){if(this.resetNavigationButton(),this.hasErrorsOnNavigate(!0))return!1;if(this.doServerValidation(!0,!0))return!1;var e={allowShowPreview:!0};return this.onShowingPreview.fire(this,e),this.isShowingPreview=e.allowShowPreview,!0},t.prototype.cancelPreview=function(e){void 0===e&&(e=null),this.isShowingPreview&&(this.isShowingPreview=!1,s.isValueEmpty(e)&&this.visiblePageCount>0&&(e=this.visiblePageCount-1),null!==e&&(this.currentPage=e))},t.prototype.cancelPreviewByPage=function(e){this.cancelPreview(e.originalPage)},t.prototype.doCurrentPageComplete=function(e){return!this.isValidatingOnServer&&(this.resetNavigationButton(),!this.hasErrorsOnNavigate(e)&&this.doCurrentPageCompleteCore(e))},t.prototype.doCurrentPageCompleteCore=function(e){return!this.doServerValidation(e)&&(e?(this.currentPage.passed=!0,this.doComplete()):(this.doNextPage(),!0))},Object.defineProperty(t.prototype,"isSinglePage",{get:function(){return"singlePage"==this.questionsOnPageMode},set:function(e){this.questionsOnPageMode=e?"singlePage":"standard"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionsOnPageMode",{get:function(){return this.getPropertyValue("questionsOnPageMode")},set:function(e){this.setPropertyValue("questionsOnPageMode",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"firstPageIsStarted",{get:function(){return this.getPropertyValue("firstPageIsStarted",!1)},set:function(e){this.setPropertyValue("firstPageIsStarted",e)},enumerable:!1,configurable:!0}),t.prototype.isPageStarted=function(e){return this.firstPageIsStarted&&this.pages.length>0&&this.pages[0]===e},Object.defineProperty(t.prototype,"showPreviewBeforeComplete",{get:function(){return this.getPropertyValue("showPreviewBeforeComplete")},set:function(e){this.setPropertyValue("showPreviewBeforeComplete",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowPreviewBeforeComplete",{get:function(){var e=this.showPreviewBeforeComplete;return"showAllQuestions"==e||"showAnsweredQuestions"==e},enumerable:!1,configurable:!0}),t.prototype.onFirstPageIsStartedChanged=function(){0!=this.pages.length&&(this.isStartedState=this.firstPageIsStarted,this.pageVisibilityChanged(this.pages[0],!this.firstPageIsStarted))},t.prototype.onShowingPreviewChanged=function(){this.isDesignMode||(this.isShowingPreview?(this.runningPages=this.pages.slice(0,this.pages.length),this.setupPagesForPageModes(!0)):(this.runningPages&&this.restoreOrigionalPages(this.runningPages),this.runningPages=void 0),this.runConditions(),this.updateAllElementsVisibility(this.pages),this.updateVisibleIndexes(),this.currentPageNo=0)},t.prototype.onQuestionsOnPageModeChanged=function(e){this.isShowingPreview||("standard"==this.questionsOnPageMode||this.isDesignMode?(this.origionalPages&&this.restoreOrigionalPages(this.origionalPages),this.origionalPages=void 0):(e&&"standard"!=e||(this.origionalPages=this.pages.slice(0,this.pages.length)),this.setupPagesForPageModes(this.isSinglePage)),this.runConditions(),this.updateVisibleIndexes())},t.prototype.restoreOrigionalPages=function(e){this.questionHashesClear(),this.pages.splice(0,this.pages.length);for(var t=0;t<e.length;t++)this.pages.push(e[t])},t.prototype.setupPagesForPageModes=function(t){this.questionHashesClear();var n=this.firstPageIsStarted?1:0;e.prototype.startLoadingFromJson.call(this);var o=this.createPagesForQuestionOnPageMode(t,n),r=this.pages.length-n;this.pages.splice(n,r);for(var i=0;i<o.length;i++)this.pages.push(o[i]);e.prototype.endLoadingFromJson.call(this);for(i=0;i<o.length;i++)o[i].endLoadingFromJson(),o[i].setSurveyImpl(this);this.doElementsOnLoad()},t.prototype.createPagesForQuestionOnPageMode=function(e,t){return e?[this.createSinglePage(t)]:this.createPagesForEveryQuestion(t)},t.prototype.createSinglePage=function(e){var t=this.createNewPage("all");t.setSurveyImpl(this);for(var n=e;n<this.pages.length;n++){var o=this.pages[n],r=R.createClass("panel");r.originalPage=o,t.addPanel(r);var i=(new E).toJsonObject(o);(new E).toObject(i,r),this.showPageTitles||(r.title="")}return t},t.prototype.createPagesForEveryQuestion=function(e){for(var t=[],n=e;n<this.pages.length;n++){var o=this.pages[n];o.setWasShown(!0);for(var r=0;r<o.elements.length;r++){var i=o.elements[r],a=R.createClass(i.getType());if(a){var s=new E;s.lightSerializing=!0;var l=s.toJsonObject(o),u=R.createClass(o.getType());u.fromJSON(l),u.name="page"+(t.length+1),u.setSurveyImpl(this),t.push(u);var c=(new E).toJsonObject(i);(new E).toObject(c,a),u.addElement(a);for(var p=0;p<u.questions.length;p++)this.questionHashesAdded(u.questions[p])}}}return t},Object.defineProperty(t.prototype,"isFirstPage",{get:function(){return null==this.currentPage||0==this.visiblePages.indexOf(this.currentPage)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowPrevButton",{get:function(){if(this.isFirstPage||!this.showPrevButton)return!1;var e=this.visiblePages[this.currentPageNo-1];return this.getPageMaxTimeToFinish(e)<=0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isLastPage",{get:function(){if(null==this.currentPage)return!0;var e=this.visiblePages;return e.indexOf(this.currentPage)==e.length-1},enumerable:!1,configurable:!0}),t.prototype.doComplete=function(e){void 0===e&&(e=!1);var t={allowComplete:!0,isCompleteOnTrigger:e};if(this.onCompleting.fire(this,t),!t.allowComplete)return this.isCompleted=!1,!1;var n=this.hasCookie;this.stopTimer(),this.setCompleted(),this.clearUnusedValues(),this.setCookie();var o=this,r=!1,i={isCompleteOnTrigger:e,showDataSaving:function(e){r=!0,o.setCompletedState("saving",e)},showDataSavingError:function(e){o.setCompletedState("error",e)},showDataSavingSuccess:function(e){o.setCompletedState("success",e),o.navigateTo()},showDataSavingClear:function(e){o.setCompletedState("","")}};return this.onComplete.fire(this,i),!n&&this.surveyPostId&&this.sendResult(),r||this.navigateTo(),!0},t.prototype.start=function(){return!!this.firstPageIsStarted&&(!this.checkIsPageHasErrors(this.startedPage,!0)&&(this.isStartedState=!1,this.startTimerFromUI(),this.onStarted.fire(this,{}),this.currentPage&&this.currentPage.locStrsChanged(),!0))},Object.defineProperty(t.prototype,"isValidatingOnServer",{get:function(){return this.getPropertyValue("isValidatingOnServer",!1)},enumerable:!1,configurable:!0}),t.prototype.setIsValidatingOnServer=function(e){e!=this.isValidatingOnServer&&(this.setPropertyValue("isValidatingOnServer",e),this.onIsValidatingOnServerChanged())},t.prototype.onIsValidatingOnServerChanged=function(){},t.prototype.doServerValidation=function(e,t){if(void 0===t&&(t=!1),!this.onServerValidateQuestions||this.onServerValidateQuestions.isEmpty)return!1;if(!e&&"onComplete"===this.checkErrorsMode)return!1;var n=this,o={data:{},errors:{},survey:this,complete:function(){n.completeServerValidation(o,t)}};if(e&&"onComplete"===this.checkErrorsMode)o.data=this.data;else for(var r=this.activePage.questions,i=0;i<r.length;i++){var a=r[i];if(a.visible){var s=this.getValue(a.getValueName());this.isValueEmpty(s)||(o.data[a.getValueName()]=s)}}return this.setIsValidatingOnServer(!0),"function"==typeof this.onServerValidateQuestions?this.onServerValidateQuestions(this,o):this.onServerValidateQuestions.fire(this,o),!0},t.prototype.completeServerValidation=function(e,t){if(this.setIsValidatingOnServer(!1),e||e.survey){var n=e.survey,o=!1;if(e.errors){var r=this.focusOnFirstError;for(var i in e.errors){var a=n.getQuestionByName(i);a&&a.errors&&(o=!0,a.addError(new ee(e.errors[i],this)),r&&(r=!1,a.page&&(this.currentPage=a.page),a.focus(!0)))}this.fireValidatedErrorsOnPage(this.currentPage)}o||(t?this.isShowingPreview=!0:n.isLastPage?n.doComplete():n.doNextPage())}},t.prototype.doNextPage=function(){var e=this.currentPage;if(this.checkOnPageTriggers(),this.isCompleted)this.doComplete(!0);else if(this.sendResultOnPageNext&&this.sendResult(this.surveyPostId,this.clientId,!0),e===this.currentPage){var t=this.visiblePages,n=t.indexOf(this.currentPage);this.currentPage=t[n+1]}},t.prototype.setCompleted=function(){this.isCompleted=!0},Object.defineProperty(t.prototype,"processedCompletedHtml",{get:function(){var e=this.renderedCompletedHtml;return e?this.processHtml(e):"<h3>"+this.getLocString("completingSurvey")+"</h3>"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"processedCompletedBeforeHtml",{get:function(){return this.completedBeforeHtml?this.processHtml(this.completedBeforeHtml):"<h3>"+this.getLocString("completingSurveyBefore")+"</h3>"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"processedLoadingHtml",{get:function(){return this.loadingHtml?this.processHtml(this.loadingHtml):"<h3>"+this.getLocString("loadingSurvey")+"</h3>"},enumerable:!1,configurable:!0}),t.prototype.getProgressInfo=function(){var e=this.isDesignMode?this.pages:this.visiblePages;return ft.getProgressInfoByElements(e,!1)},Object.defineProperty(t.prototype,"progressText",{get:function(){var e=this.getPropertyValue("progressText","");return e||(this.updateProgressText(),e=this.getPropertyValue("progressText","")),e},enumerable:!1,configurable:!0}),t.prototype.updateProgressText=function(e){void 0===e&&(e=!1),this.isCalculatingProgressText||e&&"pages"==this.progressBarType&&this.onProgressText.isEmpty||(this.isCalculatingProgressText=!0,this.setPropertyValue("progressText",this.getProgressText()),this.setPropertyValue("progressValue",this.getProgress()),this.isCalculatingProgressText=!1)},t.prototype.getProgressText=function(){if(!this.isDesignMode&&null==this.currentPage)return"";var e={questionCount:0,answeredQuestionCount:0,requiredQuestionCount:0,requiredAnsweredQuestionCount:0,text:""},t=this.progressBarType.toLowerCase();if("questions"===t||"requiredquestions"===t||"correctquestions"===t||!this.onProgressText.isEmpty){var n=this.getProgressInfo();e.questionCount=n.questionCount,e.answeredQuestionCount=n.answeredQuestionCount,e.requiredQuestionCount=n.requiredQuestionCount,e.requiredAnsweredQuestionCount=n.requiredAnsweredQuestionCount}return e.text=this.getProgressTextCore(e),this.onProgressText.fire(this,e),e.text},t.prototype.getProgressTextCore=function(e){var t=this.progressBarType.toLowerCase();if("questions"===t)return this.getLocString("questionsProgressText").format(e.answeredQuestionCount,e.questionCount);if("requiredquestions"===t)return this.getLocString("questionsProgressText").format(e.requiredAnsweredQuestionCount,e.requiredQuestionCount);if("correctquestions"===t){var n=this.getCorrectedAnswerCount();return this.getLocString("questionsProgressText").format(n,e.questionCount)}var o=this.isDesignMode?this.pages:this.visiblePages,r=this.isDesignMode?1:o.indexOf(this.currentPage)+1;return this.getLocString("progressText").format(r,o.length)},t.prototype.afterRenderSurvey=function(e){this.onAfterRenderSurvey.fire(this,{survey:this,htmlElement:e})},t.prototype.updateQuestionCssClasses=function(e,t){this.onUpdateQuestionCssClasses.fire(this,{question:e,cssClasses:t})},t.prototype.updatePanelCssClasses=function(e,t){this.onUpdatePanelCssClasses.fire(this,{panel:e,cssClasses:t})},t.prototype.updatePageCssClasses=function(e,t){this.onUpdatePageCssClasses.fire(this,{page:e,cssClasses:t})},t.prototype.updateChoiceItemCss=function(e,t){t.question=e,this.onUpdateChoiceItemCss.fire(this,t)},t.prototype.afterRenderPage=function(e){this.onAfterRenderPage.isEmpty||this.onAfterRenderPage.fire(this,{page:this.activePage,htmlElement:e})},t.prototype.afterRenderHeader=function(e){this.onAfterRenderHeader.isEmpty||this.onAfterRenderHeader.fire(this,{htmlElement:e})},t.prototype.afterRenderQuestion=function(e,t){this.onAfterRenderQuestion.fire(this,{question:e,htmlElement:t})},t.prototype.afterRenderQuestionInput=function(e,t){if(!this.onAfterRenderQuestionInput.isEmpty){var n=e.inputId;if(n&&t.id!==n&&"undefined"!=typeof document){var o=document.getElementById(n);o&&(t=o)}this.onAfterRenderQuestionInput.fire(this,{question:e,htmlElement:t})}},t.prototype.afterRenderPanel=function(e,t){this.onAfterRenderPanel.fire(this,{panel:e,htmlElement:t})},t.prototype.matrixBeforeRowAdded=function(e){this.onMatrixBeforeRowAdded.fire(this,e)},t.prototype.matrixRowAdded=function(e,t){this.onMatrixRowAdded.fire(this,{question:e,row:t})},t.prototype.getQuestionByValueNameFromArray=function(e,t,n){var o=this.getQuestionsByValueName(e);if(o){for(var r=0;r<o.length;r++){var i=o[r].getQuestionFromArray(t,n);if(i)return i}return null}},t.prototype.matrixRowRemoved=function(e,t,n){this.onMatrixRowRemoved.fire(this,{question:e,rowIndex:t,row:n})},t.prototype.matrixRowRemoving=function(e,t,n){var o={question:e,rowIndex:t,row:n,allow:!0};return this.onMatrixRowRemoving.fire(this,o),o.allow},t.prototype.matrixAllowRemoveRow=function(e,t,n){var o={question:e,rowIndex:t,row:n,allow:!0};return this.onMatrixAllowRemoveRow.fire(this,o),o.allow},t.prototype.matrixCellCreating=function(e,t){t.question=e,this.onMatrixCellCreating.fire(this,t)},t.prototype.matrixCellCreated=function(e,t){t.question=e,this.onMatrixCellCreated.fire(this,t)},t.prototype.matrixAfterCellRender=function(e,t){t.question=e,this.onMatrixAfterCellRender.fire(this,t)},t.prototype.matrixCellValueChanged=function(e,t){t.question=e,this.onMatrixCellValueChanged.fire(this,t)},t.prototype.matrixCellValueChanging=function(e,t){t.question=e,this.onMatrixCellValueChanging.fire(this,t)},Object.defineProperty(t.prototype,"isValidateOnValueChanging",{get:function(){return"onValueChanging"===this.checkErrorsMode},enumerable:!1,configurable:!0}),t.prototype.matrixCellValidate=function(e,t){return t.question=e,this.onMatrixCellValidate.fire(this,t),t.error?new ee(t.error,this):null},t.prototype.dynamicPanelAdded=function(e){if(!this.onDynamicPanelAdded.isEmpty){var t=e.panels,n=t[t.length-1];this.onDynamicPanelAdded.fire(this,{question:e,panel:n})}},t.prototype.dynamicPanelRemoved=function(e,t,n){for(var o=n?n.questions:[],r=0;r<o.length;r++)o[r].clearOnDeletingContainer();this.onDynamicPanelRemoved.fire(this,{question:e,panelIndex:t,panel:n})},t.prototype.dynamicPanelItemValueChanged=function(e,t){t.question=e,this.onDynamicPanelItemValueChanged.fire(this,t)},t.prototype.dragAndDropAllow=function(e){return e.allow=!0,this.onDragDropAllow.fire(this,e),e.allow},t.prototype.elementContentVisibilityChanged=function(e){this.currentPageValue&&this.currentPageValue.ensureRowsVisibility(),this.onElementContentVisibilityChanged.fire(this,{element:e})},t.prototype.getUpdatedElementTitleActions=function(e,t){return e.isPage?this.getUpdatedPageTitleActions(e,t):e.isPanel?this.getUpdatedPanelTitleActions(e,t):this.getUpdatedQuestionTitleActions(e,t)},t.prototype.getUpdatedQuestionTitleActions=function(e,t){var n={question:e,titleActions:t};return this.onGetQuestionTitleActions.fire(this,n),n.titleActions},t.prototype.getUpdatedPanelTitleActions=function(e,t){var n={panel:e,titleActions:t};return this.onGetPanelTitleActions.fire(this,n),n.titleActions},t.prototype.getUpdatedPageTitleActions=function(e,t){var n={page:e,titleActions:t};return this.onGetPageTitleActions.fire(this,n),n.titleActions},t.prototype.getUpdatedMatrixRowActions=function(e,t,n){var o={question:e,actions:n,row:t};return this.onGetMatrixRowActions.fire(this,o),o.actions},t.prototype.scrollElementToTop=function(e,t,n,o){var r={element:e,question:t,page:n,elementId:o,cancel:!1};this.onScrollingElementToTop.fire(this,r),r.cancel||ft.ScrollElementToTop(r.elementId)},t.prototype.uploadFiles=function(e,t,n,o){this.onUploadFiles.isEmpty?o("error",n):this.onUploadFiles.fire(this,{question:e,name:t,files:n||[],callback:o}),this.surveyPostId&&this.uploadFilesCore(t,n,o)},t.prototype.downloadFile=function(e,t,n){this.onDownloadFile.isEmpty&&n&&n("success",t.content||t),this.onDownloadFile.fire(this,{name:e,content:t.content||t,fileValue:t,callback:n})},t.prototype.clearFiles=function(e,t,n,o,r){this.onClearFiles.isEmpty&&r&&r("success",n),this.onClearFiles.fire(this,{question:e,name:t,value:n,fileName:o,callback:r})},t.prototype.updateChoicesFromServer=function(e,t,n){var o={question:e,choices:t,serverResult:n};return this.onLoadChoicesFromServer.fire(this,o),o.choices},t.prototype.loadedChoicesFromServer=function(e){this.locStrsChanged()},t.prototype.createSurveyService=function(){return new jn},t.prototype.uploadFilesCore=function(e,t,n){var o=this,r=[];t.forEach((function(e){n&&n("uploading",e),o.createSurveyService().sendFile(o.surveyPostId,e,(function(o,i){o?(r.push({content:i,file:e}),r.length===t.length&&n&&n("success",r)):n&&n("error",{response:i,file:e})}))}))},t.prototype.getPage=function(e){return this.pages[e]},t.prototype.addPage=function(e,t){void 0===t&&(t=-1),null!=e&&(t<0||t>=this.pages.length?this.pages.push(e):this.pages.splice(t,0,e))},t.prototype.addNewPage=function(e,t){void 0===e&&(e=null),void 0===t&&(t=-1);var n=this.createNewPage(e);return this.addPage(n,t),n},t.prototype.removePage=function(e){var t=this.pages.indexOf(e);t<0||(this.pages.splice(t,1),this.currentPageValue==e&&(this.currentPage=this.pages.length>0?this.pages[0]:null))},t.prototype.getQuestionByName=function(e,t){if(void 0===t&&(t=!1),!e)return null;t&&(e=e.toLowerCase());var n=(t?this.questionHashes.namesInsensitive:this.questionHashes.names)[e];return n?n[0]:null},t.prototype.getQuestionByValueName=function(e,t){void 0===t&&(t=!1);var n=this.getQuestionsByValueName(e,t);return n?n[0]:null},t.prototype.getQuestionsByValueName=function(e,t){void 0===t&&(t=!1);var n=(t?this.questionHashes.valueNamesInsensitive:this.questionHashes.valueNames)[e];return n||null},t.prototype.getCalculatedValueByName=function(e){for(var t=0;t<this.calculatedValues.length;t++)if(e==this.calculatedValues[t].name)return this.calculatedValues[t];return null},t.prototype.getQuestionsByNames=function(e,t){void 0===t&&(t=!1);var n=[];if(!e)return n;for(var o=0;o<e.length;o++)if(e[o]){var r=this.getQuestionByName(e[o],t);r&&n.push(r)}return n},t.prototype.getPageByElement=function(e){for(var t=0;t<this.pages.length;t++){var n=this.pages[t];if(n.containsElement(e))return n}return null},t.prototype.getPageByQuestion=function(e){return this.getPageByElement(e)},t.prototype.getPageByName=function(e){for(var t=0;t<this.pages.length;t++)if(this.pages[t].name==e)return this.pages[t];return null},t.prototype.getPagesByNames=function(e){var t=[];if(!e)return t;for(var n=0;n<e.length;n++)if(e[n]){var o=this.getPageByName(e[n]);o&&t.push(o)}return t},t.prototype.getAllQuestions=function(e,t){void 0===e&&(e=!1),void 0===t&&(t=!1);for(var n=new Array,o=0;o<this.pages.length;o++)this.pages[o].addQuestionsToList(n,e,t);return n},t.prototype.getQuizQuestions=function(){for(var e=new Array,t=this.firstPageIsStarted?1:0;t<this.pages.length;t++)if(this.pages[t].isVisible)for(var n=this.pages[t].questions,o=0;o<n.length;o++){var r=n[o];r.quizQuestionCount>0&&e.push(r)}return e},t.prototype.getPanelByName=function(e,t){void 0===t&&(t=!1);var n=this.getAllPanels();t&&(e=e.toLowerCase());for(var o=0;o<n.length;o++){var r=n[o].name;if(t&&(r=r.toLowerCase()),r==e)return n[o]}return null},t.prototype.getAllPanels=function(e,t){void 0===e&&(e=!1),void 0===t&&(t=!1);for(var n=new Array,o=0;o<this.pages.length;o++)this.pages[o].addPanelsIntoList(n,e,t);return n},t.prototype.createNewPage=function(e){return new An(e)},t.prototype.questionOnValueChanging=function(e,t){if(this.onValueChanging.isEmpty)return t;var n={name:e,question:this.getQuestionByValueName(e),value:this.getUnbindValue(t),oldValue:this.getValue(e)};return this.onValueChanging.fire(this,n),n.value},t.prototype.updateQuestionValue=function(e,t){if(!this.isLoadingFromJson){var n=this.getQuestionsByValueName(e);if(n)for(var o=0;o<n.length;o++){var r=n[o].value;(r===t&&Array.isArray(r)&&this.editingObj||!this.isTwoValueEquals(r,t))&&n[o].updateValueFromSurvey(t)}}},t.prototype.checkQuestionErrorOnValueChanged=function(e){!this.isNavigationButtonPressed&&("onValueChanged"===this.checkErrorsMode||e.getAllErrors().length>0)&&this.checkQuestionErrorOnValueChangedCore(e)},t.prototype.checkQuestionErrorOnValueChangedCore=function(e){var t=e.getAllErrors().length,n=e.hasErrors(!0,{isOnValueChanged:!this.isValidateOnValueChanging});return e.page&&(t>0||e.getAllErrors().length>0)&&this.fireValidatedErrorsOnPage(e.page),n},t.prototype.checkErrorsOnValueChanging=function(e,t){if(this.isLoadingFromJson)return!1;var n=this.getQuestionsByValueName(e);if(!n)return!1;for(var o=!1,r=0;r<n.length;r++){var i=n[r];this.isTwoValueEquals(i.valueForSurvey,t)||(i.value=t),this.checkQuestionErrorOnValueChangedCore(i)&&(o=!0),o=o||i.errors.length>0}return o},t.prototype.notifyQuestionOnValueChanged=function(e,t){if(!this.isLoadingFromJson){var n=this.getQuestionsByValueName(e);if(n)for(var o=0;o<n.length;o++){var r=n[o];this.checkQuestionErrorOnValueChanged(r),r.onSurveyValueChanged(t),this.onValueChanged.fire(this,{name:e,question:r,value:t})}else this.onValueChanged.fire(this,{name:e,question:null,value:t});if(!this.isDisposed){for(o=0;o<this.pages.length;o++)this.pages[o].checkBindings(e,t);this.notifyElementsOnAnyValueOrVariableChanged(e)}}},t.prototype.notifyElementsOnAnyValueOrVariableChanged=function(e){if("processing"!==this.isEndLoadingFromJson)if(this.isRunningConditions)this.conditionNotifyElementsOnAnyValueOrVariableChanged=!0;else{for(var t=0;t<this.pages.length;t++)this.pages[t].onAnyValueChanged(e);this.isEndLoadingFromJson||this.locStrsChanged()}},t.prototype.updateAllQuestionsValue=function(){for(var e=this.getAllQuestions(),t=0;t<e.length;t++){var n=e[t],o=n.getValueName();n.updateValueFromSurvey(this.getValue(o)),n.requireUpdateCommentValue&&n.updateCommentFromSurvey(this.getComment(o))}},t.prototype.notifyAllQuestionsOnValueChanged=function(){for(var e=this.getAllQuestions(),t=0;t<e.length;t++)e[t].onSurveyValueChanged(this.getValue(e[t].getValueName()))},t.prototype.checkOnPageTriggers=function(){for(var e=this.getCurrentPageQuestions(!0),t={},n=0;n<e.length;n++){var o=e[n].getValueName();t[o]=this.getValue(o)}this.addCalculatedValuesIntoFilteredValues(t),this.checkTriggers(t,!0)},t.prototype.getCurrentPageQuestions=function(e){void 0===e&&(e=!1);var t=[],n=this.currentPage;if(!n)return t;for(var o=0;o<n.questions.length;o++){var r=n.questions[o];(e||r.visible)&&r.name&&t.push(r)}return t},t.prototype.checkTriggers=function(e,t){if(!this.isCompleted&&0!=this.triggers.length&&!this.isDisplayMode)if(this.isTriggerIsRunning)for(var n in this.triggerValues=this.getFilteredValues(),e)this.triggerKeys[n]=e[n];else{this.isTriggerIsRunning=!0,this.triggerKeys=e,this.triggerValues=this.getFilteredValues();for(var o=this.getFilteredProperties(),r=0;r<this.triggers.length;r++){var i=this.triggers[r];i.isOnNextPage==t&&i.checkExpression(this.triggerKeys,this.triggerValues,o)}this.isTriggerIsRunning=!1}},t.prototype.doElementsOnLoad=function(){for(var e=0;e<this.pages.length;e++)this.pages[e].onSurveyLoad()},Object.defineProperty(t.prototype,"isRunningConditions",{get:function(){return!!this.conditionValues},enumerable:!1,configurable:!0}),t.prototype.runConditions=function(){if(!this.isCompleted&&"processing"!==this.isEndLoadingFromJson&&!this.isRunningConditions){this.conditionValues=this.getFilteredValues();var e=this.getFilteredProperties(),t=this.pages.indexOf(this.currentPageValue);this.runConditionsCore(e),this.checkIfNewPagesBecomeVisible(t),this.conditionValues=null,this.isValueChangedOnRunningCondition&&this.conditionRunnerCounter<a.maximumConditionRunCountOnValueChanged?(this.isValueChangedOnRunningCondition=!1,this.conditionRunnerCounter++,this.runConditions()):(this.isValueChangedOnRunningCondition=!1,this.conditionRunnerCounter=0,this.conditionUpdateVisibleIndexes&&(this.conditionUpdateVisibleIndexes=!1,this.updateVisibleIndexes()),this.conditionNotifyElementsOnAnyValueOrVariableChanged&&(this.conditionNotifyElementsOnAnyValueOrVariableChanged=!1,this.notifyElementsOnAnyValueOrVariableChanged("")))}},t.prototype.runConditionOnValueChanged=function(e,t){this.isRunningConditions?(this.conditionValues[e]=t,this.isValueChangedOnRunningCondition=!0):this.runConditions()},t.prototype.runConditionsCore=function(e){for(var t=this.pages,n=0;n<this.calculatedValues.length;n++)this.calculatedValues[n].resetCalculation();for(n=0;n<this.calculatedValues.length;n++)this.calculatedValues[n].doCalculation(this.calculatedValues,this.conditionValues,e);for(n=0;n<t.length;n++)t[n].runCondition(this.conditionValues,e)},t.prototype.checkIfNewPagesBecomeVisible=function(e){var t=this.pages.indexOf(this.currentPageValue);if(!(t<=e+1))for(var n=e+1;n<t;n++)if(this.pages[n].isVisible){this.currentPage=this.pages[n];break}},t.prototype.sendResult=function(e,t,n){if(void 0===e&&(e=null),void 0===t&&(t=null),void 0===n&&(n=!1),this.isEditMode&&(n&&this.onPartialSend&&this.onPartialSend.fire(this,null),!e&&this.surveyPostId&&(e=this.surveyPostId),e&&(t&&(this.clientId=t),!n||this.clientId))){var o=this;this.surveyShowDataSaving&&this.setCompletedState("saving",""),this.createSurveyService().sendResult(e,this.data,(function(e,t,n){o.surveyShowDataSaving&&(e?o.setCompletedState("success",""):o.setCompletedState("error",t)),o.onSendResult.fire(o,{success:e,response:t,request:n})}),this.clientId,n)}},t.prototype.getResult=function(e,t){var n=this;this.createSurveyService().getResult(e,t,(function(e,t,o,r){n.onGetResult.fire(n,{success:e,data:t,dataList:o,response:r})}))},t.prototype.loadSurveyFromService=function(e,t){void 0===e&&(e=null),void 0===t&&(t=null),e&&(this.surveyId=e),t&&(this.clientId=t);var n=this;this.isLoading=!0,this.onLoadingSurveyFromService(),t?this.createSurveyService().getSurveyJsonAndIsCompleted(this.surveyId,this.clientId,(function(e,t,o,r){n.isLoading=!1,e&&(n.isCompletedBefore="completed"==o,n.loadSurveyFromServiceJson(t))})):this.createSurveyService().loadSurvey(this.surveyId,(function(e,t,o){n.isLoading=!1,e&&n.loadSurveyFromServiceJson(t)}))},t.prototype.loadSurveyFromServiceJson=function(e){e&&(this.fromJSON(e),this.notifyAllQuestionsOnValueChanged(),this.onLoadSurveyFromService(),this.onLoadedSurveyFromService.fire(this,{}))},t.prototype.onLoadingSurveyFromService=function(){},t.prototype.onLoadSurveyFromService=function(){},t.prototype.resetVisibleIndexes=function(){for(var e=this.getAllQuestions(!0),t=0;t<e.length;t++)e[t].setVisibleIndex(-1);this.updateVisibleIndexes()},t.prototype.updateVisibleIndexes=function(){if(!this.isLoadingFromJson&&!this.isEndLoadingFromJson)if(this.isRunningConditions&&this.onVisibleChanged.isEmpty&&this.onPageVisibleChanged.isEmpty)this.conditionUpdateVisibleIndexes=!0;else{if(this.updatePageVisibleIndexes(this.showPageNumbers),"onPage"==this.showQuestionNumbers)for(var e=this.visiblePages,t=0;t<e.length;t++)e[t].setVisibleIndex(0);else{var n="on"==this.showQuestionNumbers?0:-1;for(t=0;t<this.pages.length;t++)n+=this.pages[t].setVisibleIndex(n)}this.updateProgressText(!0)}},t.prototype.updatePageVisibleIndexes=function(e){for(var t=0,n=0;n<this.pages.length;n++){var o=this.pages[n].isVisible;this.pages[n].visibleIndex=o?t++:-1,this.pages[n].num=e&&o?this.pages[n].visibleIndex+1:-1}},t.prototype.fromJSON=function(e){if(e){this.questionHashesClear(),this.jsonErrors=null;var t=new E;t.toObject(e,this),t.errors.length>0&&(this.jsonErrors=t.errors)}},t.prototype.setJsonObject=function(e){this.fromJSON(e)},t.prototype.endLoadingFromJson=function(){this.isEndLoadingFromJson="processing",this.isStartedState=this.firstPageIsStarted,this.onQuestionsOnPageModeChanged("standard"),e.prototype.endLoadingFromJson.call(this),this.hasCookie&&this.doComplete(),this.doElementsOnLoad(),this.isEndLoadingFromJson="conditions",this.runConditions(),this.notifyElementsOnAnyValueOrVariableChanged(""),this.isEndLoadingFromJson=null,this.updateVisibleIndexes()},t.prototype.onBeforeCreating=function(){},t.prototype.onCreating=function(){},t.prototype.getProcessedTextValue=function(e){if(this.getProcessedTextValueCore(e),!this.onProcessTextValue.isEmpty){var t=this.isValueEmpty(e.value);this.onProcessTextValue.fire(this,e),e.isExists=e.isExists||t&&!this.isValueEmpty(e.value)}},t.prototype.getProcessedTextValueCore=function(e){var t=e.name.toLocaleLowerCase();if(-1===["no","require","title"].indexOf(t))if("pageno"!==t){if("pagecount"===t)return e.isExists=!0,void(e.value=this.visiblePageCount);if("locale"===t)return e.isExists=!0,void(e.value=this.locale?this.locale:u.defaultLocale);if("correctedanswers"===t||"correctedanswercount"===t)return e.isExists=!0,void(e.value=this.getCorrectedAnswerCount());if("incorrectedanswers"===t||"incorrectedanswercount"===t)return e.isExists=!0,void(e.value=this.getInCorrectedAnswerCount());if("questioncount"===t)return e.isExists=!0,void(e.value=this.getQuizQuestionCount());var n=this.getVariable(t);if(void 0!==n)return e.isExists=!0,void(e.value=n);var o=this.getFirstName(t);if(o){e.isExists=!0;var r=o.getValueName().toLowerCase();t=(t=r+t.substr(r.length)).toLocaleLowerCase();var i={};return i[r]=e.returnDisplayValue?o.getDisplayValue(!1,void 0):o.value,void(e.value=(new te).getValue(t,i))}var a=this.getValue(e.name);void 0!==a&&(e.isExists=!0,e.value=a)}else{e.isExists=!0;var s=this.currentPage;e.value=null!=s?this.visiblePages.indexOf(s)+1:0}},t.prototype.getFirstName=function(e){var t;e=e.toLowerCase();do{t=this.getQuestionByValueName(e,!0),e=this.reduceFirstName(e)}while(!t&&e);return t},t.prototype.reduceFirstName=function(e){var t=e.lastIndexOf("."),n=e.lastIndexOf("[");if(t<0&&n<0)return"";var o=Math.max(t,n);return e.substr(0,o)},t.prototype.clearUnusedValues=function(){for(var e=this.getAllQuestions(),t=0;t<e.length;t++)e[t].clearUnusedValues();"none"!=this.clearInvisibleValues&&this.clearInvisibleQuestionValues()},t.prototype.hasVisibleQuestionByValueName=function(e){var t=this.getQuestionsByValueName(e);if(!t)return!1;for(var n=0;n<t.length;n++)if(t[n].isVisible)return!0;return!1},t.prototype.questionCountByValueName=function(e){var t=this.getQuestionsByValueName(e);return t?t.length:0},t.prototype.clearInvisibleQuestionValues=function(){for(var e=this.getAllQuestions(),t=0;t<e.length;t++)e[t].clearValueIfInvisible()},t.prototype.getVariable=function(e){if(!e)return null;e=e.toLowerCase();var t=this.variablesHash[e];return this.isValueEmpty(t)&&(e.indexOf(".")>-1||e.indexOf("[")>-1)&&(new te).hasValue(e,this.variablesHash)?(new te).getValue(e,this.variablesHash):t},t.prototype.setVariable=function(e,t){e&&(e=e.toLowerCase(),this.variablesHash[e]=t,this.notifyElementsOnAnyValueOrVariableChanged(e),this.runConditionOnValueChanged(e,t),this.onVariableChanged.fire(this,{name:e,value:t}))},t.prototype.getVariableNames=function(){var e=[];for(var t in this.variablesHash)e.push(t);return e},t.prototype.getUnbindValue=function(e){return this.editingObj?e:s.getUnbindValue(e)},t.prototype.getValue=function(e){if(!e||0==e.length)return null;var t=this.getDataValueCore(this.valuesHash,e);return this.getUnbindValue(t)},t.prototype.setValue=function(e,t,n,o){void 0===n&&(n=!1),void 0===o&&(o=!0);var r=t;if(o&&(r=this.questionOnValueChanging(e,t)),(!this.isValidateOnValueChanging||!this.checkErrorsOnValueChanging(e,r))&&(this.editingObj||!this.isValueEqual(e,r)||!this.isTwoValueEquals(r,t))){var i=this.getValue(e);this.isValueEmpty(r)?this.deleteDataValueCore(this.valuesHash,e):(r=this.getUnbindValue(r),this.setDataValueCore(this.valuesHash,e,r)),this.updateOnSetValue(e,r,i,n,o)}},t.prototype.updateOnSetValue=function(e,t,n,o,r){if(void 0===o&&(o=!1),void 0===r&&(r=!0),this.updateQuestionValue(e,t),!0!==o&&!this.isDisposed){var i={};i[e]={newValue:t,oldValue:n},this.runConditionOnValueChanged(e,t),this.checkTriggers(i,!1),r&&this.notifyQuestionOnValueChanged(e,t),"text"!==o&&this.tryGoNextPageAutomatic(e),this.updateProgressText(!0)}},t.prototype.isValueEqual=function(e,t){""!==t&&void 0!==t||(t=null);var n=this.getValue(e);return""!==n&&void 0!==n||(n=null),null===t||null===n?t===n:this.isTwoValueEquals(t,n)},t.prototype.doOnPageAdded=function(e){e.setSurveyImpl(this),e.name||(e.name=this.generateNewName(this.pages,"page")),this.questionHashesPanelAdded(e),this.updateVisibleIndexes(),this.isDesignMode&&this.updateProgressText();var t={page:e};this.onPageAdded.fire(this,t)},t.prototype.doOnPageRemoved=function(e){e.setSurveyImpl(null),this.updateVisibleIndexes(),this.isDesignMode&&this.updateProgressText(),this.updateLazyRenderingRowsOnRemovingElements()},t.prototype.generateNewName=function(e,t){for(var n={},o=0;o<e.length;o++)n[e[o].name]=!0;for(var r=1;n[t+r];)r++;return t+r},t.prototype.tryGoNextPageAutomatic=function(e){if(!this.isEndLoadingFromJson&&this.goNextPageAutomatic&&this.currentPage){var t=this.getQuestionByValueName(e);if(t&&(!t||t.visible&&t.supportGoNextPageAutomatic())&&(!t.hasErrors(!1)||t.supportGoNextPageError())){var n=this.getCurrentPageQuestions();if(!(n.indexOf(t)<0)){for(var o=0;o<n.length;o++)if(n[o].hasInput&&n[o].isEmpty())return;this.checkIsCurrentPageHasErrors(!1)||(this.isLastPage?!0===this.goNextPageAutomatic&&this.allowCompleteSurveyAutomatic&&(this.isShowPreviewBeforeComplete?this.showPreview():this.completeLastPage()):this.nextPage())}}}},t.prototype.getComment=function(e){var t=this.data[e+this.commentPrefix];return null==t&&(t=""),t},t.prototype.setComment=function(e,t,n){if(void 0===n&&(n=!1),t||(t=""),!this.isTwoValueEquals(t,this.getComment(e))){var o=e+this.commentPrefix;this.isValueEmpty(t)?this.deleteDataValueCore(this.valuesHash,o):this.setDataValueCore(this.valuesHash,o,t);var r=this.getQuestionsByValueName(e);if(r)for(var i=0;i<r.length;i++)r[i].updateCommentFromSurvey(t),this.checkQuestionErrorOnValueChanged(r[i]);"text"!==n&&this.tryGoNextPageAutomatic(e);var a=this.getQuestionByName(e);a&&this.onValueChanged.fire(this,{name:o,question:a,value:t})}},t.prototype.clearValue=function(e){this.setValue(e,null),this.setComment(e,null)},Object.defineProperty(t.prototype,"clearValueOnDisableItems",{get:function(){return this.getPropertyValue("clearValueOnDisableItems",!1)},set:function(e){this.setPropertyValue("clearValueOnDisableItems",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isClearValueOnHidden",{get:function(){return"onHidden"==this.clearInvisibleValues||this.isClearValueOnHiddenContainer},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isClearValueOnHiddenContainer",{get:function(){return"onHiddenContainer"==this.clearInvisibleValues&&!this.isShowingPreview&&!this.runningPages},enumerable:!1,configurable:!0}),t.prototype.questionVisibilityChanged=function(e,t){this.updateVisibleIndexes(),this.onVisibleChanged.fire(this,{question:e,name:e.name,visible:t})},t.prototype.pageVisibilityChanged=function(e,t){this.isLoadingFromJson||(t&&!this.currentPageValue&&(this.currentPageValue=this.currentPage),this.updateVisibleIndexes(),this.onPageVisibleChanged.fire(this,{page:e,visible:t}))},t.prototype.panelVisibilityChanged=function(e,t){this.updateVisibleIndexes(),this.onPanelVisibleChanged.fire(this,{panel:e,visible:t})},t.prototype.questionCreated=function(e){this.onQuestionCreated.fire(this,{question:e})},t.prototype.questionAdded=function(e,t,n,o){e.name||(e.name=this.generateNewName(this.getAllQuestions(!1,!0),"question")),e.page&&this.questionHashesAdded(e),this.updateVisibleIndexes(),this.onQuestionAdded.fire(this,{question:e,name:e.name,index:t,parentPanel:n,rootPanel:o})},t.prototype.questionRemoved=function(e){this.questionHashesRemoved(e,e.name,e.getValueName()),this.updateVisibleIndexes(),this.onQuestionRemoved.fire(this,{question:e,name:e.name}),this.updateLazyRenderingRowsOnRemovingElements()},t.prototype.questionRenamed=function(e,t,n){this.questionHashesRemoved(e,t,n),this.questionHashesAdded(e)},t.prototype.questionHashesClear=function(){this.questionHashes.names={},this.questionHashes.namesInsensitive={},this.questionHashes.valueNames={},this.questionHashes.valueNamesInsensitive={}},t.prototype.questionHashesPanelAdded=function(e){if(!this.isLoadingFromJson)for(var t=e.questions,n=0;n<t.length;n++)this.questionHashesAdded(t[n])},t.prototype.questionHashesAdded=function(e){this.questionHashAddedCore(this.questionHashes.names,e,e.name),this.questionHashAddedCore(this.questionHashes.namesInsensitive,e,e.name.toLowerCase()),this.questionHashAddedCore(this.questionHashes.valueNames,e,e.getValueName()),this.questionHashAddedCore(this.questionHashes.valueNamesInsensitive,e,e.getValueName().toLowerCase())},t.prototype.questionHashesRemoved=function(e,t,n){t&&(this.questionHashRemovedCore(this.questionHashes.names,e,t),this.questionHashRemovedCore(this.questionHashes.namesInsensitive,e,t.toLowerCase())),n&&(this.questionHashRemovedCore(this.questionHashes.valueNames,e,n),this.questionHashRemovedCore(this.questionHashes.valueNamesInsensitive,e,n.toLowerCase()))},t.prototype.questionHashAddedCore=function(e,t,n){var o;(o=e[n])?(o=e[n]).indexOf(t)<0&&o.push(t):e[n]=[t]},t.prototype.questionHashRemovedCore=function(e,t,n){var o=e[n];if(o){var r=o.indexOf(t);r>-1&&o.splice(r,1),0==o.length&&delete e[n]}},t.prototype.panelAdded=function(e,t,n,o){e.name||(e.name=this.generateNewName(this.getAllPanels(!1,!0),"panel")),this.questionHashesPanelAdded(e),this.updateVisibleIndexes(),this.onPanelAdded.fire(this,{panel:e,name:e.name,index:t,parentPanel:n,rootPanel:o})},t.prototype.panelRemoved=function(e){this.updateVisibleIndexes(),this.onPanelRemoved.fire(this,{panel:e,name:e.name}),this.updateLazyRenderingRowsOnRemovingElements()},t.prototype.validateQuestion=function(e){if(this.onValidateQuestion.isEmpty)return null;var t={name:e.name,question:e,value:e.value,error:null};return this.onValidateQuestion.fire(this,t),t.error?new ee(t.error,this):null},t.prototype.validatePanel=function(e){if(this.onValidatePanel.isEmpty)return null;var t={name:e.name,panel:e,error:null};return this.onValidatePanel.fire(this,t),t.error?new ee(t.error,this):null},t.prototype.processHtml=function(e){var t={html:e};return this.onProcessHtml.fire(this,t),this.processText(t.html,!0)},t.prototype.processText=function(e,t){return this.processTextEx(e,t,!1).text},t.prototype.processTextEx=function(e,t,n){var o={text:this.processTextCore(e,t,n),hasAllValuesOnLastRun:!0};return o.hasAllValuesOnLastRun=this.textPreProcessor.hasAllValuesOnLastRun,o},t.prototype.processTextCore=function(e,t,n){return void 0===n&&(n=!1),this.isDesignMode?e:this.textPreProcessor.process(e,t,n)},t.prototype.getSurveyMarkdownHtml=function(e,t,n){var o={element:e,text:t,name:n,html:null};return this.onTextMarkdown.fire(this,o),o.html},t.prototype.getCorrectedAnswerCount=function(){return this.getCorrectedAnswerCountCore(!0)},t.prototype.getQuizQuestionCount=function(){for(var e=this.getQuizQuestions(),t=0,n=0;n<e.length;n++)t+=e[n].quizQuestionCount;return t},t.prototype.getInCorrectedAnswerCount=function(){return this.getCorrectedAnswerCountCore(!1)},t.prototype.getCorrectedAnswerCountCore=function(e){for(var t=this.getQuizQuestions(),n=0,o={question:null,result:!1,correctAnswers:0,incorrectAnswers:0},r=0;r<t.length;r++){var i=t[r],a=i.quizQuestionCount;if(o.question=i,o.correctAnswers=i.correctAnswerCount,o.incorrectAnswers=a-o.correctAnswers,o.result=o.question.isAnswerCorrect(),this.onIsAnswerCorrect.fire(this,o),e){if(o.result||o.correctAnswers<a){var s=o.correctAnswers;0==s&&o.result&&(s=1),n+=s}}else(!o.result||o.incorrectAnswers<a)&&(n+=o.incorrectAnswers)}return n},t.prototype.getCorrectedAnswers=function(){return this.getCorrectedAnswerCount()},t.prototype.getInCorrectedAnswers=function(){return this.getInCorrectedAnswerCount()},Object.defineProperty(t.prototype,"showTimerPanel",{get:function(){return this.getPropertyValue("showTimerPanel")},set:function(e){this.setPropertyValue("showTimerPanel",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isTimerPanelShowingOnTop",{get:function(){return this.isTimerStarted&&"top"==this.showTimerPanel},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isTimerPanelShowingOnBottom",{get:function(){return this.isTimerStarted&&"bottom"==this.showTimerPanel},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showTimerPanelMode",{get:function(){return this.getPropertyValue("showTimerPanelMode")},set:function(e){this.setPropertyValue("showTimerPanelMode",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"timerInfoText",{get:function(){var e={text:this.getTimerInfoText()};this.onTimerPanelInfoText.fire(this,e);var t=new d(this,!0);return t.text=e.text,t.textOrHtml},enumerable:!1,configurable:!0}),t.prototype.getTimerInfoText=function(){var e=this.currentPage;if(!e)return"";var t=this.getDisplayTime(e.timeSpent),n=this.getDisplayTime(this.timeSpent),o=this.getPageMaxTimeToFinish(e),r=this.getDisplayTime(o),i=this.getDisplayTime(this.maxTimeToFinish);return"page"==this.showTimerPanelMode?this.getTimerInfoPageText(e,t,r):"survey"==this.showTimerPanelMode?this.getTimerInfoSurveyText(n,i):"all"==this.showTimerPanelMode?o<=0&&this.maxTimeToFinish<=0?this.getLocString("timerSpentAll").format(t,n):o>0&&this.maxTimeToFinish>0?this.getLocString("timerLimitAll").format(t,r,n,i):this.getTimerInfoPageText(e,t,r)+" "+this.getTimerInfoSurveyText(n,i):""},t.prototype.getTimerInfoPageText=function(e,t,n){return this.getPageMaxTimeToFinish(e)>0?this.getLocString("timerLimitPage").format(t,n):this.getLocString("timerSpentPage").format(t,n)},t.prototype.getTimerInfoSurveyText=function(e,t){return this.maxTimeToFinish>0?this.getLocString("timerLimitSurvey").format(e,t):this.getLocString("timerSpentSurvey").format(e,t)},t.prototype.getDisplayTime=function(e){var t=Math.floor(e/60),n=e%60,o="";return t>0&&(o+=t+" "+this.getLocString("timerMin")),o&&0==n?o:(o&&(o+=" "),o+n+" "+this.getLocString("timerSec"))},t.prototype.startTimer=function(){if(!this.isTimerStarted&&!this.isDesignMode){var e=this;this.timerFunc=function(){e.doTimer()},this.isTimerStarted=!0,Fn.instance.start(this.timerFunc)}},t.prototype.startTimerFromUI=function(){"none"!=this.showTimerPanel&&"running"===this.state&&this.startTimer()},t.prototype.stopTimer=function(){this.isTimerStarted&&(this.isTimerStarted=!1,Fn.instance.stop(this.timerFunc))},Object.defineProperty(t.prototype,"maxTimeToFinish",{get:function(){return this.getPropertyValue("maxTimeToFinish",0)},set:function(e){this.setPropertyValue("maxTimeToFinish",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxTimeToFinishPage",{get:function(){return this.getPropertyValue("maxTimeToFinishPage",0)},set:function(e){this.setPropertyValue("maxTimeToFinishPage",e)},enumerable:!1,configurable:!0}),t.prototype.getPageMaxTimeToFinish=function(e){return!e||e.maxTimeToFinish<0?0:e.maxTimeToFinish>0?e.maxTimeToFinish:this.maxTimeToFinishPage},t.prototype.doTimer=function(){var e=this.currentPage;if(e&&(e.timeSpent=e.timeSpent+1),this.timeSpent=this.timeSpent+1,this.onTimer.fire(this,{}),this.maxTimeToFinish>0&&this.maxTimeToFinish==this.timeSpent&&this.completeLastPage(),e){var t=this.getPageMaxTimeToFinish(e);t>0&&t==e.timeSpent&&(this.isLastPage?this.completeLastPage():this.nextPage())}},Object.defineProperty(t.prototype,"inSurvey",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getSurveyData=function(){return this},t.prototype.getSurvey=function(){return this},t.prototype.getTextProcessor=function(){return this},t.prototype.getObjects=function(e,t){var n=[];return Array.prototype.push.apply(n,this.getPagesByNames(e)),Array.prototype.push.apply(n,this.getQuestionsByNames(t)),n},t.prototype.setTriggerValue=function(e,t,n){if(e)if(n)this.setVariable(e,t);else{var o=this.getQuestionByName(e);if(o)o.value=t;else{var r=new te,i=r.getFirstName(e);if(i==e)this.setValue(e,t);else{if(!this.getQuestionByName(i))return;var a=this.getUnbindValue(this.getFilteredValues());r.setValue(a,e,t),this.setValue(i,a[i])}}}},t.prototype.copyTriggerValue=function(e,t){if(e&&t){var n=(new te).getValue(t,this.getFilteredValues());this.setTriggerValue(e,n,!1)}},t.prototype.focusQuestion=function(e){var t=this.getQuestionByName(e,!0);return!!(t&&t.isVisible&&t.page)&&(this.isFocusingQuestion=!0,this.currentPage=t.page,t.focus(),this.isFocusingQuestion=!1,!0)},t.prototype.getElementWrapperComponentName=function(e,n){return"logo-image"===n?"sv-logo-image":t.TemplateRendererComponentName},t.prototype.getRowWrapperComponentName=function(e){return t.TemplateRendererComponentName},t.prototype.getElementWrapperComponentData=function(e,t){return e},t.prototype.getRowWrapperComponentData=function(e){return e},t.prototype.getItemValueWrapperComponentName=function(e,n){return t.TemplateRendererComponentName},t.prototype.getItemValueWrapperComponentData=function(e,t){return e},t.prototype.getMatrixCellTemplateData=function(e){return e.question},t.prototype.searchText=function(e){e&&(e=e.toLowerCase());for(var t=[],n=0;n<this.pages.length;n++)this.pages[n].searchText(e,t);return t},t.prototype.getSkeletonComponentName=function(e){return this.skeletonComponentName},t.prototype.dispose=function(){if(this.currentPage=null,e.prototype.dispose.call(this),this.editingObj=null,this.pages){for(var t=0;t<this.pages.length;t++)this.pages[t].dispose();this.pages.splice(0,this.pages.length)}},t.TemplateRendererComponentName="sv-template-renderer",t.stylesManager=null,t.platform="unknown",t}(ht);R.addClass("survey",[{name:"locale",choices:function(){return u.getLocales(!0)},onGetValue:function(e){return e.locale==u.defaultLocale?null:e.locale}},{name:"title",serializationProperty:"locTitle",dependsOn:"locale"},{name:"description:text",serializationProperty:"locDescription",dependsOn:"locale"},{name:"logo",serializationProperty:"locLogo"},{name:"logoWidth",default:"300px",minValue:0},{name:"logoHeight",default:"200px",minValue:0},{name:"logoFit",default:"contain",choices:["none","contain","cover","fill"]},{name:"logoPosition",default:"left",choices:["none","left","right","top","bottom"]},{name:"focusFirstQuestionAutomatic:boolean",default:!0},{name:"focusOnFirstError:boolean",default:!0},{name:"completedHtml:html",serializationProperty:"locCompletedHtml"},{name:"completedBeforeHtml:html",serializationProperty:"locCompletedBeforeHtml"},{name:"completedHtmlOnCondition:htmlconditions",className:"htmlconditionitem"},{name:"loadingHtml:html",serializationProperty:"locLoadingHtml"},{name:"pages:surveypages",className:"page"},{name:"questions",alternativeName:"elements",baseClassName:"question",visible:!1,isLightSerializable:!1,onGetValue:function(e){return null},onSetValue:function(e,t,n){e.pages.splice(0,e.pages.length);var o=e.addNewPage("");n.toObject({questions:t},o)}},{name:"triggers:triggers",baseClassName:"surveytrigger",classNamePart:"trigger"},{name:"calculatedValues:calculatedvalues",className:"calculatedvalue"},{name:"surveyId",visible:!1},{name:"surveyPostId",visible:!1},{name:"surveyShowDataSaving:boolean",visible:!1},"cookieName","sendResultOnPageNext:boolean",{name:"showNavigationButtons",default:"bottom",choices:["none","top","bottom","both"]},{name:"showPrevButton:boolean",default:!0},{name:"showTitle:boolean",default:!0},{name:"showPageTitles:boolean",default:!0},{name:"showCompletedPage:boolean",default:!0},"navigateToUrl",{name:"navigateToUrlOnCondition:urlconditions",className:"urlconditionitem"},{name:"questionsOrder",default:"initial",choices:["initial","random"]},"showPageNumbers:boolean",{name:"showQuestionNumbers",default:"on",choices:["on","onPage","off"]},{name:"questionTitleLocation",default:"top",choices:["top","bottom","left"]},{name:"questionDescriptionLocation",default:"underTitle",choices:["underInput","underTitle"]},{name:"questionErrorLocation",default:"top",choices:["top","bottom"]},{name:"showProgressBar",default:"off",choices:["off","top","bottom","both"]},{name:"progressBarType",default:"pages",choices:["pages","questions","requiredQuestions","correctQuestions","buttons"]},{name:"mode",default:"edit",choices:["edit","display"]},{name:"storeOthersAsComment:boolean",default:!0},{name:"maxTextLength:number",default:0,minValue:0},{name:"maxOthersLength:number",default:0,minValue:0},"goNextPageAutomatic:boolean",{name:"clearInvisibleValues",default:"onComplete",choices:["none","onComplete","onHidden","onHiddenContainer"]},{name:"checkErrorsMode",default:"onNextPage",choices:["onNextPage","onValueChanged","onValueChanging","onComplete"]},{name:"textUpdateMode",default:"onBlur",choices:["onBlur","onTyping"]},{name:"autoGrowComment:boolean",default:!1},{name:"startSurveyText",serializationProperty:"locStartSurveyText"},{name:"pagePrevText",serializationProperty:"locPagePrevText"},{name:"pageNextText",serializationProperty:"locPageNextText"},{name:"completeText",serializationProperty:"locCompleteText"},{name:"previewText",serializationProperty:"locPreviewText"},{name:"editText",serializationProperty:"locEditText"},{name:"requiredText",default:"*"},{name:"questionStartIndex",dependsOn:["showQuestionNumbers"],visibleIf:function(e){return!e||"off"!==e.showQuestionNumbers}},{name:"questionTitlePattern",default:"numTitleRequire",dependsOn:["questionStartIndex","requiredText"],choices:function(e){return e?e.getQuestionTitlePatternOptions():[]}},{name:"questionTitleTemplate",visible:!1,isSerializable:!1,serializationProperty:"locQuestionTitleTemplate"},{name:"firstPageIsStarted:boolean",default:!1},{name:"isSinglePage:boolean",default:!1,visible:!1,isSerializable:!1},{name:"questionsOnPageMode",default:"standard",choices:["singlePage","standard","questionPerPage"]},{name:"showPreviewBeforeComplete",default:"noPreview",choices:["noPreview","showAllQuestions","showAnsweredQuestions"]},{name:"maxTimeToFinish:number",default:0,minValue:0},{name:"maxTimeToFinishPage:number",default:0,minValue:0},{name:"showTimerPanel",default:"none",choices:["none","top","bottom"]},{name:"showTimerPanelMode",default:"all",choices:["all","page","survey"]}]);var Hn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Qn=function(e){function t(t){var n=e.call(this,t)||this;n.otherItemValue=new Fe("other"),n.dependedQuestions=[],n.noneItemValue=new Fe("none"),n.isSettingDefaultValue=!1,n.isSettingComment=!1,n.isRunningChoices=!1,n.isFirstLoadChoicesFromUrl=!0,n.isUpdatingChoicesDependedQuestions=!1;var o=n.createLocalizableString("noneText",n,!0);o.onGetTextCallback=function(e){return e||u.getString("noneItemText")},n.noneItemValue.locOwner=n,n.noneItemValue.setLocText(o),n.createItemValues("choices"),n.registerFunctionOnPropertyValueChanged("choices",(function(){n.filterItems()||n.onVisibleChoicesChanged()})),n.registerFunctionOnPropertiesValueChanged(["choicesFromQuestion","choicesFromQuestionMode","hasNone"],(function(){n.onVisibleChoicesChanged()})),n.registerFunctionOnPropertyValueChanged("hideIfChoicesEmpty",(function(){n.updateVisibilityBasedOnChoices()})),n.createNewArray("visibleChoices"),n.setNewRestfulProperty();var r=n.createLocalizableString("otherText",n,!0);return n.createLocalizableString("otherErrorText",n,!0),n.otherItemValue.locOwner=n,n.otherItemValue.setLocText(r),r.onGetTextCallback=function(e){return e||u.getString("otherItemText")},n.choicesByUrl.createItemValue=function(e){return n.createItemValue(e)},n.choicesByUrl.beforeSendRequestCallback=function(){n.onBeforeSendRequest()},n.choicesByUrl.getResultCallback=function(e){n.onLoadChoicesFromUrl(e)},n.choicesByUrl.updateResultCallback=function(e,t){return n.survey?n.survey.updateChoicesFromServer(n,e,t):e},n.createLocalizableString("otherPlaceHolder",n),n}return Hn(t,e),t.prototype.getType=function(){return"selectbase"},t.prototype.dispose=function(){e.prototype.dispose.call(this);for(var t=0;t<this.dependedQuestions.length;t++)this.dependedQuestions[t].choicesFromQuestion="";this.removeFromDependedQuestion(this.getQuestionWithChoices())},t.prototype.getItemValueType=function(){return"itemvalue"},t.prototype.createItemValue=function(e){return R.createClass(this.getItemValueType(),e)},t.prototype.supportGoNextPageError=function(){return!this.isOtherSelected||!!this.comment},t.prototype.isLayoutTypeSupported=function(e){return!0},t.prototype.localeChanged=function(){e.prototype.localeChanged.call(this),"none"!==this.choicesOrder&&this.updateVisibleChoices()},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.choicesFromUrl&&(Fe.locStrsChanged(this.choicesFromUrl),Fe.locStrsChanged(this.visibleChoices))},Object.defineProperty(t.prototype,"otherItem",{get:function(){return this.otherItemValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isOtherSelected",{get:function(){return this.hasOther&&this.getHasOther(this.renderedValue)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasNone",{get:function(){return this.getPropertyValue("hasNone",!1)},set:function(e){this.setPropertyValue("hasNone",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"noneItem",{get:function(){return this.noneItemValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"noneText",{get:function(){return this.getLocalizableStringText("noneText",u.getString("noneItemText"))},set:function(e){this.setLocalizableStringText("noneText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locNoneText",{get:function(){return this.getLocalizableString("noneText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choicesVisibleIf",{get:function(){return this.getPropertyValue("choicesVisibleIf","")},set:function(e){this.setPropertyValue("choicesVisibleIf",e),this.filterItems()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choicesEnableIf",{get:function(){return this.getPropertyValue("choicesEnableIf","")},set:function(e){this.setPropertyValue("choicesEnableIf",e),this.filterItems()},enumerable:!1,configurable:!0}),t.prototype.runCondition=function(t,n){e.prototype.runCondition.call(this,t,n),this.runItemsEnableCondition(t,n),this.runItemsCondition(t,n)},t.prototype.isTextValue=function(){return!0},t.prototype.setDefaultValue=function(){this.isSettingDefaultValue=!this.isValueEmpty(this.defaultValue)&&this.hasUnknownValue(this.defaultValue),this.prevCommentValue=void 0,e.prototype.setDefaultValue.call(this),this.isSettingDefaultValue=!1},t.prototype.getIsMultipleValue=function(){return!1},t.prototype.convertDefaultValue=function(e){if(null==e||null==e)return e;if(this.getIsMultipleValue()){if(!Array.isArray(e))return[e]}else if(Array.isArray(e)&&e.length>0)return e[0];return e},t.prototype.filterItems=function(){if(this.isLoadingFromJson||!this.data||this.areInvisibleElementsShowing)return!1;var e=this.getDataFilteredValues(),t=this.getDataFilteredProperties();return this.runItemsEnableCondition(e,t),this.runItemsCondition(e,t)},t.prototype.runItemsCondition=function(e,t){this.setConditionalChoicesRunner();var n=this.runConditionsForItems(e,t);return this.filteredChoicesValue&&this.filteredChoicesValue.length===this.activeChoices.length&&(this.filteredChoicesValue=void 0),n&&(this.onVisibleChoicesChanged(),this.clearIncorrectValues()),n},t.prototype.runItemsEnableCondition=function(e,t){var n=this;this.setConditionalEnableChoicesRunner(),Fe.runEnabledConditionsForItems(this.activeChoices,this.conditionChoicesEnableIfRunner,e,t,(function(e){return n.onEnableItemCallBack(e)}))&&this.clearDisabledValues(),this.onAfterRunItemsEnableCondition()},t.prototype.onAfterRunItemsEnableCondition=function(){},t.prototype.onEnableItemCallBack=function(e){return!0},t.prototype.setConditionalChoicesRunner=function(){this.choicesVisibleIf?(this.conditionChoicesVisibleIfRunner||(this.conditionChoicesVisibleIfRunner=new Te(this.choicesVisibleIf)),this.conditionChoicesVisibleIfRunner.expression=this.choicesVisibleIf):this.conditionChoicesVisibleIfRunner=null},t.prototype.setConditionalEnableChoicesRunner=function(){this.choicesEnableIf?(this.conditionChoicesEnableIfRunner||(this.conditionChoicesEnableIfRunner=new Te(this.choicesEnableIf)),this.conditionChoicesEnableIfRunner.expression=this.choicesEnableIf):this.conditionChoicesEnableIfRunner=null},t.prototype.runConditionsForItems=function(e,t){return this.filteredChoicesValue=[],Fe.runConditionsForItems(this.activeChoices,this.getFilteredChoices(),this.areInvisibleElementsShowing?null:this.conditionChoicesVisibleIfRunner,e,t,!this.survey||!this.survey.areInvisibleElementsShowing)},t.prototype.getHasOther=function(e){return e===this.otherItem.value},Object.defineProperty(t.prototype,"validatedValue",{get:function(){return this.rendredValueToDataCore(this.value)},enumerable:!1,configurable:!0}),t.prototype.createRestful=function(){return new Pt},t.prototype.setNewRestfulProperty=function(){this.setPropertyValue("choicesByUrl",this.createRestful()),this.choicesByUrl.owner=this,this.choicesByUrl.loadingOwner=this},t.prototype.getQuestionComment=function(){return this.commentValue?this.commentValue:this.hasComment||this.getStoreOthersAsComment()?e.prototype.getQuestionComment.call(this):this.commentValue},t.prototype.setQuestionComment=function(t){this.hasComment||this.getStoreOthersAsComment()?e.prototype.setQuestionComment.call(this,t):this.isSettingComment||t==this.commentValue||(this.isSettingComment=!0,this.commentValue=t,this.isOtherSelected&&!this.isRenderedValueSetting&&(this.value=this.rendredValueToData(this.renderedValue)),this.isSettingComment=!1)},t.prototype.clearValue=function(){e.prototype.clearValue.call(this),this.prevCommentValue=void 0},t.prototype.updateCommentFromSurvey=function(t){e.prototype.updateCommentFromSurvey.call(this,t),this.prevCommentValue=void 0},Object.defineProperty(t.prototype,"renderedValue",{get:function(){return this.getPropertyValue("renderedValue",null)},set:function(e){this.setPropertyValue("renderedValue",e);e=this.rendredValueToData(e);this.isTwoValueEquals(e,this.value)||(this.value=e)},enumerable:!1,configurable:!0}),t.prototype.setQuestionValue=function(t,n,o){if(void 0===n&&(n=!0),void 0===o&&(o=!0),!this.isLoadingFromJson&&!this.isTwoValueEquals(this.value,t)&&(e.prototype.setQuestionValue.call(this,t,n),this.setPropertyValue("renderedValue",this.rendredValueFromData(t)),!this.hasComment&&o)){var r=this.isOtherSelected;if(r&&this.prevCommentValue){var i=this.prevCommentValue;this.prevCommentValue=void 0,this.comment=i}!r&&this.comment&&(this.getStoreOthersAsComment()&&(this.prevCommentValue=this.comment),this.comment="")}},t.prototype.setNewValue=function(t){t=this.valueFromData(t),(this.choicesByUrl.isRunning||this.choicesByUrl.isWaitingForParameters)&&this.isValueEmpty(t)||(this.cachedValueForUrlRequests=t),e.prototype.setNewValue.call(this,t)},t.prototype.valueFromData=function(t){var n=Fe.getItemByValue(this.activeChoices,t);return n?n.value:e.prototype.valueFromData.call(this,t)},t.prototype.rendredValueFromData=function(e){return this.getStoreOthersAsComment()?e:this.renderedValueFromDataCore(e)},t.prototype.rendredValueToData=function(e){return this.getStoreOthersAsComment()?e:this.rendredValueToDataCore(e)},t.prototype.renderedValueFromDataCore=function(e){return this.hasUnknownValue(e,!0,!1)?(this.comment=e,this.otherItem.value):this.valueFromData(e)},t.prototype.rendredValueToDataCore=function(e){return e==this.otherItem.value&&this.getQuestionComment()&&(e=this.getQuestionComment()),e},t.prototype.hasUnknownValue=function(e,t,n,o){if(void 0===t&&(t=!1),void 0===n&&(n=!0),void 0===o&&(o=!1),!o&&this.isValueEmpty(e))return!1;if(t&&e==this.otherItem.value)return!1;if(this.hasNone&&e==this.noneItem.value)return!1;var r=n?this.getFilteredChoices():this.activeChoices;return null==Fe.getItemByValue(r,e)},t.prototype.isValueDisabled=function(e){var t=Fe.getItemByValue(this.getFilteredChoices(),e);return!!t&&!t.isEnabled},Object.defineProperty(t.prototype,"choicesByUrl",{get:function(){return this.getPropertyValue("choicesByUrl")},set:function(e){e&&(this.setNewRestfulProperty(),this.choicesByUrl.fromJSON(e.toJSON()))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choices",{get:function(){return this.getPropertyValue("choices")},set:function(e){this.setPropertyValue("choices",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choicesFromQuestion",{get:function(){return this.getPropertyValue("choicesFromQuestion")},set:function(e){var t=this.getQuestionWithChoices();t&&t.removeFromDependedQuestion(this),this.setPropertyValue("choicesFromQuestion",e)},enumerable:!1,configurable:!0}),t.prototype.addIntoDependedQuestion=function(e){!e||e.dependedQuestions.indexOf(this)>-1||e.dependedQuestions.push(this)},t.prototype.removeFromDependedQuestion=function(e){if(e){var t=e.dependedQuestions.indexOf(this);t>-1&&e.dependedQuestions.splice(t,1)}},Object.defineProperty(t.prototype,"choicesFromQuestionMode",{get:function(){return this.getPropertyValue("choicesFromQuestionMode")},set:function(e){this.setPropertyValue("choicesFromQuestionMode",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hideIfChoicesEmpty",{get:function(){return this.getPropertyValue("hideIfChoicesEmpty",!1)},set:function(e){this.setPropertyValue("hideIfChoicesEmpty",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"keepIncorrectValues",{get:function(){return this.getPropertyValue("keepIncorrectValues",!1)},set:function(e){this.setPropertyValue("keepIncorrectValues",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"storeOthersAsComment",{get:function(){return this.getPropertyValue("storeOthersAsComment")},set:function(e){this.setPropertyValue("storeOthersAsComment",e)},enumerable:!1,configurable:!0}),t.prototype.hasOtherChanged=function(){this.onVisibleChoicesChanged()},Object.defineProperty(t.prototype,"choicesOrder",{get:function(){return this.getPropertyValue("choicesOrder")},set:function(e){(e=e.toLowerCase())!=this.choicesOrder&&(this.setPropertyValue("choicesOrder",e),this.onVisibleChoicesChanged())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"otherText",{get:function(){return this.getLocalizableStringText("otherText",u.getString("otherItemText"))},set:function(e){this.setLocalizableStringText("otherText",e),this.onVisibleChoicesChanged()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locOtherText",{get:function(){return this.getLocalizableString("otherText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"otherPlaceHolder",{get:function(){return this.getLocalizableStringText("otherPlaceHolder")},set:function(e){this.setLocalizableStringText("otherPlaceHolder",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locOtherPlaceHolder",{get:function(){return this.getLocalizableString("otherPlaceHolder")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"otherErrorText",{get:function(){return this.getLocalizableStringText("otherErrorText",u.getString("otherRequiredError"))},set:function(e){this.setLocalizableStringText("otherErrorText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locOtherErrorText",{get:function(){return this.getLocalizableString("otherErrorText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visibleChoices",{get:function(){return this.getPropertyValue("visibleChoices")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"enabledChoices",{get:function(){for(var e=[],t=this.visibleChoices,n=0;n<t.length;n++)t[n].isEnabled&&e.push(t[n]);return e},enumerable:!1,configurable:!0}),t.prototype.updateVisibleChoices=function(){if(!this.isLoadingFromJson){var e=new Array,t=this.calcVisibleChoices();t||(t=[]);for(var n=0;n<t.length;n++)e.push(t[n]);this.setPropertyValue("visibleChoices",e)}},t.prototype.calcVisibleChoices=function(){if(this.canUseFilteredChoices())return this.getFilteredChoices();var e=this.sortVisibleChoices(this.getFilteredChoices().slice());return this.addToVisibleChoices(e,this.isAddDefaultItems),e},t.prototype.canUseFilteredChoices=function(){return!this.isAddDefaultItems&&!this.hasNone&&!this.hasOther&&"none"==this.choicesOrder},t.prototype.setCanShowOptionItemCallback=function(e){this.canShowOptionItemCallback=e,e&&this.onVisibleChoicesChanged()},t.prototype.addToVisibleChoices=function(e,t){t&&(this.newItemValue||(this.newItemValue=new Fe("newitem")),this.canShowOptionItem(this.newItemValue)&&e.push(this.newItemValue)),this.supportOther()&&(t&&this.canShowOptionItem(this.otherItem)||this.hasOther)&&e.push(this.otherItem),this.supportNone()&&(t&&this.canShowOptionItem(this.noneItem)||this.hasNone)&&e.push(this.noneItem)},t.prototype.canShowOptionItem=function(e){return!this.canShowOptionItemCallback||this.canShowOptionItemCallback(e)},t.prototype.isItemInList=function(e){return e===this.otherItem?this.hasOther:e===this.noneItem?this.hasNone:e!==this.newItemValue},Object.defineProperty(t.prototype,"isAddDefaultItems",{get:function(){return a.supportCreatorV2&&this.isDesignMode&&!this.parentQuestion},enumerable:!1,configurable:!0}),t.prototype.getPlainData=function(t){var n=this;void 0===t&&(t={includeEmpty:!0,includeQuestionTypes:!1});var o=e.prototype.getPlainData.call(this,t);if(o){var r=Array.isArray(this.value)?this.value:[this.value];o.isNode=!0,o.data=(o.data||[]).concat(r.map((function(e,o){var r=Fe.getItemByValue(n.visibleChoices,e),i={name:o,title:"Choice",value:e,displayValue:n.getChoicesDisplayValue(n.visibleChoices,e),getString:function(e){return"object"==typeof e?JSON.stringify(e):e},isNode:!1};return r&&(t.calculations||[]).forEach((function(e){i[e.propertyName]=r[e.propertyName]})),n.isOtherSelected&&n.otherItemValue===r&&(i.isOther=!0,i.displayValue=n.comment),i})))}return o},t.prototype.getDisplayValueCore=function(e,t){return this.getChoicesDisplayValue(this.visibleChoices,t)},t.prototype.getDisplayValueEmpty=function(){return Fe.getTextOrHtmlByValue(this.visibleChoices,void 0)},t.prototype.getChoicesDisplayValue=function(e,t){if(t==this.otherItemValue.value)return this.comment?this.comment:this.locOtherText.textOrHtml;var n=Fe.getTextOrHtmlByValue(e,t);return""==n&&t?t:n},t.prototype.getFilteredChoices=function(){return this.filteredChoicesValue?this.filteredChoicesValue:this.activeChoices},Object.defineProperty(t.prototype,"activeChoices",{get:function(){var e=this.getQuestionWithChoices();return e?(this.addIntoDependedQuestion(e),this.getChoicesFromQuestion(e)):this.choicesFromUrl?this.choicesFromUrl:this.getChoices()},enumerable:!1,configurable:!0}),t.prototype.getQuestionWithChoices=function(){if(!this.choicesFromQuestion||!this.survey)return null;var e=this.survey.getQuestionByName(this.choicesFromQuestion);return e&&e.visibleChoices&&e!==this?e:null},t.prototype.getChoicesFromQuestion=function(e){for(var t=[],n="selected"==this.choicesFromQuestionMode||"unselected"!=this.choicesFromQuestionMode&&void 0,o=e.visibleChoices,r=0;r<o.length;r++)if(!this.isBuiltInChoice(o[r],e))if(void 0!==n){var i=e.isItemSelected(o[r]);(i&&n||!i&&!n)&&t.push(o[r])}else t.push(o[r]);return t},Object.defineProperty(t.prototype,"hasActiveChoices",{get:function(){var e=this.visibleChoices;e&&0!=e.length||(this.onVisibleChoicesChanged(),e=this.visibleChoices);for(var t=0;t<e.length;t++)if(!this.isBuiltInChoice(e[t],this))return!0;return!1},enumerable:!1,configurable:!0}),t.prototype.isBuiltInChoice=function(e,t){return e===t.noneItem||e===t.otherItem||e===t.newItemValue},t.prototype.getChoices=function(){return this.choices},t.prototype.supportComment=function(){return!0},t.prototype.supportOther=function(){return this.isSupportProperty("hasOther")},t.prototype.supportNone=function(){return this.isSupportProperty("hasNone")},t.prototype.isSupportProperty=function(e){return!this.isDesignMode||R.findProperty(this.getType(),e).visible},t.prototype.onCheckForErrors=function(t,n){e.prototype.onCheckForErrors.call(this,t,n),this.hasOther&&this.isOtherSelected&&!this.comment&&t.push(new J(this.otherErrorText,this))},t.prototype.setSurveyImpl=function(t){e.prototype.setSurveyImpl.call(this,t),this.runChoicesByUrl(),this.isAddDefaultItems&&this.updateVisibleChoices()},t.prototype.setSurveyCore=function(t){e.prototype.setSurveyCore.call(this,t),t&&this.choicesFromQuestion&&this.onVisibleChoicesChanged()},t.prototype.getStoreOthersAsComment=function(){return!this.isSettingDefaultValue&&(!0===this.storeOthersAsComment||"default"==this.storeOthersAsComment&&(null==this.survey||this.survey.storeOthersAsComment)||!this.choicesByUrl.isEmpty&&!this.choicesFromUrl)},t.prototype.onSurveyLoad=function(){this.runChoicesByUrl(),this.onVisibleChoicesChanged(),e.prototype.onSurveyLoad.call(this)},t.prototype.onAnyValueChanged=function(t){e.prototype.onAnyValueChanged.call(this,t),t!=this.getValueName()&&this.runChoicesByUrl(),t&&t==this.choicesFromQuestion&&this.onVisibleChoicesChanged()},t.prototype.updateValueFromSurvey=function(t){var n="";this.hasOther&&!this.isRunningChoices&&!this.choicesByUrl.isRunning&&this.getStoreOthersAsComment()&&(this.hasUnknownValue(t)&&!this.getHasOther(t)?(n=this.getCommentFromValue(t),t=this.setOtherValueIntoValue(t)):n=this.data.getComment(this.getValueName())),e.prototype.updateValueFromSurvey.call(this,t),n&&this.setNewComment(n)},t.prototype.getCommentFromValue=function(e){return e},t.prototype.setOtherValueIntoValue=function(e){return this.otherItem.value},t.prototype.runChoicesByUrl=function(){if(this.choicesByUrl&&!this.isLoadingFromJson&&!this.isRunningChoices){var e=this.surveyImpl?this.surveyImpl.getTextProcessor():this.textProcessor;e||(e=this.survey),e&&(this.isReadyValue=this.isChoicesLoaded||this.choicesByUrl.isEmpty,this.isRunningChoices=!0,this.choicesByUrl.run(e),this.isRunningChoices=!1)}},t.prototype.onBeforeSendRequest=function(){!0!==a.disableOnGettingChoicesFromWeb||this.isReadOnly||(this.enableOnLoadingChoices=!0,this.readOnly=!0)},t.prototype.onLoadChoicesFromUrl=function(e){if(this.enableOnLoadingChoices&&(this.readOnly=!1),!this.isReadOnly){var t=[];this.choicesByUrl&&this.choicesByUrl.error&&t.push(this.choicesByUrl.error),this.errors=t}var n=null,o=!0;this.isFirstLoadChoicesFromUrl&&!this.cachedValueForUrlRequests&&this.defaultValue&&(this.cachedValueForUrlRequests=this.defaultValue,o=!1),this.isValueEmpty(this.cachedValueForUrlRequests)&&(this.cachedValueForUrlRequests=this.value),this.isFirstLoadChoicesFromUrl=!1;var r=this.createCachedValueForUrlRequests(this.cachedValueForUrlRequests,o);if(e&&(e.length>0||this.choicesByUrl.allowEmptyResponse)&&(n=new Array,Fe.setData(n,e)),n)for(var i=0;i<n.length;i++)n[i].locOwner=this;if(this.choicesFromUrl=n,this.filterItems(),this.onVisibleChoicesChanged(),n){var a=this.updateCachedValueForUrlRequests(r,n);if(a&&!this.isReadOnly){var s=!this.isTwoValueEquals(this.value,a.value);try{this.isValueEmpty(a.value)||(this.allowNotifyValueChanged=!1,this.setQuestionValue(void 0,!0,!1)),this.allowNotifyValueChanged=s,s?this.value=a.value:this.setQuestionValue(a.value)}finally{this.allowNotifyValueChanged=!0}}}this.choicesLoaded()},t.prototype.createCachedValueForUrlRequests=function(e,t){if(this.isValueEmpty(e))return null;if(Array.isArray(e)){for(var n=[],o=0;o<e.length;o++)n.push(this.createCachedValueForUrlRequests(e[o],!0));return n}return{value:e,isExists:!t||!this.hasUnknownValue(e)}},t.prototype.updateCachedValueForUrlRequests=function(e,t){if(this.isValueEmpty(e))return null;if(Array.isArray(e)){for(var n=[],o=0;o<e.length;o++){var r=this.updateCachedValueForUrlRequests(e[o],t);if(r&&!this.isValueEmpty(r.value)){var i=r.value;(a=Fe.getItemByValue(t,r.value))&&(i=a.value),n.push(i)}}return{value:n}}var a,s=e.isExists&&this.hasUnknownValue(e.value)?null:e.value;return(a=Fe.getItemByValue(t,s))&&(s=a.value),{value:s}},t.prototype.updateChoicesDependedQuestions=function(){if(!this.isUpdatingChoicesDependedQuestions){this.isUpdatingChoicesDependedQuestions=!0;for(var e=0;e<this.dependedQuestions.length;e++)this.dependedQuestions[e].onVisibleChoicesChanged(),this.dependedQuestions[e].updateChoicesDependedQuestions();this.isUpdatingChoicesDependedQuestions=!1}},t.prototype.onSurveyValueChanged=function(t){e.prototype.onSurveyValueChanged.call(this,t),this.isLoadingFromJson||this.updateChoicesDependedQuestions()},t.prototype.onVisibleChoicesChanged=function(){this.isLoadingFromJson||(this.updateVisibleChoices(),this.updateVisibilityBasedOnChoices(),this.visibleChoicesChangedCallback&&this.visibleChoicesChangedCallback(),this.updateChoicesDependedQuestions())},t.prototype.updateVisibilityBasedOnChoices=function(){if(this.hideIfChoicesEmpty){var e=this.getFilteredChoices();this.visible=!e||e.length>0}},t.prototype.sortVisibleChoices=function(e){var t=this.choicesOrder.toLowerCase();return"asc"==t?this.sortArray(e,1):"desc"==t?this.sortArray(e,-1):"random"==t?this.randomizeArray(e):e},t.prototype.sortArray=function(e,t){return e.sort((function(e,n){return e.calculatedText<n.calculatedText?-1*t:e.calculatedText>n.calculatedText?1*t:0}))},t.prototype.randomizeArray=function(e){return s.randomizeArray(e)},t.prototype.clearIncorrectValues=function(){this.keepIncorrectValues||this.isEmpty()||this.survey&&this.survey.questionCountByValueName(this.getValueName())>1||(!this.choicesByUrl||this.choicesByUrl.isEmpty||this.choicesFromUrl&&0!=this.choicesFromUrl.length)&&(this.clearIncorrectValuesCallback?this.clearIncorrectValuesCallback():this.clearIncorrectValuesCore())},t.prototype.clearValueIfInvisible=function(){e.prototype.clearValueIfInvisible.call(this),this.clearIncorrectValues()},t.prototype.isItemSelected=function(e){return e.value===this.value},t.prototype.clearDisabledValues=function(){this.survey&&this.survey.clearValueOnDisableItems&&this.clearDisabledValuesCore()},t.prototype.clearIncorrectValuesCore=function(){var e=this.value;this.canClearValueAnUnknow(e)&&this.clearValue()},t.prototype.canClearValueAnUnknow=function(e){return!(!this.getStoreOthersAsComment()&&this.isOtherSelected)&&this.hasUnknownValue(e,!0,!0,!0)},t.prototype.clearDisabledValuesCore=function(){this.isValueDisabled(this.value)&&this.clearValue()},t.prototype.clearUnusedValues=function(){e.prototype.clearUnusedValues.call(this),this.isOtherSelected||this.hasComment||(this.comment="")},t.prototype.getColumnClass=function(){return(new ze).append(this.cssClasses.column).append("sv-q-column-"+this.colCount,this.hasColumns).toString()},t.prototype.getItemIndex=function(e){return this.visibleChoices.indexOf(e)},t.prototype.getItemClass=function(e){var t={item:e},n=this.getItemClassCore(e,t);return t.css=n,this.survey&&this.survey.updateChoiceItemCss(this,t),t.css},t.prototype.getItemClassCore=function(e,t){var n=(new ze).append(this.cssClasses.item).append(this.cssClasses.itemInline,!this.hasColumns&&0===this.colCount).append("sv-q-col-"+this.colCount,!this.hasColumns&&0!==this.colCount),o=this.isReadOnly||!e.isEnabled,r=this.isItemSelected(e)||this.isOtherSelected&&this.otherItem.value===e.value,i=!(o||r||this.survey&&this.survey.isDesignMode),a=e===this.noneItem;return t.isDisabled=o,t.isChecked=r,t.isNone=a,n.append(this.cssClasses.itemDisabled,o).append(this.cssClasses.itemChecked,r).append(this.cssClasses.itemHover,i).append(this.cssClasses.itemNone,a).toString()},t.prototype.getLabelClass=function(e){return(new ze).append(this.cssClasses.label).append(this.cssClasses.labelChecked,this.isItemSelected(e)).toString()},t.prototype.getControlLabelClass=function(e){return(new ze).append(this.cssClasses.controlLabel).append(this.cssClasses.controlLabelChecked,this.isItemSelected(e)).toString()},Object.defineProperty(t.prototype,"columns",{get:function(){var e=[],t=this.colCount;if(this.hasColumns&&this.visibleChoices.length>0)if("column"==a.showItemsInOrder)for(var n=0,o=this.visibleChoices.length%t,r=0;r<t;r++){for(var i=[],s=n;s<n+Math.floor(this.visibleChoices.length/t);s++)i.push(this.visibleChoices[s]);o>0&&(o--,i.push(this.visibleChoices[s]),s++),n=s,e.push(i)}else for(r=0;r<t;r++){for(i=[],s=r;s<this.visibleChoices.length;s+=t)i.push(this.visibleChoices[s]);e.push(i)}return e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasColumns",{get:function(){return this.colCount>1},enumerable:!1,configurable:!0}),t.prototype.choicesLoaded=function(){this.isChoicesLoaded=!0;var e=this.isReadyValue;this.isReadyValue=!0,this.onReadyChanged&&this.onReadyChanged.fire(this,{question:this,isReady:!0,oldIsReady:e}),this.survey&&this.survey.loadedChoicesFromServer(this)},t.prototype.getItemValueWrapperComponentName=function(e){var t=this.survey;return t?t.getItemValueWrapperComponentName(e,this):zn.TemplateRendererComponentName},t.prototype.getItemValueWrapperComponentData=function(e){var t=this.survey;return t?t.getItemValueWrapperComponentData(e,this):e},t}(Bt),$n=function(e){function t(t){return e.call(this,t)||this}return Hn(t,e),Object.defineProperty(t.prototype,"colCount",{get:function(){return this.getPropertyValue("colCount",this.isFlowLayout?0:1)},set:function(e){e<0||e>5||this.isFlowLayout||(this.setPropertyValue("colCount",e),this.fireCallback(this.colCountChangedCallback))},enumerable:!1,configurable:!0}),t.prototype.onParentChanged=function(){e.prototype.onParentChanged.call(this),this.isFlowLayout&&this.setPropertyValue("colCount",null)},t.prototype.onParentQuestionChanged=function(){this.onVisibleChoicesChanged()},t.prototype.getSearchableItemValueKeys=function(e){e.push("choices")},t.prototype.getItemEnabled=function(e){return!this.isInputReadOnly&&e.isEnabled},t.prototype.isOtherItem=function(e){return this.hasOther&&e.value==this.otherItem.value},t}(Qn);R.addClass("selectbase",[{name:"hasComment:switch",layout:"row"},{name:"commentText",dependsOn:"hasComment",visibleIf:function(e){return e.hasComment},serializationProperty:"locCommentText",layout:"row"},"choicesFromQuestion:question_selectbase",{name:"choices:itemvalue[]",baseValue:function(){return u.getString("choices_Item")},dependsOn:"choicesFromQuestion",visibleIf:function(e){return!e.choicesFromQuestion}},{name:"choicesFromQuestionMode",default:"all",choices:["all","selected","unselected"],dependsOn:"choicesFromQuestion",visibleIf:function(e){return!!e.choicesFromQuestion}},{name:"choicesOrder",default:"none",choices:["none","asc","desc","random"],dependsOn:"choicesFromQuestion",visibleIf:function(e){return!e.choicesFromQuestion}},{name:"choicesByUrl:restfull",className:"ChoicesRestful",onGetValue:function(e){return e.choicesByUrl.getData()},onSetValue:function(e,t){e.choicesByUrl.setData(t)}},"hideIfChoicesEmpty:boolean",{name:"choicesVisibleIf:condition",dependsOn:"choicesFromQuestion",visibleIf:function(e){return!e.choicesFromQuestion}},{name:"choicesEnableIf:condition",dependsOn:"choicesFromQuestion",visibleIf:function(e){return!e.choicesFromQuestion}},"hasOther:boolean","hasNone:boolean",{name:"otherPlaceHolder",serializationProperty:"locOtherPlaceHolder",dependsOn:"hasOther",visibleIf:function(e){return e.hasOther}},{name:"noneText",serializationProperty:"locNoneText",dependsOn:"hasNone",visibleIf:function(e){return e.hasNone}},{name:"otherText",serializationProperty:"locOtherText",dependsOn:"hasOther",visibleIf:function(e){return e.hasOther}},{name:"otherErrorText",serializationProperty:"locOtherErrorText",dependsOn:"hasOther",visibleIf:function(e){return e.hasOther}},{name:"storeOthersAsComment",default:"default",choices:["default",!0,!1],visible:!1}],null,"question"),R.addClass("checkboxbase",[{name:"colCount:number",default:1,choices:[0,1,2,3,4,5],layout:"row"}],null,"selectbase");var Un=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Wn=function(e){function t(t){var n=e.call(this,t)||this;n.minMaxChoices=[],n.createLocalizableString("optionsCaption",n);var o=n;return n.registerFunctionOnPropertiesValueChanged(["choicesMin","choicesMax","choicesStep"],(function(){o.onVisibleChoicesChanged()})),n}return Un(t,e),Object.defineProperty(t.prototype,"showOptionsCaption",{get:function(){return this.getPropertyValue("showOptionsCaption")},set:function(e){this.setPropertyValue("showOptionsCaption",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"optionsCaption",{get:function(){return this.getLocalizableStringText("optionsCaption",u.getString("optionsCaption"))},set:function(e){this.setLocalizableStringText("optionsCaption",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locOptionsCaption",{get:function(){return this.getLocalizableString("optionsCaption")},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"dropdown"},Object.defineProperty(t.prototype,"selectedItem",{get:function(){return this.isEmpty()?null:Fe.getItemByValue(this.visibleChoices,this.value)},enumerable:!1,configurable:!0}),t.prototype.supportGoNextPageAutomatic=function(){return!0},t.prototype.getChoices=function(){var t=e.prototype.getChoices.call(this);if(this.choicesMax<=this.choicesMin)return t;for(var n=[],o=0;o<t.length;o++)n.push(t[o]);if(0===this.minMaxChoices.length||this.minMaxChoices.length!==(this.choicesMax-this.choicesMin)/this.choicesStep+1){this.minMaxChoices=[];for(o=this.choicesMin;o<=this.choicesMax;o+=this.choicesStep)this.minMaxChoices.push(new Fe(o))}return n=n.concat(this.minMaxChoices)},Object.defineProperty(t.prototype,"choicesMin",{get:function(){return this.getPropertyValue("choicesMin")},set:function(e){this.setPropertyValue("choicesMin",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choicesMax",{get:function(){return this.getPropertyValue("choicesMax")},set:function(e){this.setPropertyValue("choicesMax",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choicesStep",{get:function(){return this.getPropertyValue("choicesStep")},set:function(e){e<1&&(e=1),this.setPropertyValue("choicesStep",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"autoComplete",{get:function(){return this.getPropertyValue("autoComplete","")},set:function(e){this.setPropertyValue("autoComplete",e)},enumerable:!1,configurable:!0}),t.prototype.getControlClass=function(){return(new ze).append(this.cssClasses.control).append(this.cssClasses.onError,this.errors.length>0).append(this.cssClasses.controlDisabled,this.isReadOnly).toString()},t}(Qn);R.addClass("dropdown",[{name:"optionsCaption",serializationProperty:"locOptionsCaption"},{name:"showOptionsCaption:boolean",default:!0},{name:"choicesMin:number",default:0},{name:"choicesMax:number",default:0},{name:"choicesStep:number",default:1,minValue:1},{name:"autoComplete",dataList:["name","honorific-prefix","given-name","additional-name","family-name","honorific-suffix","nickname","organization-title","username","new-password","current-password","organization","street-address","address-line1","address-line2","address-line3","address-level4","address-level3","address-level2","address-level1","country","country-name","postal-code","cc-name","cc-given-name","cc-additional-name","cc-family-name","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc","cc-type","transaction-currency","transaction-amount","language","bday","bday-day","bday-month","bday-year","sex","url","photo","tel","tel-country-code","tel-national","tel-area-code","tel-local","tel-local-prefix","tel-local-suffix","tel-extension","email","impp"]}],(function(){return new Wn("")}),"selectbase"),Gt.Instance.registerQuestion("dropdown",(function(e){var t=new Wn(e);return t.choices=Gt.DefaultChoices,t}));var Gn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Jn=function(e){function t(t,n,o,r){var i=e.call(this)||this;return i.fullName=n,i.item=t,i.data=o,i.value=r,i.cellClick=function(e){i.value=e.value},i.registerFunctionOnPropertyValueChanged("value",(function(){i.data&&i.data.onMatrixRowChanged(i)})),i}return Gn(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return this.item.value},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"text",{get:function(){return this.item.text},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locText",{get:function(){return this.item.locText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.getPropertyValue("value")},set:function(e){e=this.data.getCorrectedRowValue(e),this.setPropertyValue("value",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rowClasses",{get:function(){var e=this.data.cssClasses,t=!!this.data.getErrorByType("requiredinallrowserror");return(new ze).append(e.row).append(e.rowError,t&&this.isValueEmpty(this.value)).toString()},enumerable:!1,configurable:!0}),t}(L),Kn=function(){function e(e){this.cellsOwner=e,this.values={}}return Object.defineProperty(e.prototype,"isEmpty",{get:function(){return 0==Object.keys(this.values).length},enumerable:!1,configurable:!0}),e.prototype.setCellText=function(e,t,n){if(e=this.getCellRowColumnValue(e,this.rows),t=this.getCellRowColumnValue(t,this.columns),e&&t)if(n)this.values[e]||(this.values[e]={}),this.values[e][t]||(this.values[e][t]=this.createString()),this.values[e][t].text=n;else if(this.values[e]&&this.values[e][t]){var o=this.values[e][t];o.text="",o.isEmpty&&(delete this.values[e][t],0==Object.keys(this.values[e]).length&&delete this.values[e])}},e.prototype.setDefaultCellText=function(e,t){this.setCellText(a.matrixDefaultRowName,e,t)},e.prototype.getCellLocText=function(e,t){return e=this.getCellRowColumnValue(e,this.rows),t=this.getCellRowColumnValue(t,this.columns),e&&t&&this.values[e]&&this.values[e][t]?this.values[e][t]:null},e.prototype.getDefaultCellLocText=function(e,t){return this.getCellLocText(a.matrixDefaultRowName,e)},e.prototype.getCellDisplayLocText=function(e,t){var n=this.getCellLocText(e,t);return n&&!n.isEmpty||(n=this.getCellLocText(a.matrixDefaultRowName,t))&&!n.isEmpty?n:("number"==typeof t&&(t=t>=0&&t<this.columns.length?this.columns[t]:null),t&&t.locText?t.locText:null)},e.prototype.getCellText=function(e,t){var n=this.getCellLocText(e,t);return n?n.calculatedText:null},e.prototype.getDefaultCellText=function(e){var t=this.getCellLocText(a.matrixDefaultRowName,e);return t?t.calculatedText:null},e.prototype.getCellDisplayText=function(e,t){var n=this.getCellDisplayLocText(e,t);return n?n.calculatedText:null},Object.defineProperty(e.prototype,"rows",{get:function(){return this.cellsOwner?this.cellsOwner.getRows():[]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"columns",{get:function(){return this.cellsOwner?this.cellsOwner.getColumns():[]},enumerable:!1,configurable:!0}),e.prototype.getCellRowColumnValue=function(e,t){if(null==e)return null;if("number"==typeof e){if(e<0||e>=t.length)return null;e=t[e].value}return e.value?e.value:e},e.prototype.getJson=function(){if(this.isEmpty)return null;var e={};for(var t in this.values){var n={},o=this.values[t];for(var r in o)n[r]=o[r].getJson();e[t]=n}return e},e.prototype.setJson=function(e){if(this.values={},e)for(var t in e)if("pos"!=t){var n=e[t];for(var o in this.values[t]={},n)if("pos"!=o){var r=this.createString();r.setJson(n[o]),this.values[t][o]=r}}},e.prototype.createString=function(){return new d(this.cellsOwner,!0)},e}(),Xn=function(e){function t(t){var n=e.call(this,t)||this;n.isRowChanging=!1,n.emptyLocalizableString=new d(n),n.cellsValue=new Kn(n);var o=n;return n.registerFunctionOnPropertyValueChanged("columns",(function(){o.onColumnsChanged()})),n.registerFunctionOnPropertyValueChanged("rows",(function(){o.filterItems()||o.onRowsChanged()})),n.registerFunctionOnPropertyValueChanged("hideIfRowsEmpty",(function(){o.updateVisibilityBasedOnRows()})),n}return Gn(t,e),t.prototype.getType=function(){return"matrix"},Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAllRowRequired",{get:function(){return this.getPropertyValue("isAllRowRequired",!1)},set:function(e){this.setPropertyValue("isAllRowRequired",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasRows",{get:function(){return this.rows.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rowsOrder",{get:function(){return this.getPropertyValue("rowsOrder")},set:function(e){(e=e.toLowerCase())!=this.rowsOrder&&(this.setPropertyValue("rowsOrder",e),this.onRowsChanged())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hideIfRowsEmpty",{get:function(){return this.getPropertyValue("hideIfRowsEmpty",!1)},set:function(e){this.setPropertyValue("hideIfRowsEmpty",e)},enumerable:!1,configurable:!0}),t.prototype.getRows=function(){return this.rows},t.prototype.getColumns=function(){return this.visibleColumns},t.prototype.addColumn=function(e,t){var n=new Fe(e,t);return this.columns.push(n),n},t.prototype.getItemClass=function(e,t){var n=e.value==t.value,o=this.isReadOnly,r=!n&&!o;return(new ze).append(this.cssClasses.cell,this.hasCellText).append(this.hasCellText?this.cssClasses.cellText:this.cssClasses.label).append(this.hasCellText?this.cssClasses.cellTextSelected:this.cssClasses.itemChecked,n).append(this.hasCellText?this.cssClasses.cellTextDisabled:this.cssClasses.itemDisabled,o).append(this.cssClasses.itemHover,r&&!this.hasCellText).toString()},t.prototype.getQuizQuestionCount=function(){for(var e=0,t=0;t<this.rows.length;t++)this.isValueEmpty(this.correctAnswer[this.rows[t].value])||e++;return e},t.prototype.getCorrectAnswerCount=function(){for(var e=0,t=this.value,n=0;n<this.rows.length;n++){var o=this.rows[n].value;!this.isValueEmpty(t[o])&&this.isTwoValueEquals(this.correctAnswer[o],t[o])&&e++}return e},t.prototype.getVisibleRows=function(){var e=new Array,t=this.value;t||(t={});for(var n=this.filteredRows?this.filteredRows:this.rows,o=0;o<n.length;o++){var r=n[o];this.isValueEmpty(r.value)||e.push(this.createMatrixRow(r,this.id+"_"+r.value.toString().replace(/\s/g,"_"),t[r.value]))}return 0!=e.length||this.filteredRows||e.push(this.createMatrixRow(new Fe(null),this.name.replace(/\s/g,"_"),t)),this.generatedVisibleRows=e,e},t.prototype.sortVisibleRows=function(e){return"random"===this.rowsOrder.toLowerCase()?s.randomizeArray(e):e},t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),this.rows=this.sortVisibleRows(this.rows),this.updateVisibilityBasedOnRows()},t.prototype.processRowsOnSet=function(e){return this.sortVisibleRows(e)},Object.defineProperty(t.prototype,"visibleRows",{get:function(){return this.getVisibleRows()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cells",{get:function(){return this.cellsValue},set:function(e){this.cells.setJson(e&&e.getJson?e.getJson():null)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasCellText",{get:function(){return!this.cells.isEmpty},enumerable:!1,configurable:!0}),t.prototype.setCellText=function(e,t,n){this.cells.setCellText(e,t,n)},t.prototype.getCellText=function(e,t){return this.cells.getCellText(e,t)},t.prototype.setDefaultCellText=function(e,t){this.cells.setDefaultCellText(e,t)},t.prototype.getDefaultCellText=function(e){return this.cells.getDefaultCellText(e)},t.prototype.getCellDisplayText=function(e,t){return this.cells.getCellDisplayText(e,t)},t.prototype.getCellDisplayLocText=function(e,t){var n=this.cells.getCellDisplayLocText(e,t);return n||this.emptyLocalizableString},t.prototype.supportGoNextPageAutomatic=function(){return this.hasValuesInAllRows()},t.prototype.onCheckForErrors=function(t,n){e.prototype.onCheckForErrors.call(this,t,n),(!n||this.errors.length>0)&&this.hasErrorInRows()&&t.push(new X(null,this))},t.prototype.hasErrorInRows=function(){return!!this.isAllRowRequired&&!this.hasValuesInAllRows()},t.prototype.hasValuesInAllRows=function(){var e=this.generatedVisibleRows;if(e||(e=this.visibleRows),!e)return!0;for(var t=0;t<e.length;t++)if(this.isValueEmpty(e[t].value))return!1;return!0},t.prototype.getIsAnswered=function(){return e.prototype.getIsAnswered.call(this)&&this.hasValuesInAllRows()},t.prototype.createMatrixRow=function(e,t,n){var o=new Jn(e,t,this,n);return this.onMatrixRowCreated(o),o},t.prototype.onMatrixRowCreated=function(e){},t.prototype.setQuestionValue=function(t,n){if(void 0===n&&(n=!0),e.prototype.setQuestionValue.call(this,t,this.isRowChanging||n),this.generatedVisibleRows&&0!=this.generatedVisibleRows.length){this.isRowChanging=!0;var o=this.value;if(o||(o={}),0==this.rows.length)this.generatedVisibleRows[0].value=o;else for(var r=0;r<this.generatedVisibleRows.length;r++){var i=o[this.generatedVisibleRows[r].name];this.isValueEmpty(i)&&(i=null),this.generatedVisibleRows[r].value=i}this.updateIsAnswered(),this.isRowChanging=!1}},t.prototype.getDisplayValueCore=function(e,t){var n={};for(var o in t){var r=e?Fe.getTextOrHtmlByValue(this.rows,o):o;r||(r=o);var i=Fe.getTextOrHtmlByValue(this.columns,t[o]);i||(i=t[o]),n[r]=i}return n},t.prototype.getPlainData=function(t){var n=this;void 0===t&&(t={includeEmpty:!0});var o=e.prototype.getPlainData.call(this,t);if(o){var r=this.createValueCopy();o.isNode=!0,o.data=Object.keys(r||{}).map((function(e){var o=n.rows.filter((function(t){return t.value===e}))[0],i={name:e,title:o?o.text:"row",value:r[e],displayValue:Fe.getTextOrHtmlByValue(n.visibleColumns,r[e]),getString:function(e){return"object"==typeof e?JSON.stringify(e):e},isNode:!1},a=Fe.getItemByValue(n.visibleColumns,r[e]);return a&&(t.calculations||[]).forEach((function(e){i[e.propertyName]=a[e.propertyName]})),i}))}return o},t.prototype.addConditionObjectsByContext=function(e,t){for(var n=0;n<this.rows.length;n++){var o=this.rows[n];o.value&&e.push({name:this.getValueName()+"."+o.value,text:this.processedTitle+"."+o.calculatedText,question:this})}},t.prototype.getConditionJson=function(t,n){if(void 0===t&&(t=null),void 0===n&&(n=null),!n)return e.prototype.getConditionJson.call(this);var o=new Wn(n);o.choices=this.columns;var r=(new E).toJsonObject(o);return r.type=o.getType(),r},t.prototype.clearValueIfInvisible=function(){e.prototype.clearValueIfInvisible.call(this),this.hasRows&&this.clearInvisibleValuesInRows()},t.prototype.getFirstInputElementId=function(){var t=this.generatedVisibleRows;return t||(t=this.visibleRows),t.length>0&&this.visibleColumns.length>0?this.inputId+"_"+t[0].name+"_0":e.prototype.getFirstInputElementId.call(this)},t.prototype.onRowsChanged=function(){this.updateVisibilityBasedOnRows(),e.prototype.onRowsChanged.call(this)},t.prototype.updateVisibilityBasedOnRows=function(){this.hideIfRowsEmpty&&(this.visible=this.rows.length>0&&(!this.filteredRows||this.filteredRows.length>0))},t.prototype.onMatrixRowChanged=function(e){if(!this.isRowChanging){if(this.isRowChanging=!0,this.hasRows){var t=this.value;t||(t={}),t[e.name]=e.value,this.setNewValue(t)}else this.setNewValue(e.value);this.isRowChanging=!1}},t.prototype.getCorrectedRowValue=function(e){for(var t=0;t<this.columns.length;t++)if(e===this.columns[t].value)return e;for(t=0;t<this.columns.length;t++)if(this.isTwoValueEquals(e,this.columns[t].value))return this.columns[t].value;return e},t.prototype.getSearchableItemValueKeys=function(e){e.push("columns"),e.push("rows")},Object.defineProperty(t.prototype,"SurveyModel",{get:function(){return this.survey},enumerable:!1,configurable:!0}),t.prototype.getColumnHeaderWrapperComponentName=function(e){return this.SurveyModel.getElementWrapperComponentName({column:e},"column-header")},t.prototype.getColumnHeaderWrapperComponentData=function(e){return this.SurveyModel.getElementWrapperComponentData({column:e},"column-header")},t.prototype.getRowHeaderWrapperComponentName=function(e){return this.SurveyModel.getElementWrapperComponentName({row:e},"row-header")},t.prototype.getRowHeaderWrapperComponentData=function(e){return this.SurveyModel.getElementWrapperComponentData({row:e},"row-header")},t}(Ht);R.addClass("matrix",[{name:"columns:itemvalue[]",baseValue:function(){return u.getString("matrix_column")}},{name:"rows:itemvalue[]",baseValue:function(){return u.getString("matrix_row")}},{name:"cells:cells",serializationProperty:"cells"},{name:"rowsOrder",default:"initial",choices:["initial","random"]},"isAllRowRequired:boolean","hideIfRowsEmpty:boolean"],(function(){return new Xn("")}),"matrixbase"),Gt.Instance.registerQuestion("matrix",(function(e){var t=new Xn(e);return t.rows=Gt.DefaultRows,t.columns=Gt.DefaultColums,t}));var Zn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Yn=function(e){function t(t){var n=e.call(this,t)||this;return n.createLocalizableString("placeHolder",n),n}return Zn(t,e),t.prototype.isTextValue=function(){return!0},Object.defineProperty(t.prototype,"maxLength",{get:function(){return this.getPropertyValue("maxLength")},set:function(e){this.setPropertyValue("maxLength",e)},enumerable:!1,configurable:!0}),t.prototype.getMaxLength=function(){return s.getMaxLength(this.maxLength,this.survey?this.survey.maxTextLength:-1)},Object.defineProperty(t.prototype,"placeHolder",{get:function(){return this.getLocalizableStringText("placeHolder")},set:function(e){this.setLocalizableStringText("placeHolder",e),this.calcRenderedPlaceHolder()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceHolder",{get:function(){return this.getLocalizableString("placeHolder")},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"textbase"},t.prototype.isEmpty=function(){return e.prototype.isEmpty.call(this)||""===this.value},Object.defineProperty(t.prototype,"textUpdateMode",{get:function(){return this.getPropertyValue("textUpdateMode")},set:function(e){this.setPropertyValue("textUpdateMode",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isSurveyInputTextUpdate",{get:function(){return"default"==this.textUpdateMode?!!this.survey&&this.survey.isUpdateValueTextOnTyping:"onTyping"==this.textUpdateMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedPlaceHolder",{get:function(){return this.getPropertyValue("renderedPlaceHolder")},enumerable:!1,configurable:!0}),t.prototype.setRenderedPlaceHolder=function(e){this.setPropertyValue("renderedPlaceHolder",e)},t.prototype.onReadOnlyChanged=function(){e.prototype.onReadOnlyChanged.call(this),this.calcRenderedPlaceHolder()},t.prototype.onSurveyLoad=function(){this.calcRenderedPlaceHolder(),e.prototype.onSurveyLoad.call(this)},t.prototype.localeChanged=function(){e.prototype.localeChanged.call(this),this.calcRenderedPlaceHolder()},t.prototype.calcRenderedPlaceHolder=function(){var e=this.placeHolder;e&&!this.hasPlaceHolder()&&(e=void 0),this.setRenderedPlaceHolder(e)},t.prototype.hasPlaceHolder=function(){return!this.isReadOnly},t.prototype.getControlClass=function(){return(new ze).append(this.cssClasses.root).append(this.cssClasses.onError,this.errors.length>0).append(this.cssClasses.controlDisabled,this.isReadOnly).toString()},t}(Bt);R.addClass("textbase",[],(function(){return new Yn("")}),"question");var eo=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),to=function(e){function t(t){var n=e.call(this,t)||this;return n.createLocalizableString("minErrorText",n,!0),n.createLocalizableString("maxErrorText",n,!0),n.locDataListValue=new h(n),n.locDataListValue.onValueChanged=function(e,t){n.propertyValueChanged("dataList",e,t)},n.registerFunctionOnPropertiesValueChanged(["min","max","inputType","minValueExpression","maxValueExpression"],(function(){n.setRenderedMinMax()})),n.registerFunctionOnPropertiesValueChanged(["inputType","size"],(function(){n.updateInputSize(),n.calcRenderedPlaceHolder()})),n}return eo(t,e),t.prototype.isTextValue=function(){return["text","number","password"].indexOf(this.inputType)>-1},t.prototype.getType=function(){return"text"},t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.setRenderedMinMax(),this.updateInputSize()},Object.defineProperty(t.prototype,"inputType",{get:function(){return this.getPropertyValue("inputType")},set:function(e){"datetime_local"==(e=e.toLowerCase())&&(e="datetime-local"),this.setPropertyValue("inputType",e.toLowerCase()),this.isLoadingFromJson||(this.min=void 0,this.max=void 0,this.step=void 0)},enumerable:!1,configurable:!0}),t.prototype.runCondition=function(t,n){e.prototype.runCondition.call(this,t,n),(this.minValueExpression||this.maxValueExpression)&&this.setRenderedMinMax(t,n)},t.prototype.getValidators=function(){var t=e.prototype.getValidators.call(this);return"email"!==this.inputType||this.validators.some((function(e){return"emailvalidator"===e.getType()}))||t.push(new je),t},t.prototype.isLayoutTypeSupported=function(e){return!0},Object.defineProperty(t.prototype,"size",{get:function(){return this.getPropertyValue("size")},set:function(e){this.setPropertyValue("size",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isTextInput",{get:function(){return["text","search","tel","url","email","password"].indexOf(this.inputType)>-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputSize",{get:function(){return this.getPropertyValue("inputSize",0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputWidth",{get:function(){return this.getPropertyValue("inputWidth")},enumerable:!1,configurable:!0}),t.prototype.updateInputSize=function(){var e=this.isTextInput&&this.size>0?this.size:0;this.isTextInput&&e<1&&this.parent&&this.parent.itemSize&&(e=this.parent.itemSize),this.setPropertyValue("inputSize",e),this.setPropertyValue("inputWidth",e>0?"auto":"")},Object.defineProperty(t.prototype,"autoComplete",{get:function(){return this.getPropertyValue("autoComplete","")},set:function(e){this.setPropertyValue("autoComplete",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return this.getPropertyValue("min")},set:function(e){this.isValueExpression(e)?this.minValueExpression=e.substr(1):this.setPropertyValue("min",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return this.getPropertyValue("max")},set:function(e){this.isValueExpression(e)?this.maxValueExpression=e.substr(1):this.setPropertyValue("max",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minValueExpression",{get:function(){return this.getPropertyValue("minValueExpression","")},set:function(e){this.setPropertyValue("minValueExpression",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxValueExpression",{get:function(){return this.getPropertyValue("maxValueExpression","")},set:function(e){this.setPropertyValue("maxValueExpression",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedMin",{get:function(){return this.getPropertyValue("renderedMin")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedMax",{get:function(){return this.getPropertyValue("renderedMax")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minErrorText",{get:function(){return this.getLocalizableStringText("minErrorText",u.getString("minError"))},set:function(e){this.setLocalizableStringText("minErrorText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locMinErrorText",{get:function(){return this.getLocalizableString("minErrorText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxErrorText",{get:function(){return this.getLocalizableStringText("maxErrorText",u.getString("maxError"))},set:function(e){this.setLocalizableStringText("maxErrorText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locMaxErrorText",{get:function(){return this.getLocalizableString("maxErrorText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isMinMaxType",{get:function(){return no.indexOf(this.inputType)>-1},enumerable:!1,configurable:!0}),t.prototype.onCheckForErrors=function(t,n){e.prototype.onCheckForErrors.call(this,t,n),n||this.canSetValueToSurvey()||(this.isValueLessMin&&t.push(new ee(this.getMinMaxErrorText(this.minErrorText,this.getCalculatedMinMax(this.renderedMin)),this)),this.isValueGreaterMax&&t.push(new ee(this.getMinMaxErrorText(this.maxErrorText,this.getCalculatedMinMax(this.renderedMax)),this)))},t.prototype.canSetValueToSurvey=function(){return!this.isMinMaxType||!this.isValueLessMin&&!this.isValueGreaterMax},t.prototype.getMinMaxErrorText=function(e,t){return t?e.replace("{0}",t.toString()):e},Object.defineProperty(t.prototype,"isValueLessMin",{get:function(){return!this.isValueEmpty(this.renderedMin)&&this.getCalculatedMinMax(this.value)<this.getCalculatedMinMax(this.renderedMin)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isValueGreaterMax",{get:function(){return!this.isValueEmpty(this.renderedMax)&&this.getCalculatedMinMax(this.value)>this.getCalculatedMinMax(this.renderedMax)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDateInputType",{get:function(){return"date"===this.inputType||"datetime-local"===this.inputType},enumerable:!1,configurable:!0}),t.prototype.getCalculatedMinMax=function(e){return this.isValueEmpty(e)?e:this.isDateInputType?new Date(e):e},t.prototype.setRenderedMinMax=function(e,t){var n=this;void 0===e&&(e=null),void 0===t&&(t=null),this.setValueAndRunExpression(this.minValueExpression,this.min,(function(e){!e&&n.isDateInputType&&a.minDate&&(e=a.minDate),n.setPropertyValue("renderedMin",e)}),e,t),this.setValueAndRunExpression(this.maxValueExpression,this.max,(function(e){!e&&n.isDateInputType&&(e=a.maxDate?a.maxDate:"2999-12-31"),n.setPropertyValue("renderedMax",e)}),e,t)},Object.defineProperty(t.prototype,"step",{get:function(){return this.getPropertyValue("step")},set:function(e){this.setPropertyValue("step",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedStep",{get:function(){return this.isValueEmpty(this.step)?"any":this.step},enumerable:!1,configurable:!0}),t.prototype.supportGoNextPageAutomatic=function(){return["date","datetime","datetime-local"].indexOf(this.inputType)<0},t.prototype.supportGoNextPageError=function(){return["date","datetime","datetime-local"].indexOf(this.inputType)<0},Object.defineProperty(t.prototype,"dataList",{get:function(){return this.locDataList.value},set:function(e){this.locDataList.value=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locDataList",{get:function(){return this.locDataListValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dataListId",{get:function(){return this.locDataList.hasValue()?this.id+"_datalist":""},enumerable:!1,configurable:!0}),t.prototype.canRunValidators=function(e){return this.errors.length>0||!e||this.supportGoNextPageError()},t.prototype.setNewValue=function(t){t=this.correctValueType(t),e.prototype.setNewValue.call(this,t)},t.prototype.correctValueType=function(e){return e&&("number"==this.inputType||"range"==this.inputType)?s.isNumber(e)?parseFloat(e):"":e},t.prototype.hasPlaceHolder=function(){return!this.isReadOnly&&"range"!==this.inputType},Object.defineProperty(t.prototype,"inputStyle",{get:function(){var e={};return this.inputWidth&&(e.width=this.inputWidth),e},enumerable:!1,configurable:!0}),t}(Yn),no=["number","range","date","datetime-local","month","time","week"];R.addClass("text",[{name:"inputType",default:"text",choices:["color","date","datetime","datetime-local","email","month","number","password","range","tel","text","time","url","week"]},{name:"size:number",minValue:0,dependsOn:"inputType",visibleIf:function(e){return!!e&&e.isTextInput}},{name:"textUpdateMode",default:"default",choices:["default","onBlur","onTyping"],dependsOn:"inputType",visibleIf:function(e){return!!e&&e.isTextInput}},{name:"autoComplete",dataList:["name","honorific-prefix","given-name","additional-name","family-name","honorific-suffix","nickname","organization-title","username","new-password","current-password","organization","street-address","address-line1","address-line2","address-line3","address-level4","address-level3","address-level2","address-level1","country","country-name","postal-code","cc-name","cc-given-name","cc-additional-name","cc-family-name","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc","cc-type","transaction-currency","transaction-amount","language","bday","bday-day","bday-month","bday-year","sex","url","photo","tel","tel-country-code","tel-national","tel-area-code","tel-local","tel-local-prefix","tel-local-suffix","tel-extension","email","impp"]},{name:"min",dependsOn:"inputType",visibleIf:function(e){return!!e&&e.isMinMaxType},onPropertyEditorUpdate:function(e,t){t.inputType=e.inputType}},{name:"max",dependsOn:"inputType",visibleIf:function(e){return!!e&&e.isMinMaxType},onPropertyEditorUpdate:function(e,t){t.inputType=e.inputType}},{name:"minValueExpression:expression",category:"logic",dependsOn:"inputType",visibleIf:function(e){return!!e&&e.isMinMaxType}},{name:"maxValueExpression:expression",category:"logic",dependsOn:"inputType",visibleIf:function(e){return!!e&&e.isMinMaxType}},{name:"minErrorText",serializationProperty:"locMinErrorText",dependsOn:"inputType",visibleIf:function(e){return!!e&&e.isMinMaxType}},{name:"maxErrorText",serializationProperty:"locMaxErrorText",dependsOn:"inputType",visibleIf:function(e){return!!e&&e.isMinMaxType}},{name:"step:number",dependsOn:"inputType",visibleIf:function(e){return!!e&&"number"===e.inputType}},{name:"maxLength:number",default:-1,dependsOn:"inputType",visibleIf:function(e){return!!e&&e.isTextInput}},{name:"placeHolder",serializationProperty:"locPlaceHolder",dependsOn:"inputType",visibleIf:function(e){return!!e&&e.isTextInput}},{name:"dataList:string[]",serializationProperty:"locDataList",dependsOn:"inputType",visibleIf:function(e){return!!e&&"text"===e.inputType}}],(function(){return new to("")}),"textbase"),Gt.Instance.registerQuestion("text",(function(e){return new to(e)}));var oo=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ro=function(e){function t(t,n){void 0===t&&(t=null),void 0===n&&(n=null);var o=e.call(this)||this;return o.editorValue=o.createEditor(t),o.editor.questionTitleTemplateCallback=function(){return""},o.editor.titleLocation="left",n&&(o.title=n),o}return oo(t,e),t.prototype.getType=function(){return"multipletextitem"},Object.defineProperty(t.prototype,"id",{get:function(){return this.editor.id},enumerable:!1,configurable:!0}),t.prototype.getOriginalObj=function(){return this.editor},Object.defineProperty(t.prototype,"name",{get:function(){return this.editor.name},set:function(e){this.editor.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"question",{get:function(){return this.data},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"editor",{get:function(){return this.editorValue},enumerable:!1,configurable:!0}),t.prototype.createEditor=function(e){return new to(e)},t.prototype.addUsedLocales=function(t){e.prototype.addUsedLocales.call(this,t),this.editor.addUsedLocales(t)},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.editor.locStrsChanged()},t.prototype.setData=function(e){this.data=e,e&&(this.editor.defaultValue=e.getItemDefaultValue(this.name),this.editor.setSurveyImpl(this),this.editor.parent=e)},Object.defineProperty(t.prototype,"isRequired",{get:function(){return this.editor.isRequired},set:function(e){this.editor.isRequired=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputType",{get:function(){return this.editor.inputType},set:function(e){this.editor.inputType=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.editor.title},set:function(e){this.editor.title=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTitle",{get:function(){return this.editor.locTitle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fullTitle",{get:function(){return this.editor.fullTitle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxLength",{get:function(){return this.editor.maxLength},set:function(e){this.editor.maxLength=e},enumerable:!1,configurable:!0}),t.prototype.getMaxLength=function(){var e=this.getSurvey();return s.getMaxLength(this.maxLength,e?e.maxTextLength:-1)},Object.defineProperty(t.prototype,"placeHolder",{get:function(){return this.editor.placeHolder},set:function(e){this.editor.placeHolder=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceHolder",{get:function(){return this.editor.locPlaceHolder},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredErrorText",{get:function(){return this.editor.requiredErrorText},set:function(e){this.editor.requiredErrorText=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locRequiredErrorText",{get:function(){return this.editor.locRequiredErrorText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this.editor.size},set:function(e){this.editor.size=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"validators",{get:function(){return this.editor.validators},set:function(e){this.editor.validators=e},enumerable:!1,configurable:!0}),t.prototype.getValidators=function(){return this.validators},Object.defineProperty(t.prototype,"value",{get:function(){return this.data?this.data.getMultipleTextValue(this.name):null},set:function(e){null!=this.data&&this.data.setMultipleTextValue(this.name,e)},enumerable:!1,configurable:!0}),t.prototype.isEmpty=function(){return this.editor.isEmpty()},t.prototype.onValueChanged=function(e){this.valueChangedCallback&&this.valueChangedCallback(e)},t.prototype.getSurveyData=function(){return this},t.prototype.getSurvey=function(){return this.data?this.data.getSurvey():null},t.prototype.getTextProcessor=function(){return this.data?this.data.getTextProcessor():null},t.prototype.getValue=function(e){return this.data?this.data.getMultipleTextValue(e):null},t.prototype.setValue=function(e,t){this.data&&this.data.setMultipleTextValue(e,t)},t.prototype.getVariable=function(e){},t.prototype.setVariable=function(e,t){},t.prototype.getComment=function(e){return null},t.prototype.setComment=function(e,t){},t.prototype.getAllValues=function(){return this.data?this.data.getAllValues():this.value},t.prototype.getFilteredValues=function(){return this.getAllValues()},t.prototype.getFilteredProperties=function(){return{survey:this.getSurvey()}},t.prototype.getValidatorTitle=function(){return this.title},Object.defineProperty(t.prototype,"validatedValue",{get:function(){return this.value},set:function(e){this.value=e},enumerable:!1,configurable:!0}),t.prototype.getDataFilteredValues=function(){return this.getFilteredValues()},t.prototype.getDataFilteredProperties=function(){return this.getFilteredProperties()},t}(L),io=function(e){function t(t){var n=e.call(this,t)||this;return n.isMultipleItemValueChanging=!1,n.createNewArray("items",(function(e){e.setData(n)})),n.registerFunctionOnPropertyValueChanged("items",(function(){n.fireCallback(n.colCountChangedCallback)})),n.registerFunctionOnPropertyValueChanged("colCount",(function(){n.fireCallback(n.colCountChangedCallback)})),n.registerFunctionOnPropertyValueChanged("itemSize",(function(){n.updateItemsSize()})),n}return oo(t,e),t.addDefaultItems=function(e){for(var t=Gt.DefaultMutlipleTextItems,n=0;n<t.length;n++)e.addItem(t[n])},t.prototype.getType=function(){return"multipletext"},t.prototype.setSurveyImpl=function(t){e.prototype.setSurveyImpl.call(this,t);for(var n=0;n<this.items.length;n++)this.items[n].setData(this)},Object.defineProperty(t.prototype,"isAllowTitleLeft",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.onSurveyLoad=function(){this.editorsOnSurveyLoad(),e.prototype.onSurveyLoad.call(this),this.fireCallback(this.colCountChangedCallback)},t.prototype.setQuestionValue=function(t,n){void 0===n&&(n=!0),e.prototype.setQuestionValue.call(this,t,n),this.performForEveryEditor((function(e){e.editor.updateValueFromSurvey(e.value)})),this.updateIsAnswered()},t.prototype.onSurveyValueChanged=function(t){e.prototype.onSurveyValueChanged.call(this,t),this.performForEveryEditor((function(e){e.editor.onSurveyValueChanged(e.value)}))},t.prototype.updateItemsSize=function(){this.performForEveryEditor((function(e){e.editor.updateInputSize()}))},t.prototype.editorsOnSurveyLoad=function(){this.performForEveryEditor((function(e){e.editor.onSurveyLoad()}))},t.prototype.performForEveryEditor=function(e){for(var t=0;t<this.items.length;t++){var n=this.items[t];n.editor&&e(n)}},Object.defineProperty(t.prototype,"items",{get:function(){return this.getPropertyValue("items")},set:function(e){this.setPropertyValue("items",e)},enumerable:!1,configurable:!0}),t.prototype.addItem=function(e,t){void 0===t&&(t=null);var n=this.createTextItem(e,t);return this.items.push(n),n},t.prototype.getItemByName=function(e){for(var t=0;t<this.items.length;t++)if(this.items[t].name==e)return this.items[t];return null},t.prototype.addConditionObjectsByContext=function(e,t){for(var n=0;n<this.items.length;n++){var o=this.items[n];e.push({name:this.getValueName()+"."+o.name,text:this.processedTitle+"."+o.fullTitle,question:this})}},t.prototype.getConditionJson=function(t,n){if(void 0===t&&(t=null),void 0===n&&(n=null),!n)return e.prototype.getConditionJson.call(this);var o=this.getItemByName(n);if(!o)return null;var r=(new E).toJsonObject(o);return r.type="text",r},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this);for(var t=0;t<this.items.length;t++)this.items[t].locStrsChanged()},t.prototype.supportGoNextPageAutomatic=function(){for(var e=0;e<this.items.length;e++)if(this.items[e].isEmpty())return!1;return!0},Object.defineProperty(t.prototype,"colCount",{get:function(){return this.getPropertyValue("colCount")},set:function(e){e<1||e>5||this.setPropertyValue("colCount",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemSize",{get:function(){return this.getPropertyValue("itemSize")},set:function(e){this.setPropertyValue("itemSize",e)},enumerable:!1,configurable:!0}),t.prototype.getRows=function(){for(var e=this.colCount,t=this.items,n=[],o=0,r=0;r<t.length;r++)0==o&&n.push([]),n[n.length-1].push(t[r]),++o>=e&&(o=0);return n},t.prototype.onValueChanged=function(){e.prototype.onValueChanged.call(this),this.onItemValueChanged()},t.prototype.createTextItem=function(e,t){return new ro(e,t)},t.prototype.onItemValueChanged=function(){if(!this.isMultipleItemValueChanging)for(var e=0;e<this.items.length;e++){var t=null;this.value&&this.items[e].name in this.value&&(t=this.value[this.items[e].name]),this.items[e].onValueChanged(t)}},t.prototype.getIsRunningValidators=function(){if(e.prototype.getIsRunningValidators.call(this))return!0;for(var t=0;t<this.items.length;t++)if(this.items[t].editor.isRunningValidators)return!0;return!1},t.prototype.hasErrors=function(t,n){var o=this;void 0===t&&(t=!0),void 0===n&&(n=null);for(var r=!1,i=0;i<this.items.length;i++)this.items[i].editor.onCompletedAsyncValidators=function(e){o.raiseOnCompletedAsyncValidators()},n&&!0===n.isOnValueChanged&&this.items[i].editor.isEmpty()||(r=this.items[i].editor.hasErrors(t,n)||r);return e.prototype.hasErrors.call(this,t)||r},t.prototype.getAllErrors=function(){for(var t=e.prototype.getAllErrors.call(this),n=0;n<this.items.length;n++){var o=this.items[n].editor.getAllErrors();o&&o.length>0&&(t=t.concat(o))}return t},t.prototype.clearErrors=function(){e.prototype.clearErrors.call(this);for(var t=0;t<this.items.length;t++)this.items[t].editor.clearErrors()},t.prototype.getContainsErrors=function(){var t=e.prototype.getContainsErrors.call(this);if(t)return t;for(var n=this.items,o=0;o<n.length;o++)if(n[o].editor.containsErrors)return!0;return!1},t.prototype.getIsAnswered=function(){if(!e.prototype.getIsAnswered.call(this))return!1;for(var t=0;t<this.items.length;t++){var n=this.items[t].editor;if(n.isVisible&&!n.isAnswered)return!1}return!0},t.prototype.getProgressInfo=function(){for(var e=[],t=0;t<this.items.length;t++)e.push(this.items[t].editor);return ft.getProgressInfoByElements(e,this.isRequired)},t.prototype.getDisplayValueCore=function(e,t){if(!t)return t;for(var n={},o=0;o<this.items.length;o++){var r=this.items[o],i=t[r.name];if(!s.isValueEmpty(i)){var a=r.name;e&&r.title&&(a=r.title),n[a]=r.editor.getDisplayValue(e,i)}}return n},t.prototype.getMultipleTextValue=function(e){return this.value?this.value[e]:null},t.prototype.setMultipleTextValue=function(e,t){this.isMultipleItemValueChanging=!0,this.isValueEmpty(t)&&(t=void 0);var n=this.value;n||(n={}),n[e]=t,this.setNewValue(n),this.isMultipleItemValueChanging=!1},t.prototype.getItemDefaultValue=function(e){return this.defaultValue?this.defaultValue[e]:null},t.prototype.getTextProcessor=function(){return this.textProcessor},t.prototype.getAllValues=function(){return this.data?this.data.getAllValues():null},t.prototype.getIsRequiredText=function(){return this.survey?this.survey.requiredText:""},t.prototype.addElement=function(e,t){},t.prototype.removeElement=function(e){return!1},t.prototype.getQuestionTitleLocation=function(){return"left"},t.prototype.getQuestionStartIndex=function(){return this.getStartIndex()},t.prototype.getChildrenLayoutType=function(){return"row"},t.prototype.elementWidthChanged=function(e){},Object.defineProperty(t.prototype,"elements",{get:function(){return[]},enumerable:!1,configurable:!0}),t.prototype.indexOf=function(e){return-1},t.prototype.ensureRowsVisibility=function(){},t.prototype.getItemCss=function(){return(new ze).append(this.cssClasses.item).append(this.cssClasses.cell).toString()},t.prototype.getItemTitleCss=function(){return(new ze).append(this.cssClasses.itemTitle).append(this.cssClasses.cell).toString()},t}(Bt);R.addClass("multipletextitem",["name","isRequired:boolean",{name:"placeHolder",serializationProperty:"locPlaceHolder"},{name:"inputType",default:"text",choices:["color","date","datetime","datetime-local","email","month","number","password","range","tel","text","time","url","week"]},{name:"title",serializationProperty:"locTitle"},{name:"maxLength:number",default:-1},{name:"size:number",minValue:0},{name:"requiredErrorText:text",serializationProperty:"locRequiredErrorText"},{name:"validators:validators",baseClassName:"surveyvalidator",classNamePart:"validator"}],(function(){return new ro("")})),R.addClass("multipletext",[{name:"!items:textitems",className:"multipletextitem"},{name:"itemSize:number",minValue:0},{name:"colCount:number",default:1,choices:[1,2,3,4,5]}],(function(){return new io("")}),"question"),Gt.Instance.registerQuestion("multipletext",(function(e){var t=new io(e);return io.addDefaultItems(t),t}));var ao=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),so=function(e){function t(t){void 0===t&&(t="");var n=e.call(this,t)||this;n.createLocalizableString("content",n,!0);var o=n;return n.registerFunctionOnPropertyValueChanged("content",(function(){o.onContentChanged()})),n}return ao(t,e),t.prototype.getType=function(){return"flowpanel"},t.prototype.getChildrenLayoutType=function(){return"flow"},t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.onContentChanged()},Object.defineProperty(t.prototype,"content",{get:function(){return this.getLocalizableStringText("content")},set:function(e){this.setLocalizableStringText("content",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locContent",{get:function(){return this.getLocalizableString("content")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"html",{get:function(){return this.getPropertyValue("html","")},set:function(e){this.setPropertyValue("html",e)},enumerable:!1,configurable:!0}),t.prototype.onContentChanged=function(){var e="";e=this.onCustomHtmlProducing?this.onCustomHtmlProducing():this.produceHtml(),this.html=e,this.contentChangedCallback&&this.contentChangedCallback()},t.prototype.produceHtml=function(){for(var e=[],t=/{(.*?(element:)[^$].*?)}/g,n=this.content,o=0,r=null;null!==(r=t.exec(n));){r.index>o&&(e.push(n.substr(o,r.index-o)),o=r.index);var i=this.getQuestionFromText(r[0]);i?e.push(this.getHtmlForQuestion(i)):e.push(n.substr(o,r.index+r[0].length-o)),o=r.index+r[0].length}return o<n.length&&e.push(n.substr(o,n.length-o)),e.join("").replace(new RegExp("<br>","g"),"<br/>")},t.prototype.getQuestionFromText=function(e){return e=(e=e.substr(1,e.length-2)).replace(t.contentElementNamePrefix,"").trim(),this.getQuestionByName(e)},t.prototype.getHtmlForQuestion=function(e){return this.onGetHtmlForQuestion?this.onGetHtmlForQuestion(e):""},t.prototype.getQuestionHtmlId=function(e){return this.name+"_"+e.id},t.prototype.onAddElement=function(t,n){e.prototype.onAddElement.call(this,t,n),this.addElementToContent(t),t.renderWidth=""},t.prototype.onRemoveElement=function(t){var n=this.getElementContentText(t);this.content=this.content.replace(n,""),e.prototype.onRemoveElement.call(this,t)},t.prototype.dragDropMoveElement=function(e,t,n){},t.prototype.addElementToContent=function(e){if(!this.isLoadingFromJson){var t=this.getElementContentText(e);this.insertTextAtCursor(t)||(this.content=this.content+t)}},t.prototype.insertTextAtCursor=function(e,t){if(void 0===t&&(t=null),!this.isDesignMode||"undefined"==typeof document||!window.getSelection)return!1;var n=window.getSelection();if(n.getRangeAt&&n.rangeCount){var o=n.getRangeAt(0);o.deleteContents(),o.insertNode(document.createTextNode(e));if(this.getContent){var r=this.getContent(t);this.content=r}return!0}return!1},t.prototype.getElementContentText=function(e){return"{"+t.contentElementNamePrefix+e.name+"}"},t.contentElementNamePrefix="element:",t}(qn);R.addClass("flowpanel",[{name:"content:html",serializationProperty:"locContent"}],(function(){return new so}),"panel");var lo=function(){function e(){}return e.getIconCss=function(e,t){return(new ze).append(e.icon).append(e.iconExpanded,!t).toString()},e}(),uo=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),co=function(e){function t(t){return e.call(this,t)||this}return uo(t,e),t.prototype.getType=function(){return"nonvalue"},Object.defineProperty(t.prototype,"hasInput",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitle",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.getTitleLocation=function(){return""},Object.defineProperty(t.prototype,"hasComment",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.hasErrors=function(e,t){return void 0===e&&(e=!0),void 0===t&&(t=null),!1},t.prototype.getAllErrors=function(){return[]},t.prototype.supportGoNextPageAutomatic=function(){return!1},t.prototype.addConditionObjectsByContext=function(e,t){},t.prototype.getConditionJson=function(e,t){return void 0===e&&(e=null),void 0===t&&(t=null),null},t}(Bt);R.addClass("nonvalue",[{name:"title",visible:!1},{name:"description",visible:!1},{name:"valueName",visible:!1},{name:"enableIf",visible:!1},{name:"defaultValue",visible:!1},{name:"correctAnswer",visible:!1},{name:"isRequired",visible:!1,isSerializable:!1},{name:"requiredErrorText",visible:!1},{name:"readOnly",visible:!1},{name:"requiredIf",visible:!1},{name:"validators",visible:!1},{name:"titleLocation",visible:!1},{name:"useDisplayValuesInTitle",visible:!1}],(function(){return new co("")}),"question");var po=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ho=function(e){function t(t){return e.call(this,t)||this}return po(t,e),t.prototype.getType=function(){return"empty"},t}(Bt);R.addClass("empty",[],(function(){return new ho("")}),"question");var fo=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),mo=function(e){function t(t){var n=e.call(this,t)||this;n.selectAllItemValue=new Fe("selectall"),n.invisibleOldValues={},n.isChangingValueOnClearIncorrect=!1;var o=n.createLocalizableString("selectAllText",n,!0);return o.onGetTextCallback=function(e){return e||u.getString("selectAllItemText")},n.selectAllItem.locOwner=n,n.selectAllItem.setLocText(o),n.registerFunctionOnPropertiesValueChanged(["hasSelectAll","selectAllText"],(function(){n.onVisibleChoicesChanged()})),n}return fo(t,e),Object.defineProperty(t.prototype,"ariaRole",{get:function(){return"group"},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"checkbox"},t.prototype.onCreating=function(){e.prototype.onCreating.call(this),this.createNewArray("renderedValue"),this.createNewArray("value")},t.prototype.getFirstInputElementId=function(){return this.inputId+"_0"},Object.defineProperty(t.prototype,"selectAllItem",{get:function(){return this.selectAllItemValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectAllText",{get:function(){return this.getLocalizableStringText("selectAllText",u.getString("selectAllItemText"))},set:function(e){this.setLocalizableStringText("selectAllText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locSelectAllText",{get:function(){return this.getLocalizableString("selectAllText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasSelectAll",{get:function(){return this.getPropertyValue("hasSelectAll",!1)},set:function(e){this.setPropertyValue("hasSelectAll",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAllSelected",{get:function(){var e=this.value;if(!e||!Array.isArray(e))return!1;if(this.isItemSelected(this.noneItem))return!1;var t=this.visibleChoices.length;this.hasOther&&t--,this.hasNone&&t--,this.hasSelectAll&&t--;var n=e.length;return this.isItemSelected(this.otherItem)&&n--,n===t},set:function(e){e?this.selectAll():this.clearValue()},enumerable:!1,configurable:!0}),t.prototype.toggleSelectAll=function(){this.isAllSelected=!this.isAllSelected},t.prototype.selectAll=function(){for(var e=[],t=0;t<this.visibleChoices.length;t++){var n=this.visibleChoices[t];n!==this.noneItem&&n!==this.otherItem&&n!==this.selectAllItem&&e.push(n.value)}this.value=e},t.prototype.isItemSelected=function(e){if(e===this.selectAllItem)return this.isAllSelected;var t=this.renderedValue;if(!t||!Array.isArray(t))return!1;for(var n=0;n<t.length;n++)if(this.isTwoValueEquals(t[n],e.value))return!0;return!1},Object.defineProperty(t.prototype,"maxSelectedChoices",{get:function(){return this.getPropertyValue("maxSelectedChoices")},set:function(e){e<0&&(e=0),this.setPropertyValue("maxSelectedChoices",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedItems",{get:function(){if(this.isEmpty())return[];for(var e=this.value,t=[],n=0;n<e.length;n++)t.push(Fe.getItemByValue(this.visibleChoices,e[n]));return t},enumerable:!1,configurable:!0}),t.prototype.onEnableItemCallBack=function(e){return!this.shouldCheckMaxSelectedChoices()||this.isItemSelected(e)},t.prototype.onAfterRunItemsEnableCondition=function(){this.maxSelectedChoices<1||(this.hasSelectAll&&this.selectAllItem.setIsEnabled(this.maxSelectedChoices>=this.activeChoices.length),this.hasOther&&this.otherItem.setIsEnabled(!this.shouldCheckMaxSelectedChoices()||this.isOtherSelected))},t.prototype.shouldCheckMaxSelectedChoices=function(){if(this.maxSelectedChoices<1)return!1;var e=this.value;return(Array.isArray(e)?e.length:0)>=this.maxSelectedChoices},t.prototype.getItemClassCore=function(t,n){this.value;return n.isSelectAllItem=t===this.selectAllItem,(new ze).append(e.prototype.getItemClassCore.call(this,t,n)).append(this.cssClasses.itemSelectAll,n.isSelectAllItem).toString()},t.prototype.setNewValue=function(t){this.isChangingValueOnClearIncorrect||(this.invisibleOldValues=[]),t=this.valueFromData(t);var n=this.value;if(t||(t=[]),n||(n=[]),!this.isTwoValueEquals(n,t)){if(this.hasNone){var o=this.noneIndexInArray(n),r=this.noneIndexInArray(t);o>-1?r>-1&&t.length>1&&t.splice(r,1):r>-1&&(t.splice(0,t.length),t.push(this.noneItem.value))}e.prototype.setNewValue.call(this,this.rendredValueToData(t))}},t.prototype.getIsMultipleValue=function(){return!0},t.prototype.getCommentFromValue=function(e){var t=this.getFirstUnknownIndex(e);return t<0?"":e[t]},t.prototype.setOtherValueIntoValue=function(e){var t=this.getFirstUnknownIndex(e);return t<0||e.splice(t,1,this.otherItem.value),e},t.prototype.getFirstUnknownIndex=function(e){if(!Array.isArray(e))return-1;for(var t=0;t<e.length;t++)if(this.hasUnknownValue(e[t]))return t;return-1},t.prototype.noneIndexInArray=function(e){if(!e||!Array.isArray(e))return-1;for(var t=this.noneItem.value,n=0;n<e.length;n++)if(e[n]==t)return n;return-1},t.prototype.canUseFilteredChoices=function(){return!this.hasSelectAll&&e.prototype.canUseFilteredChoices.call(this)},t.prototype.supportSelectAll=function(){return this.isSupportProperty("hasSelectAll")},t.prototype.addToVisibleChoices=function(t,n){this.supportSelectAll()&&(n&&this.canShowOptionItem(this.selectAllItem)||this.hasSelectAll)&&t.unshift(this.selectAllItem),e.prototype.addToVisibleChoices.call(this,t,n)},t.prototype.isBuiltInChoice=function(t,n){return t===n.selectAllItem||e.prototype.isBuiltInChoice.call(this,t,n)},t.prototype.isItemInList=function(t){return t==this.selectAllItem?this.hasSelectAll:e.prototype.isItemInList.call(this,t)},t.prototype.getDisplayValueCore=function(t,n){if(!Array.isArray(n))return e.prototype.getDisplayValueCore.call(this,t,n);for(var o=this.visibleChoices,r="",i=0;i<n.length;i++){var a=this.getChoicesDisplayValue(o,n[i]);a&&(r&&(r+=", "),r+=a)}return r},t.prototype.clearIncorrectValuesCore=function(){this.clearIncorrectAndDisabledValues(!1)},t.prototype.clearDisabledValuesCore=function(){this.clearIncorrectAndDisabledValues(!0)},t.prototype.clearIncorrectAndDisabledValues=function(e){var t=this.value,n=!1,o=this.restoreValuesFromInvisible();if(t||0!=o.length){if(!Array.isArray(t)||0==t.length){if(this.isChangingValueOnClearIncorrect=!0,e||(this.hasComment?this.value=null:this.clearValue()),this.isChangingValueOnClearIncorrect=!1,0==o.length)return;t=[]}for(var r=[],i=0;i<t.length;i++){var a=this.canClearValueAnUnknow(t[i]);!e&&!a||e&&!this.isValueDisabled(t[i])?r.push(t[i]):(n=!0,a&&(this.invisibleOldValues[t[i]]=!0))}for(i=0;i<o.length;i++)r.push(o[i]),n=!0;n&&(this.isChangingValueOnClearIncorrect=!0,0==r.length?this.clearValue():this.value=r,this.isChangingValueOnClearIncorrect=!1)}},t.prototype.restoreValuesFromInvisible=function(){for(var e=[],t=this.visibleChoices,n=0;n<t.length;n++){var o=t[n].value;this.invisibleOldValues[o]&&(e.push(o),delete this.invisibleOldValues[o])}return e},t.prototype.getConditionJson=function(t,n){void 0===t&&(t=null),void 0===n&&(n=null);var o=e.prototype.getConditionJson.call(this);return"contains"!=t&&"notcontains"!=t||(o.type="radiogroup"),o},t.prototype.isAnswerCorrect=function(){return s.isArrayContainsEqual(this.value,this.correctAnswer)},t.prototype.setDefaultValueWithOthers=function(){this.value=this.renderedValueFromDataCore(this.defaultValue)},t.prototype.getHasOther=function(e){return!(!e||!Array.isArray(e))&&e.indexOf(this.otherItem.value)>=0},t.prototype.valueFromData=function(t){if(!t)return t;if(!Array.isArray(t))return[e.prototype.valueFromData.call(this,t)];for(var n=[],o=0;o<t.length;o++){var r=Fe.getItemByValue(this.activeChoices,t[o]);r?n.push(r.value):n.push(t[o])}return n},t.prototype.renderedValueFromDataCore=function(e){if(e&&Array.isArray(e)||(e=[]),!this.hasActiveChoices)return e;for(var t=0;t<e.length;t++){if(e[t]==this.otherItem.value)return e;if(this.hasUnknownValue(e[t],!0,!1)){this.comment=e[t];var n=e.slice();return n[t]=this.otherItem.value,n}}return e},t.prototype.rendredValueToDataCore=function(e){if(!e||!e.length)return e;for(var t=0;t<e.length;t++)if(e[t]==this.otherItem.value&&this.getQuestionComment()){var n=e.slice();return n[t]=this.getQuestionComment(),n}return e},Object.defineProperty(t.prototype,"checkBoxSvgPath",{get:function(){return"M5,13l2-2l3,3l7-7l2,2l-9,9L5,13z"},enumerable:!1,configurable:!0}),t.prototype.getItemId=function(e){return this.inputId+"_"+this.getItemIndex(e)},t}($n);
/**!
 * Sortable 1.13.0
 * @author	RubaXa   <trash@rubaxa.org>
 * @author	owenm    <owen23355@gmail.com>
 * @license MIT
 */
function go(e){return(go="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function yo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vo(){return(vo=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function bo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){yo(e,t,n[t])}))}return e}function xo(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}R.addClass("checkbox",["hasSelectAll:boolean",{name:"maxSelectedChoices:number",default:0},{name:"selectAllText",serializationProperty:"locSelectAllText",dependsOn:"hasSelectAll",visibleIf:function(e){return e.hasSelectAll}}],(function(){return new mo("")}),"checkboxbase"),Gt.Instance.registerQuestion("checkbox",(function(e){var t=new mo(e);return t.choices=Gt.DefaultChoices,t}));function Co(e){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(e)}var wo=Co(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Po=Co(/Edge/i),_o=Co(/firefox/i),Vo=Co(/safari/i)&&!Co(/chrome/i)&&!Co(/android/i),To=Co(/iP(ad|od|hone)/i),ko=Co(/chrome/i)&&Co(/android/i),So={capture:!1,passive:!1};function Oo(e,t,n){e.addEventListener(t,n,!wo&&So)}function Eo(e,t,n){e.removeEventListener(t,n,!wo&&So)}function Ro(e,t){if(t){if(">"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(e){return!1}return!1}}function Io(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function qo(e,t,n,o){if(e){n=n||document;do{if(null!=t&&(">"===t[0]?e.parentNode===n&&Ro(e,t):Ro(e,t))||o&&e===n)return e;if(e===n)break}while(e=Io(e))}return null}var Do,Ao=/\s+/g;function jo(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var o=(" "+e.className+" ").replace(Ao," ").replace(" "+t+" "," ");e.className=(o+(n?" "+t:"")).replace(Ao," ")}}function Lo(e,t,n){var o=e&&e.style;if(o){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];t in o||-1!==t.indexOf("webkit")||(t="-webkit-"+t),o[t]=n+("string"==typeof n?"":"px")}}function No(e,t){var n="";if("string"==typeof e)n=e;else do{var o=Lo(e,"transform");o&&"none"!==o&&(n=o+" "+n)}while(!t&&(e=e.parentNode));var r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return r&&new r(n)}function Mo(e,t,n){if(e){var o=e.getElementsByTagName(t),r=0,i=o.length;if(n)for(;r<i;r++)n(o[r],r);return o}return[]}function Fo(){var e=document.scrollingElement;return e||document.documentElement}function Bo(e,t,n,o,r){if(e.getBoundingClientRect||e===window){var i,a,s,l,u,c,p;if(e!==window&&e.parentNode&&e!==Fo()?(a=(i=e.getBoundingClientRect()).top,s=i.left,l=i.bottom,u=i.right,c=i.height,p=i.width):(a=0,s=0,l=window.innerHeight,u=window.innerWidth,c=window.innerHeight,p=window.innerWidth),(t||n)&&e!==window&&(r=r||e.parentNode,!wo))do{if(r&&r.getBoundingClientRect&&("none"!==Lo(r,"transform")||n&&"static"!==Lo(r,"position"))){var d=r.getBoundingClientRect();a-=d.top+parseInt(Lo(r,"border-top-width")),s-=d.left+parseInt(Lo(r,"border-left-width")),l=a+i.height,u=s+i.width;break}}while(r=r.parentNode);if(o&&e!==window){var h=No(r||e),f=h&&h.a,m=h&&h.d;h&&(l=(a/=m)+(c/=m),u=(s/=f)+(p/=f))}return{top:a,left:s,bottom:l,right:u,width:p,height:c}}}function zo(e,t,n){for(var o=Wo(e,!0),r=Bo(e)[t];o;){var i=Bo(o)[n];if(!("top"===n||"left"===n?r>=i:r<=i))return o;if(o===Fo())break;o=Wo(o,!1)}return!1}function Ho(e,t,n){for(var o=0,r=0,i=e.children;r<i.length;){if("none"!==i[r].style.display&&i[r]!==Kr.ghost&&i[r]!==Kr.dragged&&qo(i[r],n.draggable,e,!1)){if(o===t)return i[r];o++}r++}return null}function Qo(e,t){for(var n=e.lastElementChild;n&&(n===Kr.ghost||"none"===Lo(n,"display")||t&&!Ro(n,t));)n=n.previousElementSibling;return n||null}function $o(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)"TEMPLATE"===e.nodeName.toUpperCase()||e===Kr.clone||t&&!Ro(e,t)||n++;return n}function Uo(e){var t=0,n=0,o=Fo();if(e)do{var r=No(e),i=r.a,a=r.d;t+=e.scrollLeft*i,n+=e.scrollTop*a}while(e!==o&&(e=e.parentNode));return[t,n]}function Wo(e,t){if(!e||!e.getBoundingClientRect)return Fo();var n=e,o=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var r=Lo(n);if(n.clientWidth<n.scrollWidth&&("auto"==r.overflowX||"scroll"==r.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==r.overflowY||"scroll"==r.overflowY)){if(!n.getBoundingClientRect||n===document.body)return Fo();if(o||t)return n;o=!0}}}while(n=n.parentNode);return Fo()}function Go(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}function Jo(e,t){return function(){if(!Do){var n=arguments,o=this;1===n.length?e.call(o,n[0]):e.apply(o,n),Do=setTimeout((function(){Do=void 0}),t)}}}function Ko(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function Xo(e){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}var Zo="Sortable"+(new Date).getTime();function Yo(){var e,t=[];return{captureAnimationState:function(){(t=[],this.options.animation)&&[].slice.call(this.el.children).forEach((function(e){if("none"!==Lo(e,"display")&&e!==Kr.ghost){t.push({target:e,rect:Bo(e)});var n=bo({},t[t.length-1].rect);if(e.thisAnimationDuration){var o=No(e,!0);o&&(n.top-=o.f,n.left-=o.e)}e.fromRect=n}}))},addAnimationState:function(e){t.push(e)},removeAnimationState:function(e){t.splice(function(e,t){for(var n in e)if(e.hasOwnProperty(n))for(var o in t)if(t.hasOwnProperty(o)&&t[o]===e[n][o])return Number(n);return-1}(t,{target:e}),1)},animateAll:function(n){var o=this;if(!this.options.animation)return clearTimeout(e),void("function"==typeof n&&n());var r=!1,i=0;t.forEach((function(e){var t=0,n=e.target,a=n.fromRect,s=Bo(n),l=n.prevFromRect,u=n.prevToRect,c=e.rect,p=No(n,!0);p&&(s.top-=p.f,s.left-=p.e),n.toRect=s,n.thisAnimationDuration&&Go(l,s)&&!Go(a,s)&&(c.top-s.top)/(c.left-s.left)==(a.top-s.top)/(a.left-s.left)&&(t=function(e,t,n,o){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*o.animation}(c,l,u,o.options)),Go(s,a)||(n.prevFromRect=a,n.prevToRect=s,t||(t=o.options.animation),o.animate(n,c,s,t)),t&&(r=!0,i=Math.max(i,t),clearTimeout(n.animationResetTimer),n.animationResetTimer=setTimeout((function(){n.animationTime=0,n.prevFromRect=null,n.fromRect=null,n.prevToRect=null,n.thisAnimationDuration=null}),t),n.thisAnimationDuration=t)})),clearTimeout(e),r?e=setTimeout((function(){"function"==typeof n&&n()}),i):"function"==typeof n&&n(),t=[]},animate:function(e,t,n,o){if(o){Lo(e,"transition",""),Lo(e,"transform","");var r=No(this.el),i=r&&r.a,a=r&&r.d,s=(t.left-n.left)/(i||1),l=(t.top-n.top)/(a||1);e.animatingX=!!s,e.animatingY=!!l,Lo(e,"transform","translate3d("+s+"px,"+l+"px,0)"),this.forRepaintDummy=function(e){return e.offsetWidth}(e),Lo(e,"transition","transform "+o+"ms"+(this.options.easing?" "+this.options.easing:"")),Lo(e,"transform","translate3d(0,0,0)"),"number"==typeof e.animated&&clearTimeout(e.animated),e.animated=setTimeout((function(){Lo(e,"transition",""),Lo(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1}),o)}}}}var er=[],tr={initializeByDefault:!0},nr={mount:function(e){for(var t in tr)tr.hasOwnProperty(t)&&!(t in e)&&(e[t]=tr[t]);er.forEach((function(t){if(t.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")})),er.push(e)},pluginEvent:function(e,t,n){var o=this;this.eventCanceled=!1,n.cancel=function(){o.eventCanceled=!0};var r=e+"Global";er.forEach((function(o){t[o.pluginName]&&(t[o.pluginName][r]&&t[o.pluginName][r](bo({sortable:t},n)),t.options[o.pluginName]&&t[o.pluginName][e]&&t[o.pluginName][e](bo({sortable:t},n)))}))},initializePlugins:function(e,t,n,o){for(var r in er.forEach((function(o){var r=o.pluginName;if(e.options[r]||o.initializeByDefault){var i=new o(e,t,e.options);i.sortable=e,i.options=e.options,e[r]=i,vo(n,i.defaults)}})),e.options)if(e.options.hasOwnProperty(r)){var i=this.modifyOption(e,r,e.options[r]);void 0!==i&&(e.options[r]=i)}},getEventProperties:function(e,t){var n={};return er.forEach((function(o){"function"==typeof o.eventProperties&&vo(n,o.eventProperties.call(t[o.pluginName],e))})),n},modifyOption:function(e,t,n){var o;return er.forEach((function(r){e[r.pluginName]&&r.optionListeners&&"function"==typeof r.optionListeners[t]&&(o=r.optionListeners[t].call(e[r.pluginName],n))})),o}};function or(e){var t=e.sortable,n=e.rootEl,o=e.name,r=e.targetEl,i=e.cloneEl,a=e.toEl,s=e.fromEl,l=e.oldIndex,u=e.newIndex,c=e.oldDraggableIndex,p=e.newDraggableIndex,d=e.originalEvent,h=e.putSortable,f=e.extraEventProperties;if(t=t||n&&n[Zo]){var m,g=t.options,y="on"+o.charAt(0).toUpperCase()+o.substr(1);!window.CustomEvent||wo||Po?(m=document.createEvent("Event")).initEvent(o,!0,!0):m=new CustomEvent(o,{bubbles:!0,cancelable:!0}),m.to=a||n,m.from=s||n,m.item=r||n,m.clone=i,m.oldIndex=l,m.newIndex=u,m.oldDraggableIndex=c,m.newDraggableIndex=p,m.originalEvent=d,m.pullMode=h?h.lastPutMode:void 0;var v=bo({},f,nr.getEventProperties(o,t));for(var b in v)m[b]=v[b];n&&n.dispatchEvent(m),g[y]&&g[y].call(t,m)}}var rr=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=n.evt,r=xo(n,["evt"]);nr.pluginEvent.bind(Kr)(e,t,bo({dragEl:ar,parentEl:sr,ghostEl:lr,rootEl:ur,nextEl:cr,lastDownEl:pr,cloneEl:dr,cloneHidden:hr,dragStarted:Tr,putSortable:br,activeSortable:Kr.active,originalEvent:o,oldIndex:fr,oldDraggableIndex:gr,newIndex:mr,newDraggableIndex:yr,hideGhostForTarget:Ur,unhideGhostForTarget:Wr,cloneNowHidden:function(){hr=!0},cloneNowShown:function(){hr=!1},dispatchSortableEvent:function(e){ir({sortable:t,name:e,originalEvent:o})}},r))};function ir(e){or(bo({putSortable:br,cloneEl:dr,targetEl:ar,rootEl:ur,oldIndex:fr,oldDraggableIndex:gr,newIndex:mr,newDraggableIndex:yr},e))}var ar,sr,lr,ur,cr,pr,dr,hr,fr,mr,gr,yr,vr,br,xr,Cr,wr,Pr,_r,Vr,Tr,kr,Sr,Or,Er,Rr=!1,Ir=!1,qr=[],Dr=!1,Ar=!1,jr=[],Lr=!1,Nr=[],Mr="undefined"!=typeof document,Fr=To,Br=Po||wo?"cssFloat":"float",zr=Mr&&!ko&&!To&&"draggable"in document.createElement("div"),Hr=function(){if(Mr){if(wo)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),Qr=function(e,t){var n=Lo(e),o=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),r=Ho(e,0,t),i=Ho(e,1,t),a=r&&Lo(r),s=i&&Lo(i),l=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+Bo(r).width,u=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+Bo(i).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(r&&a.float&&"none"!==a.float){var c="left"===a.float?"left":"right";return!i||"both"!==s.clear&&s.clear!==c?"horizontal":"vertical"}return r&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||l>=o&&"none"===n[Br]||i&&"none"===n[Br]&&l+u>o)?"vertical":"horizontal"},$r=function(e){function t(e,n){return function(o,r,i,a){var s=o.options.group.name&&r.options.group.name&&o.options.group.name===r.options.group.name;if(null==e&&(n||s))return!0;if(null==e||!1===e)return!1;if(n&&"clone"===e)return e;if("function"==typeof e)return t(e(o,r,i,a),n)(o,r,i,a);var l=(n?o:r).options.group.name;return!0===e||"string"==typeof e&&e===l||e.join&&e.indexOf(l)>-1}}var n={},o=e.group;o&&"object"==go(o)||(o={name:o}),n.name=o.name,n.checkPull=t(o.pull,!0),n.checkPut=t(o.put),n.revertClone=o.revertClone,e.group=n},Ur=function(){!Hr&&lr&&Lo(lr,"display","none")},Wr=function(){!Hr&&lr&&Lo(lr,"display","")};Mr&&document.addEventListener("click",(function(e){if(Ir)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Ir=!1,!1}),!0);var Gr=function(e){if(ar){e=e.touches?e.touches[0]:e;var t=(r=e.clientX,i=e.clientY,qr.some((function(e){if(!Qo(e)){var t=Bo(e),n=e[Zo].options.emptyInsertThreshold,o=r>=t.left-n&&r<=t.right+n,s=i>=t.top-n&&i<=t.bottom+n;return n&&o&&s?a=e:void 0}})),a);if(t){var n={};for(var o in e)e.hasOwnProperty(o)&&(n[o]=e[o]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[Zo]._onDragOver(n)}}var r,i,a},Jr=function(e){ar&&ar.parentNode[Zo]._isOutsideThisEl(e.target)};function Kr(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=vo({},t),e[Zo]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Qr(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==Kr.supportPointer&&"PointerEvent"in window&&!Vo,emptyInsertThreshold:5};for(var o in nr.initializePlugins(this,e,n),n)!(o in t)&&(t[o]=n[o]);for(var r in $r(t),this)"_"===r.charAt(0)&&"function"==typeof this[r]&&(this[r]=this[r].bind(this));this.nativeDraggable=!t.forceFallback&&zr,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?Oo(e,"pointerdown",this._onTapStart):(Oo(e,"mousedown",this._onTapStart),Oo(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(Oo(e,"dragover",this),Oo(e,"dragenter",this)),qr.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),vo(this,Yo())}function Xr(e,t,n,o,r,i,a,s){var l,u,c=e[Zo],p=c.options.onMove;return!window.CustomEvent||wo||Po?(l=document.createEvent("Event")).initEvent("move",!0,!0):l=new CustomEvent("move",{bubbles:!0,cancelable:!0}),l.to=t,l.from=e,l.dragged=n,l.draggedRect=o,l.related=r||t,l.relatedRect=i||Bo(t),l.willInsertAfter=s,l.originalEvent=a,e.dispatchEvent(l),p&&(u=p.call(c,l,a)),u}function Zr(e){e.draggable=!1}function Yr(){Lr=!1}function ei(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,o=0;n--;)o+=t.charCodeAt(n);return o.toString(36)}function ti(e){return setTimeout(e,0)}function ni(e){return clearTimeout(e)}Kr.prototype={constructor:Kr,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(kr=null)},_getDirection:function(e,t){return"function"==typeof this.options.direction?this.options.direction.call(this,e,t,ar):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,o=this.options,r=o.preventOnFilter,i=e.type,a=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,s=(a||e).target,l=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||s,u=o.filter;if(function(e){Nr.length=0;var t=e.getElementsByTagName("input"),n=t.length;for(;n--;){var o=t[n];o.checked&&Nr.push(o)}}(n),!ar&&!(/mousedown|pointerdown/.test(i)&&0!==e.button||o.disabled)&&!l.isContentEditable&&(this.nativeDraggable||!Vo||!s||"SELECT"!==s.tagName.toUpperCase())&&!((s=qo(s,o.draggable,n,!1))&&s.animated||pr===s)){if(fr=$o(s),gr=$o(s,o.draggable),"function"==typeof u){if(u.call(this,e,s,this))return ir({sortable:t,rootEl:l,name:"filter",targetEl:s,toEl:n,fromEl:n}),rr("filter",t,{evt:e}),void(r&&e.cancelable&&e.preventDefault())}else if(u&&(u=u.split(",").some((function(o){if(o=qo(l,o.trim(),n,!1))return ir({sortable:t,rootEl:o,name:"filter",targetEl:s,fromEl:n,toEl:n}),rr("filter",t,{evt:e}),!0}))))return void(r&&e.cancelable&&e.preventDefault());o.handle&&!qo(l,o.handle,n,!1)||this._prepareDragStart(e,a,s)}}},_prepareDragStart:function(e,t,n){var o,r=this,i=r.el,a=r.options,s=i.ownerDocument;if(n&&!ar&&n.parentNode===i){var l=Bo(n);if(ur=i,sr=(ar=n).parentNode,cr=ar.nextSibling,pr=n,vr=a.group,Kr.dragged=ar,xr={target:ar,clientX:(t||e).clientX,clientY:(t||e).clientY},_r=xr.clientX-l.left,Vr=xr.clientY-l.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,ar.style["will-change"]="all",o=function(){rr("delayEnded",r,{evt:e}),Kr.eventCanceled?r._onDrop():(r._disableDelayedDragEvents(),!_o&&r.nativeDraggable&&(ar.draggable=!0),r._triggerDragStart(e,t),ir({sortable:r,name:"choose",originalEvent:e}),jo(ar,a.chosenClass,!0))},a.ignore.split(",").forEach((function(e){Mo(ar,e.trim(),Zr)})),Oo(s,"dragover",Gr),Oo(s,"mousemove",Gr),Oo(s,"touchmove",Gr),Oo(s,"mouseup",r._onDrop),Oo(s,"touchend",r._onDrop),Oo(s,"touchcancel",r._onDrop),_o&&this.nativeDraggable&&(this.options.touchStartThreshold=4,ar.draggable=!0),rr("delayStart",this,{evt:e}),!a.delay||a.delayOnTouchOnly&&!t||this.nativeDraggable&&(Po||wo))o();else{if(Kr.eventCanceled)return void this._onDrop();Oo(s,"mouseup",r._disableDelayedDrag),Oo(s,"touchend",r._disableDelayedDrag),Oo(s,"touchcancel",r._disableDelayedDrag),Oo(s,"mousemove",r._delayedDragTouchMoveHandler),Oo(s,"touchmove",r._delayedDragTouchMoveHandler),a.supportPointer&&Oo(s,"pointermove",r._delayedDragTouchMoveHandler),r._dragStartTimer=setTimeout(o,a.delay)}}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){ar&&Zr(ar),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;Eo(e,"mouseup",this._disableDelayedDrag),Eo(e,"touchend",this._disableDelayedDrag),Eo(e,"touchcancel",this._disableDelayedDrag),Eo(e,"mousemove",this._delayedDragTouchMoveHandler),Eo(e,"touchmove",this._delayedDragTouchMoveHandler),Eo(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?Oo(document,"pointermove",this._onTouchMove):Oo(document,t?"touchmove":"mousemove",this._onTouchMove):(Oo(ar,"dragend",this),Oo(ur,"dragstart",this._onDragStart));try{document.selection?ti((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(e){}},_dragStarted:function(e,t){if(Rr=!1,ur&&ar){rr("dragStarted",this,{evt:t}),this.nativeDraggable&&Oo(document,"dragover",Jr);var n=this.options;!e&&jo(ar,n.dragClass,!1),jo(ar,n.ghostClass,!0),Kr.active=this,e&&this._appendGhost(),ir({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(Cr){this._lastX=Cr.clientX,this._lastY=Cr.clientY,Ur();for(var e=document.elementFromPoint(Cr.clientX,Cr.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(Cr.clientX,Cr.clientY))!==t;)t=e;if(ar.parentNode[Zo]._isOutsideThisEl(e),t)do{if(t[Zo]){if(t[Zo]._onDragOver({clientX:Cr.clientX,clientY:Cr.clientY,target:e,rootEl:t})&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);Wr()}},_onTouchMove:function(e){if(xr){var t=this.options,n=t.fallbackTolerance,o=t.fallbackOffset,r=e.touches?e.touches[0]:e,i=lr&&No(lr,!0),a=lr&&i&&i.a,s=lr&&i&&i.d,l=Fr&&Er&&Uo(Er),u=(r.clientX-xr.clientX+o.x)/(a||1)+(l?l[0]-jr[0]:0)/(a||1),c=(r.clientY-xr.clientY+o.y)/(s||1)+(l?l[1]-jr[1]:0)/(s||1);if(!Kr.active&&!Rr){if(n&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))<n)return;this._onDragStart(e,!0)}if(lr){i?(i.e+=u-(wr||0),i.f+=c-(Pr||0)):i={a:1,b:0,c:0,d:1,e:u,f:c};var p="matrix(".concat(i.a,",").concat(i.b,",").concat(i.c,",").concat(i.d,",").concat(i.e,",").concat(i.f,")");Lo(lr,"webkitTransform",p),Lo(lr,"mozTransform",p),Lo(lr,"msTransform",p),Lo(lr,"transform",p),wr=u,Pr=c,Cr=r}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!lr){var e=this.options.fallbackOnBody?document.body:ur,t=Bo(ar,!0,Fr,!0,e),n=this.options;if(Fr){for(Er=e;"static"===Lo(Er,"position")&&"none"===Lo(Er,"transform")&&Er!==document;)Er=Er.parentNode;Er!==document.body&&Er!==document.documentElement?(Er===document&&(Er=Fo()),t.top+=Er.scrollTop,t.left+=Er.scrollLeft):Er=Fo(),jr=Uo(Er)}jo(lr=ar.cloneNode(!0),n.ghostClass,!1),jo(lr,n.fallbackClass,!0),jo(lr,n.dragClass,!0),Lo(lr,"transition",""),Lo(lr,"transform",""),Lo(lr,"box-sizing","border-box"),Lo(lr,"margin",0),Lo(lr,"top",t.top),Lo(lr,"left",t.left),Lo(lr,"width",t.width),Lo(lr,"height",t.height),Lo(lr,"opacity","0.8"),Lo(lr,"position",Fr?"absolute":"fixed"),Lo(lr,"zIndex","100000"),Lo(lr,"pointerEvents","none"),Kr.ghost=lr,e.appendChild(lr),Lo(lr,"transform-origin",_r/parseInt(lr.style.width)*100+"% "+Vr/parseInt(lr.style.height)*100+"%")}},_onDragStart:function(e,t){var n=this,o=e.dataTransfer,r=n.options;rr("dragStart",this,{evt:e}),Kr.eventCanceled?this._onDrop():(rr("setupClone",this),Kr.eventCanceled||((dr=Xo(ar)).draggable=!1,dr.style["will-change"]="",this._hideClone(),jo(dr,this.options.chosenClass,!1),Kr.clone=dr),n.cloneId=ti((function(){rr("clone",n),Kr.eventCanceled||(n.options.removeCloneOnHide||ur.insertBefore(dr,ar),n._hideClone(),ir({sortable:n,name:"clone"}))})),!t&&jo(ar,r.dragClass,!0),t?(Ir=!0,n._loopId=setInterval(n._emulateDragOver,50)):(Eo(document,"mouseup",n._onDrop),Eo(document,"touchend",n._onDrop),Eo(document,"touchcancel",n._onDrop),o&&(o.effectAllowed="move",r.setData&&r.setData.call(n,o,ar)),Oo(document,"drop",n),Lo(ar,"transform","translateZ(0)")),Rr=!0,n._dragStartId=ti(n._dragStarted.bind(n,t,e)),Oo(document,"selectstart",n),Tr=!0,Vo&&Lo(document.body,"user-select","none"))},_onDragOver:function(e){var t,n,o,r,i=this.el,a=e.target,s=this.options,l=s.group,u=Kr.active,c=vr===l,p=s.sort,d=br||u,h=this,f=!1;if(!Lr){if(void 0!==e.preventDefault&&e.cancelable&&e.preventDefault(),a=qo(a,s.draggable,i,!0),S("dragOver"),Kr.eventCanceled)return f;if(ar.contains(e.target)||a.animated&&a.animatingX&&a.animatingY||h._ignoreWhileAnimating===a)return E(!1);if(Ir=!1,u&&!s.disabled&&(c?p||(o=!ur.contains(ar)):br===this||(this.lastPutMode=vr.checkPull(this,u,ar,e))&&l.checkPut(this,u,ar,e))){if(r="vertical"===this._getDirection(e,a),t=Bo(ar),S("dragOverValid"),Kr.eventCanceled)return f;if(o)return sr=ur,O(),this._hideClone(),S("revert"),Kr.eventCanceled||(cr?ur.insertBefore(ar,cr):ur.appendChild(ar)),E(!0);var m=Qo(i,s.draggable);if(!m||function(e,t,n){var o=Bo(Qo(n.el,n.options.draggable));return t?e.clientX>o.right+10||e.clientX<=o.right&&e.clientY>o.bottom&&e.clientX>=o.left:e.clientX>o.right&&e.clientY>o.top||e.clientX<=o.right&&e.clientY>o.bottom+10}(e,r,this)&&!m.animated){if(m===ar)return E(!1);if(m&&i===e.target&&(a=m),a&&(n=Bo(a)),!1!==Xr(ur,i,ar,t,a,n,e,!!a))return O(),i.appendChild(ar),sr=i,R(),E(!0)}else if(a.parentNode===i){n=Bo(a);var g,y,v,b=ar.parentNode!==i,x=!function(e,t,n){var o=n?e.left:e.top,r=n?e.right:e.bottom,i=n?e.width:e.height,a=n?t.left:t.top,s=n?t.right:t.bottom,l=n?t.width:t.height;return o===a||r===s||o+i/2===a+l/2}(ar.animated&&ar.toRect||t,a.animated&&a.toRect||n,r),C=r?"top":"left",w=zo(a,"top","top")||zo(ar,"top","top"),P=w?w.scrollTop:void 0;if(kr!==a&&(y=n[C],Dr=!1,Ar=!x&&s.invertSwap||b),0!==(g=function(e,t,n,o,r,i,a,s){var l=o?e.clientY:e.clientX,u=o?n.height:n.width,c=o?n.top:n.left,p=o?n.bottom:n.right,d=!1;if(!a)if(s&&Or<u*r){if(!Dr&&(1===Sr?l>c+u*i/2:l<p-u*i/2)&&(Dr=!0),Dr)d=!0;else if(1===Sr?l<c+Or:l>p-Or)return-Sr}else if(l>c+u*(1-r)/2&&l<p-u*(1-r)/2)return function(e){return $o(ar)<$o(e)?1:-1}(t);if((d=d||a)&&(l<c+u*i/2||l>p-u*i/2))return l>c+u/2?1:-1;return 0}(e,a,n,r,x?1:s.swapThreshold,null==s.invertedSwapThreshold?s.swapThreshold:s.invertedSwapThreshold,Ar,kr===a))){var _=$o(ar);do{_-=g,v=sr.children[_]}while(v&&("none"===Lo(v,"display")||v===lr))}if(0===g||v===a)return E(!1);kr=a,Sr=g;var V=a.nextElementSibling,T=!1,k=Xr(ur,i,ar,t,a,n,e,T=1===g);if(!1!==k)return 1!==k&&-1!==k||(T=1===k),Lr=!0,setTimeout(Yr,30),O(),T&&!V?i.appendChild(ar):a.parentNode.insertBefore(ar,T?V:a),w&&Ko(w,0,P-w.scrollTop),sr=ar.parentNode,void 0===y||Ar||(Or=Math.abs(y-Bo(a)[C])),R(),E(!0)}if(i.contains(ar))return E(!1)}return!1}function S(s,l){rr(s,h,bo({evt:e,isOwner:c,axis:r?"vertical":"horizontal",revert:o,dragRect:t,targetRect:n,canSort:p,fromSortable:d,target:a,completed:E,onMove:function(n,o){return Xr(ur,i,ar,t,n,Bo(n),e,o)},changed:R},l))}function O(){S("dragOverAnimationCapture"),h.captureAnimationState(),h!==d&&d.captureAnimationState()}function E(t){return S("dragOverCompleted",{insertion:t}),t&&(c?u._hideClone():u._showClone(h),h!==d&&(jo(ar,br?br.options.ghostClass:u.options.ghostClass,!1),jo(ar,s.ghostClass,!0)),br!==h&&h!==Kr.active?br=h:h===Kr.active&&br&&(br=null),d===h&&(h._ignoreWhileAnimating=a),h.animateAll((function(){S("dragOverAnimationComplete"),h._ignoreWhileAnimating=null})),h!==d&&(d.animateAll(),d._ignoreWhileAnimating=null)),(a===ar&&!ar.animated||a===i&&!a.animated)&&(kr=null),s.dragoverBubble||e.rootEl||a===document||(ar.parentNode[Zo]._isOutsideThisEl(e.target),!t&&Gr(e)),!s.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),f=!0}function R(){mr=$o(ar),yr=$o(ar,s.draggable),ir({sortable:h,name:"change",toEl:i,newIndex:mr,newDraggableIndex:yr,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){Eo(document,"mousemove",this._onTouchMove),Eo(document,"touchmove",this._onTouchMove),Eo(document,"pointermove",this._onTouchMove),Eo(document,"dragover",Gr),Eo(document,"mousemove",Gr),Eo(document,"touchmove",Gr)},_offUpEvents:function(){var e=this.el.ownerDocument;Eo(e,"mouseup",this._onDrop),Eo(e,"touchend",this._onDrop),Eo(e,"pointerup",this._onDrop),Eo(e,"touchcancel",this._onDrop),Eo(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;mr=$o(ar),yr=$o(ar,n.draggable),rr("drop",this,{evt:e}),sr=ar&&ar.parentNode,mr=$o(ar),yr=$o(ar,n.draggable),Kr.eventCanceled||(Rr=!1,Ar=!1,Dr=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),ni(this.cloneId),ni(this._dragStartId),this.nativeDraggable&&(Eo(document,"drop",this),Eo(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Vo&&Lo(document.body,"user-select",""),Lo(ar,"transform",""),e&&(Tr&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),lr&&lr.parentNode&&lr.parentNode.removeChild(lr),(ur===sr||br&&"clone"!==br.lastPutMode)&&dr&&dr.parentNode&&dr.parentNode.removeChild(dr),ar&&(this.nativeDraggable&&Eo(ar,"dragend",this),Zr(ar),ar.style["will-change"]="",Tr&&!Rr&&jo(ar,br?br.options.ghostClass:this.options.ghostClass,!1),jo(ar,this.options.chosenClass,!1),ir({sortable:this,name:"unchoose",toEl:sr,newIndex:null,newDraggableIndex:null,originalEvent:e}),ur!==sr?(mr>=0&&(ir({rootEl:sr,name:"add",toEl:sr,fromEl:ur,originalEvent:e}),ir({sortable:this,name:"remove",toEl:sr,originalEvent:e}),ir({rootEl:sr,name:"sort",toEl:sr,fromEl:ur,originalEvent:e}),ir({sortable:this,name:"sort",toEl:sr,originalEvent:e})),br&&br.save()):mr!==fr&&mr>=0&&(ir({sortable:this,name:"update",toEl:sr,originalEvent:e}),ir({sortable:this,name:"sort",toEl:sr,originalEvent:e})),Kr.active&&(null!=mr&&-1!==mr||(mr=fr,yr=gr),ir({sortable:this,name:"end",toEl:sr,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){rr("nulling",this),ur=ar=sr=lr=cr=dr=pr=hr=xr=Cr=Tr=mr=yr=fr=gr=kr=Sr=br=vr=Kr.dragged=Kr.ghost=Kr.clone=Kr.active=null,Nr.forEach((function(e){e.checked=!0})),Nr.length=wr=Pr=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":ar&&(this._onDragOver(e),function(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move");e.cancelable&&e.preventDefault()}(e));break;case"selectstart":e.preventDefault()}},toArray:function(){for(var e,t=[],n=this.el.children,o=0,r=n.length,i=this.options;o<r;o++)qo(e=n[o],i.draggable,this.el,!1)&&t.push(e.getAttribute(i.dataIdAttr)||ei(e));return t},sort:function(e,t){var n={},o=this.el;this.toArray().forEach((function(e,t){var r=o.children[t];qo(r,this.options.draggable,o,!1)&&(n[e]=r)}),this),t&&this.captureAnimationState(),e.forEach((function(e){n[e]&&(o.removeChild(n[e]),o.appendChild(n[e]))})),t&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return qo(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var n=this.options;if(void 0===t)return n[e];var o=nr.modifyOption(this,e,t);n[e]=void 0!==o?o:t,"group"===e&&$r(n)},destroy:function(){rr("destroy",this);var e=this.el;e[Zo]=null,Eo(e,"mousedown",this._onTapStart),Eo(e,"touchstart",this._onTapStart),Eo(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(Eo(e,"dragover",this),Eo(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),(function(e){e.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),qr.splice(qr.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!hr){if(rr("hideClone",this),Kr.eventCanceled)return;Lo(dr,"display","none"),this.options.removeCloneOnHide&&dr.parentNode&&dr.parentNode.removeChild(dr),hr=!0}},_showClone:function(e){if("clone"===e.lastPutMode){if(hr){if(rr("showClone",this),Kr.eventCanceled)return;ar.parentNode!=ur||this.options.group.revertClone?cr?ur.insertBefore(dr,cr):ur.appendChild(dr):ur.insertBefore(dr,ar),this.options.group.revertClone&&this.animate(ar,dr),Lo(dr,"display",""),hr=!1}}else this._hideClone()}},Mr&&Oo(document,"touchmove",(function(e){(Kr.active||Rr)&&e.cancelable&&e.preventDefault()})),Kr.utils={on:Oo,off:Eo,css:Lo,find:Mo,is:function(e,t){return!!qo(e,t,e,!1)},extend:function(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},throttle:Jo,closest:qo,toggleClass:jo,clone:Xo,index:$o,nextTick:ti,cancelNextTick:ni,detectDirection:Qr,getChild:Ho},Kr.get=function(e){return e[Zo]},Kr.mount=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t[0].constructor===Array&&(t=t[0]),t.forEach((function(e){if(!e.prototype||!e.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(e));e.utils&&(Kr.utils=bo({},Kr.utils,e.utils)),nr.mount(e)}))},Kr.create=function(e,t){return new Kr(e,t)},Kr.version="1.13.0";var oi,ri,ii,ai,si,li,ui=[],ci=!1;function pi(){ui.forEach((function(e){clearInterval(e.pid)})),ui=[]}function di(){clearInterval(li)}var hi=Jo((function(e,t,n,o){if(t.scroll){var r,i=(e.touches?e.touches[0]:e).clientX,a=(e.touches?e.touches[0]:e).clientY,s=t.scrollSensitivity,l=t.scrollSpeed,u=Fo(),c=!1;ri!==n&&(ri=n,pi(),oi=t.scroll,r=t.scrollFn,!0===oi&&(oi=Wo(n,!0)));var p=0,d=oi;do{var h=d,f=Bo(h),m=f.top,g=f.bottom,y=f.left,v=f.right,b=f.width,x=f.height,C=void 0,w=void 0,P=h.scrollWidth,_=h.scrollHeight,V=Lo(h),T=h.scrollLeft,k=h.scrollTop;h===u?(C=b<P&&("auto"===V.overflowX||"scroll"===V.overflowX||"visible"===V.overflowX),w=x<_&&("auto"===V.overflowY||"scroll"===V.overflowY||"visible"===V.overflowY)):(C=b<P&&("auto"===V.overflowX||"scroll"===V.overflowX),w=x<_&&("auto"===V.overflowY||"scroll"===V.overflowY));var S=C&&(Math.abs(v-i)<=s&&T+b<P)-(Math.abs(y-i)<=s&&!!T),O=w&&(Math.abs(g-a)<=s&&k+x<_)-(Math.abs(m-a)<=s&&!!k);if(!ui[p])for(var E=0;E<=p;E++)ui[E]||(ui[E]={});ui[p].vx==S&&ui[p].vy==O&&ui[p].el===h||(ui[p].el=h,ui[p].vx=S,ui[p].vy=O,clearInterval(ui[p].pid),0==S&&0==O||(c=!0,ui[p].pid=setInterval(function(){o&&0===this.layer&&Kr.active._onTouchMove(si);var t=ui[this.layer].vy?ui[this.layer].vy*l:0,n=ui[this.layer].vx?ui[this.layer].vx*l:0;"function"==typeof r&&"continue"!==r.call(Kr.dragged.parentNode[Zo],n,t,e,si,ui[this.layer].el)||Ko(ui[this.layer].el,n,t)}.bind({layer:p}),24))),p++}while(t.bubbleScroll&&d!==u&&(d=Wo(d,!1)));ci=c}}),30),fi=function(e){var t=e.originalEvent,n=e.putSortable,o=e.dragEl,r=e.activeSortable,i=e.dispatchSortableEvent,a=e.hideGhostForTarget,s=e.unhideGhostForTarget;if(t){var l=n||r;a();var u=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,c=document.elementFromPoint(u.clientX,u.clientY);s(),l&&!l.el.contains(c)&&(i("spill"),this.onSpill({dragEl:o,putSortable:n}))}};function mi(){}function gi(){}mi.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,n=e.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var o=Ho(this.sortable.el,this.startIndex,this.options);o?this.sortable.el.insertBefore(t,o):this.sortable.el.appendChild(t),this.sortable.animateAll(),n&&n.animateAll()},drop:fi},vo(mi,{pluginName:"revertOnSpill"}),gi.prototype={onSpill:function(e){var t=e.dragEl,n=e.putSortable||this.sortable;n.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),n.animateAll()},drop:fi},vo(gi,{pluginName:"removeOnSpill"});Kr.mount(new function(){function e(){for(var e in this.defaults={scroll:!0,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===e.charAt(0)&&"function"==typeof this[e]&&(this[e]=this[e].bind(this))}return e.prototype={dragStarted:function(e){var t=e.originalEvent;this.sortable.nativeDraggable?Oo(document,"dragover",this._handleAutoScroll):this.options.supportPointer?Oo(document,"pointermove",this._handleFallbackAutoScroll):t.touches?Oo(document,"touchmove",this._handleFallbackAutoScroll):Oo(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var t=e.originalEvent;this.options.dragOverBubble||t.rootEl||this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?Eo(document,"dragover",this._handleAutoScroll):(Eo(document,"pointermove",this._handleFallbackAutoScroll),Eo(document,"touchmove",this._handleFallbackAutoScroll),Eo(document,"mousemove",this._handleFallbackAutoScroll)),di(),pi(),clearTimeout(Do),Do=void 0},nulling:function(){si=ri=oi=ci=li=ii=ai=null,ui.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,t){var n=this,o=(e.touches?e.touches[0]:e).clientX,r=(e.touches?e.touches[0]:e).clientY,i=document.elementFromPoint(o,r);if(si=e,t||Po||wo||Vo){hi(e,this.options,i,t);var a=Wo(i,!0);!ci||li&&o===ii&&r===ai||(li&&di(),li=setInterval((function(){var i=Wo(document.elementFromPoint(o,r),!0);i!==a&&(a=i,pi()),hi(e,n.options,i,t)}),10),ii=o,ai=r)}else{if(!this.options.bubbleScroll||Wo(i,!0)===Fo())return void pi();hi(e,this.options,Wo(i,!1),!1)}}},vo(e,{pluginName:"scroll",initializeByDefault:!0})}),Kr.mount(gi,mi);var yi,vi=Kr,bi=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),xi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return bi(t,e),Object.defineProperty(t.prototype,"draggedElementType",{get:function(){return"item-value"},enumerable:!1,configurable:!0}),t.prototype.getShortcutText=function(e){return e.text},t.prototype.createDraggedElementShortcut=function(t,n){if("imagepicker"===this.parentElement.getType())return e.prototype.createDraggedElementShortcut.call(this,t,n);var o=document.createElement("div");o.style.cssText=' \n          cursor: grabbing;\n          position: absolute;\n          z-index: 1000;\n          border-radius: 36px;\n          min-width: 100px;\n          box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1);\n          background-color: white;\n          padding-right: 16px;\n          padding-left: 20px;\n          font-family: "Open Sans";\n        ';var r=n.closest("[data-sv-drop-target-item-value]").cloneNode(!0);return r.querySelector(".svc-item-value-controls").style.display="block",r.classList.remove("svc-item-value--moveup"),r.classList.remove("svc-item-value--movedown"),this.draggedElement.isDragDropMoveDown=!1,this.draggedElement.isDragDropMoveUp=!1,o.appendChild(r),this.isBottom=null,o},t.prototype.findDropTargetNodeByDragOverNode=function(e){return e.closest(this.dropTargetDataAttributeName)},t.prototype.getDropTargetByDataAttributeValue=function(e){return this.parentElement.choices.filter((function(t){return""+t.value==e}))[0]},t.prototype.getVisibleChoices=function(){var e=this.parentElement;return"ranking"===e.getType()?e.rankingChoices:e.visibleChoices},t.prototype.isDropTargetValid=function(e,t,n){var o=this.getVisibleChoices();if("imagepicker"!==this.parentElement.getType()){var r=o.indexOf(this.dropTarget),i=o.indexOf(this.draggedElement);if(i>r&&this.dropTarget.isDragDropMoveUp)return this.dropTarget.isDragDropMoveUp=!1,!1;if(i<r&&this.dropTarget.isDragDropMoveDown)return this.dropTarget.isDragDropMoveDown=!1,!1}return-1!==o.indexOf(e)},t.prototype.calculateIsBottom=function(e){var t=this.getVisibleChoices();return t.indexOf(this.dropTarget)-t.indexOf(this.draggedElement)>0},t.prototype.afterDragOver=function(t){if(!this.isDropTargetDoesntChanged(this.isBottom)&&this.dropTarget!==this.draggedElement&&"imagepicker"!==this.parentElement.getType()){var n=this.getVisibleChoices(),o=n.indexOf(this.dropTarget),r=n.indexOf(this.draggedElement);n.splice(r,1),n.splice(o,0,this.draggedElement),r!==o&&(t.classList.remove("svc-item-value--moveup"),t.classList.remove("svc-item-value--movedown"),this.dropTarget.isDragDropMoveDown=!1,this.dropTarget.isDragDropMoveUp=!1),r>o&&(this.dropTarget.isDragDropMoveDown=!0),r<o&&(this.dropTarget.isDragDropMoveUp=!0),e.prototype.ghostPositionChanged.call(this)}},t.prototype.doDrop=function(){var e=this.parentElement.choices,t=this.getVisibleChoices().filter((function(t){return-1!==e.indexOf(t)})),n=e.indexOf(this.draggedElement),o=t.indexOf(this.draggedElement);return e.splice(n,1),e.splice(o,0,this.draggedElement),this.parentElement},t.prototype.doClear=function(){this.updateVisibleChoices()},t.prototype.updateVisibleChoices=function(){var e=this.parentElement;"ranking"===this.parentElement.getType()?e.updateRankingChoices():e.updateVisibleChoices()},t}(xn),Ci=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),wi=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.doDrop=function(){return t.parentElement.setValue(),t.parentElement},t.handleEscapeButton=function(e){27==e.keyCode&&(t.parentElement.updateRankingChoices(),t.clear())},t.doClear=function(){t.parentElement.dropTargetNodeMove=null},t}return Ci(t,e),Object.defineProperty(t.prototype,"draggedElementType",{get:function(){return"ranking-item"},enumerable:!1,configurable:!0}),t.prototype.createDraggedElementShortcut=function(e,t){var n=document.createElement("div");n.style.cssText=' \n          cursor: grabbing;\n          position: absolute;\n          z-index: 1000;\n          border-radius: 36px;\n          min-width: 100px;\n          box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1);\n          background-color: white;\n          padding-right: 16px;\n          padding-left: 20px;\n          font-family: "Open Sans";\n        ';var o=t.cloneNode(!0);return n.appendChild(o),n},t.prototype.getDropTargetByDataAttributeValue=function(e){return this.parentElement.rankingChoices[e]},t.prototype.isDropTargetValid=function(e,t,n){return-1!==this.parentElement.rankingChoices.indexOf(e)},t.prototype.calculateIsBottom=function(e){var t=this.parentElement.rankingChoices;return t.indexOf(this.dropTarget)-t.indexOf(this.draggedElement)>0},t.prototype.afterDragOver=function(e){var t=this.parentElement.rankingChoices,n=t.indexOf(this.dropTarget),o=t.indexOf(this.draggedElement);t.splice(o,1),t.splice(n,0,this.draggedElement),this.parentElement.setPropertyValue("rankingChoices",t),this.updateDraggedElementShortcut(n+1),o!==n&&(e.classList.remove("sv-dragdrop-moveup"),e.classList.remove("sv-dragdrop-movedown"),this.parentElement.dropTargetNodeMove=null),o>n&&(this.parentElement.dropTargetNodeMove="down"),o<n&&(this.parentElement.dropTargetNodeMove="up")},t.prototype.updateDraggedElementShortcut=function(e){var t=e+"";this.draggedElementShortcut.querySelector(".sv-ranking-item__index").innerText=t},t.prototype.ghostPositionChanged=function(){this.parentElement.currentDropTarget=this.draggedElement,e.prototype.ghostPositionChanged.call(this)},t}(xi),Pi=!1,_i=null;"undefined"!=typeof navigator&&"undefined"!=typeof window&&navigator&&window&&(_i=navigator.userAgent||navigator.vendor||window.opera),(yi=_i)&&(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(yi)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(yi.substr(0,4)))&&(Pi=!0);var Vi=Pi,Ti=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ki=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Si=vi,Oi=function(e){function t(t){var n=e.call(this,t)||this;return n.domNode=null,n.sortableInst=null,n.setSurveyImpl=function(t){e.prototype.setSurveyImpl.call(n,t),n.updateRankingChoices()},n.onVisibleChoicesChanged=function(){if(e.prototype.onVisibleChoicesChanged.call(n),1===n.visibleChoices.length)return n.value=[],void n.updateRankingChoices();n.isEmpty()||(n.visibleChoices.length>n.value.length&&n.addToValueByVisibleChoices(),n.visibleChoices.length<n.value.length&&n.removeFromValueByVisibleChoices()),n.updateRankingChoices()},n.localeChanged=function(){e.prototype.localeChanged.call(n),n.updateRankingChoices()},n.handlePointerDown=function(e,t,o){n.fallbackToSortableJS||n.survey.isDesignMode||n.dragDropRankingChoices.startDrag(e,t,n,o)},n.handleKeydown=function(e,t){var o=e.key,r=n.rankingChoices.indexOf(t);"ArrowUp"===o&&r&&n.handleArrowUp(r,t),"ArrowDown"===o&&r!==n.rankingChoices.length-1&&n.handleArrowDown(r,t)},n.handleArrowUp=function(e,t){var o=n.rankingChoices;o.splice(e,1),o.splice(e-1,0,t),n.setValue(),setTimeout((function(){n.focusItem(e-1)}),1)},n.handleArrowDown=function(e,t){var o=n.rankingChoices;o.splice(e,1),o.splice(e+1,0,t),n.setValue(),setTimeout((function(){n.focusItem(e+1)}),1)},n.focusItem=function(e){n.domNode.querySelectorAll("."+n.cssClasses.item)[e].focus()},n.setValue=function(){var e=[];n.rankingChoices.forEach((function(t){e.push(t.value)})),n.value=e},n.setValueFromUI=function(){var e=[];n.domNode.querySelectorAll("."+n.cssClasses.controlLabel).forEach((function(t,o){var r=t.innerText;n.visibleChoices.forEach((function(t){r===t.text&&e.push(t.value)}))})),n.value=e},n.syncNumbers=function(){if(n.domNode){var e="."+n.cssClasses.item+":not(."+n.cssClasses.itemDragMod+") ."+n.cssClasses.itemIndex;n.domNode.querySelectorAll(e).forEach((function(e,t){e.innerText=n.getNumberByIndex(t)}))}},n.setGhostText=function(e){var t=n.domNode.querySelectorAll("."+n.cssClasses.itemIndex);t[t.length-1].innerText=e},n.createNewArray("rankingChoices"),n}return Ti(t,e),t.prototype.getType=function(){return"ranking"},Object.defineProperty(t.prototype,"rootClass",{get:function(){return(new ze).append(this.cssClasses.root).append(this.cssClasses.rootMobileMod,Vi).toString()},enumerable:!1,configurable:!0}),t.prototype.getItemClassCore=function(t,n){var o=this.rankingChoices.indexOf(t),r=this.rankingChoices.indexOf(this.currentDropTarget);return(new ze).append(e.prototype.getItemClassCore.call(this,t,n)).append(this.cssClasses.itemGhostMod,this.currentDropTarget===t).append("sv-dragdrop-movedown",o===r+1&&"down"===this.dropTargetNodeMove).append("sv-dragdrop-moveup",o===r-1&&"up"===this.dropTargetNodeMove).toString()},t.prototype.isItemCurrentDropTarget=function(e){return!this.fallbackToSortableJS&&this.dragDropRankingChoices.dropTarget===e},Object.defineProperty(t.prototype,"ghostPositionCssClass",{get:function(){return"top"===this.ghostPosition?this.cssClasses.dragDropGhostPositionTop:"bottom"===this.ghostPosition?this.cssClasses.dragDropGhostPositionBottom:""},enumerable:!1,configurable:!0}),t.prototype.getNumberByIndex=function(e){return this.isEmpty()?"–":e+1+""},t.prototype.onSurveyValueChanged=function(t){e.prototype.onSurveyValueChanged.call(this,t),this.isLoadingFromJson||this.updateRankingChoices()},t.prototype.addToValueByVisibleChoices=function(){var e=this.value.slice();this.visibleChoices.forEach((function(t){-1===e.indexOf(t.value)&&e.push(t.value)})),this.value=e},t.prototype.removeFromValueByVisibleChoices=function(){var e=this,t=this.value.slice();this.value.forEach((function(n,o){var r=!0;e.visibleChoices.forEach((function(e){e.value===n&&(r=!1)})),r&&t.splice(o,1)})),this.value=t},Object.defineProperty(t.prototype,"rankingChoices",{get:function(){return this.getPropertyValue("rankingChoices",[])},enumerable:!1,configurable:!0}),t.prototype.updateRankingChoices=function(){var e=this,t=[];1!==this.visibleChoices.length?this.isEmpty()?this.setPropertyValue("rankingChoices",this.visibleChoices):(this.value.forEach((function(n){e.visibleChoices.forEach((function(e){e.value===n&&t.push(e)}))})),this.setPropertyValue("rankingChoices",t)):this.setPropertyValue("rankingChoices",t)},t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),this.fallbackToSortableJS||(this.dragDropRankingChoices=new wi(this.survey))},t.prototype.afterRenderQuestionElement=function(t){this.domNode=t,t&&this.fallbackToSortableJS&&this.initSortable(t),e.prototype.afterRenderQuestionElement.call(this,t)},t.prototype.beforeDestroyQuestionElement=function(t){this.sortableInst&&this.sortableInst.destroy(),e.prototype.beforeDestroyQuestionElement.call(this,t)},t.prototype.supportSelectAll=function(){return!1},t.prototype.supportOther=function(){return!1},t.prototype.supportNone=function(){return!1},t.prototype.initSortable=function(e){if(e){var t=this;this.isReadOnly||this.isDesignMode||(t.sortableInst=new Si(e,{animation:100,forceFallback:!0,delay:200,delayOnTouchOnly:!0,handle:Vi?"."+t.cssClasses.itemIconContainer:"."+t.cssClasses.itemContent,ghostClass:t.cssClasses.itemGhostMod,dragClass:t.cssClasses.itemDragMod,onStart:function(n){Si.ghost.style.opacity=1,e.className+=" "+t.cssClasses.rootDragMod,t.isEmpty()&&t.setGhostText(n.oldIndex+1)},onEnd:function(){e.className=e.className.replace(" "+t.cssClasses.rootDragMod,""),t.setValueFromUI()},onChange:function(e){t.isEmpty()||t.syncNumbers(),t.setGhostText(e.newIndex+1)}}))}},Object.defineProperty(t.prototype,"fallbackToSortableJS",{get:function(){return this.getPropertyValue("fallbackToSortableJS")},set:function(e){this.setPropertyValue("fallbackToSortableJS",e)},enumerable:!1,configurable:!0}),t.prototype.getIconHoverCss=function(){return(new ze).append(this.cssClasses.itemIcon).append(this.cssClasses.itemIconHoverMod).toString()},t.prototype.getIconFocusCss=function(){return(new ze).append(this.cssClasses.itemIcon).append(this.cssClasses.itemIconFocusMod).toString()},ki([y({defaultValue:null})],t.prototype,"currentDropTarget",void 0),ki([y({defaultValue:null})],t.prototype,"dropTargetNodeMove",void 0),t}(mo);R.addClass("ranking",[{name:"hasOther",visible:!1,isSerializable:!1},{name:"otherText",visible:!1,isSerializable:!1},{name:"otherErrorText",visible:!1,isSerializable:!1},{name:"storeOthersAsComment",visible:!1,isSerializable:!1},{name:"hasNone",visible:!1,isSerializable:!1},{name:"noneText",visible:!1,isSerializable:!1},{name:"hasSelectAll",visible:!1,isSerializable:!1},{name:"selectAllText",visible:!1,isSerializable:!1},{name:"colCount:number",visible:!1,isSerializable:!1},{name:"maxSelectedChoices",visible:!1,isSerializable:!1},{name:"fallbackToSortableJS",default:!1,visible:!1,isSerializable:!1}],(function(){return new Oi("")}),"checkbox"),Gt.Instance.registerQuestion("ranking",(function(e){var t=new Oi(e);return t.choices=Gt.DefaultChoices,t}));var Ei=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ri=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ei(t,e),Object.defineProperty(t.prototype,"rows",{get:function(){return this.getPropertyValue("rows")},set:function(e){this.setPropertyValue("rows",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cols",{get:function(){return this.getPropertyValue("cols")},set:function(e){this.setPropertyValue("cols",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"multiLine",{get:function(){return this.getPropertyValue("multiLine")},set:function(e){this.setPropertyValue("multiLine",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"autoGrow",{get:function(){return this.getPropertyValue("autoGrow")||this.survey&&this.survey.autoGrowComment},set:function(e){this.setPropertyValue("autoGrow",e)},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"comment"},t.prototype.afterRenderQuestionElement=function(t){this.element=document.getElementById(this.inputId)||t,this.updateElement(),e.prototype.afterRenderQuestionElement.call(this,t)},t.prototype.updateElement=function(){var e=this;this.element&&this.autoGrow&&setTimeout((function(){return jt(e.element)}),1)},t.prototype.onInput=function(e){this.isInputTextUpdate?this.value=e.target.value:this.updateElement()},t.prototype.onKeyDown=function(e){this.multiLine||"Enter"!==e.key&&13!==e.keyCode||(e.preventDefault(),e.stopPropagation())},t.prototype.onValueChanged=function(){e.prototype.onValueChanged.call(this),this.updateElement()},t.prototype.setNewValue=function(t){this.multiLine||(t=t.replace(new RegExp("(\r\n|\n|\r)","gm"),"")),e.prototype.setNewValue.call(this,t)},t}(Yn);R.addClass("comment",[{name:"maxLength:number",default:-1},{name:"cols:number",default:50},{name:"rows:number",default:4},{name:"placeHolder",serializationProperty:"locPlaceHolder"},{name:"textUpdateMode",default:"default",choices:["default","onBlur","onTyping"]},{name:"autoGrow:boolean"},{name:"multiLine:boolean",default:!0}],(function(){return new Ri("")}),"textbase"),Gt.Instance.registerQuestion("comment",(function(e){return new Ri(e)}));var Ii=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),qi=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Di=function(e){function t(t){var n=e.call(this,t)||this;return n.isUploading=!1,n.isDragging=!1,n.onStateChanged=n.addEvent(),n.previewValue=[],n.onDragOver=function(e){if(n.isInputReadOnly)return e.returnValue=!1,!1;n.isDragging=!0,e.dataTransfer.dropEffect="copy",e.preventDefault()},n.onDrop=function(e){if(!n.isInputReadOnly){n.isDragging=!1,e.preventDefault();var t=e.dataTransfer;n.onChange(t)}},n.onDragLeave=function(e){n.isInputReadOnly||(n.isDragging=!1)},n.doChange=function(e){var t=e.target||e.srcElement;n.onChange(t)},n.doClean=function(e){var t=e.target||e.srcElement;if(n.needConfirmRemoveFile&&!kt(n.confirmRemoveAllMessage))return;t.parentElement.querySelectorAll("input")[0].value="",n.clear()},n.doDownloadFile=function(e,t){St()&&(e.preventDefault(),Ot(t.content,t.name))},n}return Ii(t,e),t.prototype.getType=function(){return"file"},t.prototype.clearOnDeletingContainer=function(){this.survey&&this.survey.clearFiles(this,this.name,this.value,null,(function(){}))},Object.defineProperty(t.prototype,"showPreview",{get:function(){return this.getPropertyValue("showPreview")},set:function(e){this.setPropertyValue("showPreview",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowMultiple",{get:function(){return this.getPropertyValue("allowMultiple",!1)},set:function(e){this.setPropertyValue("allowMultiple",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageHeight",{get:function(){return this.getPropertyValue("imageHeight")},set:function(e){this.setPropertyValue("imageHeight",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageWidth",{get:function(){return this.getPropertyValue("imageWidth")},set:function(e){this.setPropertyValue("imageWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"acceptedTypes",{get:function(){return this.getPropertyValue("acceptedTypes")},set:function(e){this.setPropertyValue("acceptedTypes",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"storeDataAsText",{get:function(){return this.getPropertyValue("storeDataAsText")},set:function(e){this.setPropertyValue("storeDataAsText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"waitForUpload",{get:function(){return this.getPropertyValue("waitForUpload")},set:function(e){this.setPropertyValue("waitForUpload",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowImagesPreview",{get:function(){return this.getPropertyValue("allowImagesPreview")},set:function(e){this.setPropertyValue("allowImagesPreview",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxSize",{get:function(){return this.getPropertyValue("maxSize")},set:function(e){this.setPropertyValue("maxSize",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"needConfirmRemoveFile",{get:function(){return this.getPropertyValue("needConfirmRemoveFile")},set:function(e){this.setPropertyValue("needConfirmRemoveFile",e)},enumerable:!1,configurable:!0}),t.prototype.getConfirmRemoveMessage=function(e){return this.confirmRemoveMessage.format(e)},Object.defineProperty(t.prototype,"inputTitle",{get:function(){return this.isUploading?this.loadingFileTitle:this.isEmpty()?this.chooseFileTitle:" "},enumerable:!1,configurable:!0}),t.prototype.clear=function(e){var t=this;this.survey&&this.survey.clearFiles(this,this.name,this.value,null,(function(n,o){"success"===n&&(t.value=void 0,t.errors=[],e&&e())}))},t.prototype.removeFile=function(e){var t=this;this.survey&&this.survey.clearFiles(this,this.name,this.value,e.name,(function(n,o){if("success"===n){var r=t.value;Array.isArray(r)?t.value=r.filter((function(t){return t.name!==e.name})):t.value=void 0}}))},t.prototype.loadFiles=function(e){var t=this;if(this.survey&&(this.errors=[],this.allFilesOk(e))){this.stateChanged("loading");var n=function(){var n=[];t.storeDataAsText?e.forEach((function(o){var r=new FileReader;r.onload=function(i){(n=n.concat([{name:o.name,type:o.type,content:r.result}])).length===e.length&&(t.value=(t.value||[]).concat(n))},r.readAsDataURL(o)})):t.survey&&t.survey.uploadFiles(t,t.name,e,(function(e,n){"error"===e&&t.stateChanged("error"),"success"===e&&(t.value=(t.value||[]).concat(n.map((function(e){return{name:e.file.name,type:e.file.type,content:e.content}}))))}))};this.allowMultiple?n():this.clear(n)}},t.prototype.canPreviewImage=function(e){return this.allowImagesPreview&&!!e&&this.isFileImage(e)},t.prototype.setQuestionValue=function(t,n){var o=this;void 0===n&&(n=!0),e.prototype.setQuestionValue.call(this,t,n),this.previewValue=[];var r=!Array.isArray(t)&&t||Array.isArray(t)&&t.length>0?this.showPreview?"loading":"loaded":"empty";if(this.stateChanged(r),this.showPreview&&t){var i=Array.isArray(t)?t:t?[t]:[];this.storeDataAsText?(i.forEach((function(e){var t=e.content||e;o.previewValue=o.previewValue.concat([{name:e.name,type:e.type,content:t}])})),"loading"===r&&this.stateChanged("loaded")):i.forEach((function(e){e.content;o.survey&&o.survey.downloadFile(o.name,e,(function(t,n){"success"===t?(o.previewValue=o.previewValue.concat([{content:n,name:e.name,type:e.type}]),o.previewValue.length===i.length&&o.stateChanged("loaded")):o.stateChanged("error")}))}))}},t.prototype.onCheckForErrors=function(t,n){e.prototype.onCheckForErrors.call(this,t,n),this.isUploading&&this.waitForUpload&&t.push(new K(u.getString("uploadingFile"),this))},t.prototype.stateChanged=function(e){"loading"===e&&(this.isUploading=!0),"loaded"===e&&(this.isUploading=!1),"error"===e&&(this.isUploading=!1),this.currentState=e,this.onStateChanged.fire(this,{state:e})},t.prototype.allFilesOk=function(e){var t=this,n=this.errors?this.errors.length:0;return(e||[]).forEach((function(e){t.maxSize>0&&e.size>t.maxSize&&t.errors.push(new U(t.maxSize,t))})),n===this.errors.length},t.prototype.isFileImage=function(e){if(!e)return!1;var t=e.content&&e.content.substr(0,"data:image".length);return"data:image"===(t=t&&t.toLowerCase())||!!e.type&&0===e.type.toLowerCase().indexOf("image/")},t.prototype.getPlainData=function(t){void 0===t&&(t={includeEmpty:!0});var n=e.prototype.getPlainData.call(this,t);if(n&&!this.isEmpty()){n.isNode=!1;var o=Array.isArray(this.value)?this.value:[this.value];n.data=o.map((function(e,t){return{name:t,title:"File",value:e.content&&e.content||e,displayValue:e.name&&e.name||e,getString:function(e){return"object"==typeof e?JSON.stringify(e):e},isNode:!1}}))}return n},t.prototype.supportComment=function(){return!0},t.prototype.getChooseFileCss=function(){return(new ze).append(this.cssClasses.chooseFile).append(this.cssClasses.controlDisabled,this.isReadOnly).toString()},t.prototype.getReadOnlyFileCss=function(){return(new ze).append("form-control").append(this.cssClasses.placeholderInput).toString()},t.prototype.getFileDecoratorCss=function(){return(new ze).append(this.cssClasses.fileDecorator).append(this.cssClasses.fileDecoratorDrag,this.isDragging).toString()},t.prototype.onChange=function(e){if(window.FileReader&&e&&e.files&&!(e.files.length<1)){for(var t=[],n=this.allowMultiple?e.files.length:1,o=0;o<n;o++)t.push(e.files[o]);e.value="",this.loadFiles(t)}},t.prototype.doRemoveFile=function(e){if(this.needConfirmRemoveFile&&!kt(this.getConfirmRemoveMessage(e.name)))return;this.removeFile(e)},qi([y()],t.prototype,"isDragging",void 0),qi([y({defaultValue:"empty"})],t.prototype,"currentState",void 0),qi([y({defaultValue:u.getString("confirmRemoveFile")})],t.prototype,"confirmRemoveMessage",void 0),qi([y({defaultValue:u.getString("confirmRemoveAllFiles")})],t.prototype,"confirmRemoveAllMessage",void 0),qi([y({defaultValue:u.getString("noFileChosen")})],t.prototype,"noFileChosenCaption",void 0),qi([y({defaultValue:u.getString("chooseFileCaption")})],t.prototype,"chooseButtonCaption",void 0),qi([y({defaultValue:u.getString("cleanCaption")})],t.prototype,"cleanButtonCaption",void 0),qi([y({defaultValue:u.getString("removeFileCaption")})],t.prototype,"removeFileCaption",void 0),qi([y({defaultValue:u.getString("loadingFile")})],t.prototype,"loadingFileTitle",void 0),qi([y({defaultValue:u.getString("chooseFile")})],t.prototype,"chooseFileTitle",void 0),qi([y({defaultValue:u.getString("fileDragAreaPlaceholder")})],t.prototype,"dragAreaPlaceholder",void 0),t}(Bt);R.addClass("file",[{name:"hasComment:switch",layout:"row"},{name:"commentText",dependsOn:"hasComment",visibleIf:function(e){return e.hasComment},serializationProperty:"locCommentText",layout:"row"},{name:"showPreview:boolean",default:!0},"allowMultiple:boolean",{name:"allowImagesPreview:boolean",default:!0},"imageHeight","imageWidth","acceptedTypes",{name:"storeDataAsText:boolean",default:!0},{name:"waitForUpload:boolean",default:!1},{name:"maxSize:number",default:0},{name:"defaultValue",visible:!1},{name:"correctAnswer",visible:!1},{name:"validators",visible:!1},{name:"needConfirmRemoveFile:boolean"}],(function(){return new Di("")}),"question"),Gt.Instance.registerQuestion("file",(function(e){return new Di(e)}));var Ai=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ji=function(e){function t(t){var n=e.call(this,t)||this;return n.createLocalizableString("html",n).onGetTextCallback=function(e){return n.survey&&!n.ignoreHtmlProgressing?n.survey.processHtml(e):e},n}return Ai(t,e),t.prototype.getType=function(){return"html"},Object.defineProperty(t.prototype,"isCompositeQuestion",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getProcessedText=function(t){return this.ignoreHtmlProgressing?t:e.prototype.getProcessedText.call(this,t)},Object.defineProperty(t.prototype,"html",{get:function(){return this.getLocalizableStringText("html","")},set:function(e){this.setLocalizableStringText("html",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locHtml",{get:function(){return this.getLocalizableString("html")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"processedHtml",{get:function(){return this.survey?this.survey.processHtml(this.html):this.html},enumerable:!1,configurable:!0}),t}(co);R.addClass("html",[{name:"html:html",serializationProperty:"locHtml"}],(function(){return new ji("")}),"nonvalue"),Gt.Instance.registerQuestion("html",(function(e){return new ji(e)}));var Li=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ni=function(e){function t(t){return e.call(this,t)||this}return Li(t,e),t.prototype.getType=function(){return"radiogroup"},t.prototype.getFirstInputElementId=function(){return this.inputId+"_0"},Object.defineProperty(t.prototype,"selectedItem",{get:function(){return this.isEmpty()?null:Fe.getItemByValue(this.visibleChoices,this.value)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showClearButton",{get:function(){return this.getPropertyValue("showClearButton")},set:function(e){this.setPropertyValue("showClearButton",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canShowClearButton",{get:function(){return this.showClearButton&&!this.isReadOnly},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clearButtonCaption",{get:function(){return u.getString("clearCaption")},enumerable:!1,configurable:!0}),t.prototype.supportGoNextPageAutomatic=function(){return!0},Object.defineProperty(t.prototype,"ariaRole",{get:function(){return"radiogroup"},enumerable:!1,configurable:!0}),t}($n);R.addClass("radiogroup",[{name:"showClearButton:boolean",default:!1}],(function(){return new Ni("")}),"checkboxbase"),Gt.Instance.registerQuestion("radiogroup",(function(e){var t=new Ni(e);return t.choices=Gt.DefaultChoices,t}));var Mi=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Fi=function(e){function t(t){var n=e.call(this,t)||this;n.createItemValues("rateValues");var o=n;n.registerFunctionOnPropertyValueChanged("rateValues",(function(){o.fireCallback(o.rateValuesChangedCallback)})),n.onPropertyChanged.add((function(e,t){"rateMin"!=t.name&&"rateMax"!=t.name&&"rateStep"!=t.name||o.fireCallback(o.rateValuesChangedCallback)}));var r=n.createLocalizableString("minRateDescription",n,!0),i=n.createLocalizableString("maxRateDescription",n,!0);return r.onGetTextCallback=function(e){return e?e+" ":e},i.onGetTextCallback=function(e){return e?" "+e:e},n}return Mi(t,e),t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.fireCallback(this.rateValuesChangedCallback)},Object.defineProperty(t.prototype,"rateValues",{get:function(){return this.getPropertyValue("rateValues")},set:function(e){this.setPropertyValue("rateValues",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rateMin",{get:function(){return this.getPropertyValue("rateMin")},set:function(e){!this.isLoadingFromJson&&e>this.rateMax-this.rateStep&&(e=this.rateMax-this.rateStep),this.setPropertyValue("rateMin",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rateMax",{get:function(){return this.getPropertyValue("rateMax")},set:function(e){!this.isLoadingFromJson&&e<this.rateMin+this.rateStep&&(e=this.rateMin+this.rateStep),this.setPropertyValue("rateMax",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rateStep",{get:function(){return this.getPropertyValue("rateStep")},set:function(e){e<=0&&(e=1),!this.isLoadingFromJson&&e>this.rateMax-this.rateMin&&(e=this.rateMax-this.rateMin),this.setPropertyValue("rateStep",e)},enumerable:!1,configurable:!0}),t.prototype.getDisplayValueCore=function(e,t){var n=Fe.getTextOrHtmlByValue(this.visibleRateValues,t);return n||t},Object.defineProperty(t.prototype,"visibleRateValues",{get:function(){if(this.rateValues.length>0)return this.rateValues;for(var e=[],t=this.rateMin,n=this.rateStep;t<=this.rateMax&&e.length<a.ratingMaximumRateValueCount;)e.push(new Fe(t)),t=this.correctValue(t+n,n);return e},enumerable:!1,configurable:!0}),t.prototype.correctValue=function(e,t){if(!e)return e;if(Math.round(e)==e)return e;for(var n=0;Math.round(t)!=t;)t*=10,n++;return parseFloat(e.toFixed(n))},t.prototype.getType=function(){return"rating"},t.prototype.getFirstInputElementId=function(){return this.inputId+"_0"},t.prototype.supportGoNextPageAutomatic=function(){return!0},t.prototype.supportComment=function(){return!0},t.prototype.supportOther=function(){return!0},Object.defineProperty(t.prototype,"minRateDescription",{get:function(){return this.getLocalizableStringText("minRateDescription")},set:function(e){this.setLocalizableStringText("minRateDescription",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locMinRateDescription",{get:function(){return this.getLocalizableString("minRateDescription")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxRateDescription",{get:function(){return this.getLocalizableStringText("maxRateDescription")},set:function(e){this.setLocalizableStringText("maxRateDescription",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locMaxRateDescription",{get:function(){return this.getLocalizableString("maxRateDescription")},enumerable:!1,configurable:!0}),t.prototype.valueToData=function(e){if(this.rateValues.length>0){var t=Fe.getItemByValue(this.rateValues,e);return t?t.value:e}return isNaN(e)?e:parseFloat(e)},t.prototype.setValueFromClick=function(e){this.value===parseFloat(e)?this.clearValue():this.value=e},t.prototype.getItemClass=function(e){var t=this.value==e.value,n=!(this.isReadOnly&&!e.isEnabled||t||this.survey&&this.survey.isDesignMode);return(new ze).append(this.cssClasses.item).append(this.cssClasses.selected,this.value==e.value).append(this.cssClasses.itemDisabled,this.isReadOnly).append(this.cssClasses.itemHover,n).toString()},t}(Bt);R.addClass("rating",[{name:"hasComment:switch",layout:"row"},{name:"commentText",dependsOn:"hasComment",visibleIf:function(e){return e.hasComment},serializationProperty:"locCommentText",layout:"row"},{name:"rateValues:itemvalue[]",baseValue:function(){return u.getString("choices_Item")}},{name:"rateMin:number",default:1},{name:"rateMax:number",default:5},{name:"rateStep:number",default:1,minValue:.1},{name:"minRateDescription",alternativeName:"mininumRateDescription",serializationProperty:"locMinRateDescription"},{name:"maxRateDescription",alternativeName:"maximumRateDescription",serializationProperty:"locMaxRateDescription"}],(function(){return new Fi("")}),"question"),Gt.Instance.registerQuestion("rating",(function(e){return new Fi(e)}));var Bi=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),zi=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Hi=function(e){function t(t){var n=e.call(this,t)||this;return n.createLocalizableString("labelFalse",n,!0),n.createLocalizableString("labelTrue",n,!0),n.locLabelFalse.onGetTextCallback=function(e){return e||u.getString("booleanUncheckedLabel")},n.locLabelTrue.onGetTextCallback=function(e){return e||u.getString("booleanCheckedLabel")},n}return Bi(t,e),t.prototype.getType=function(){return"boolean"},t.prototype.isLayoutTypeSupported=function(e){return!0},t.prototype.supportGoNextPageAutomatic=function(){return"checkbox"!==this.renderAs},Object.defineProperty(t.prototype,"isIndeterminate",{get:function(){return this.isEmpty()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitle",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"checkedValue",{get:function(){return this.isEmpty()?null:this.value==this.getValueTrue()},set:function(e){this.isReadOnly||this.setCheckedValue(e)},enumerable:!1,configurable:!0}),t.prototype.setCheckedValue=function(e){this.isValueEmpty(e)?this.value=null:this.value=1==e?this.getValueTrue():this.getValueFalse()},Object.defineProperty(t.prototype,"defaultValue",{get:function(){return this.getPropertyValue("defaultValue")},set:function(e){!0===e&&(e="true"),!1===e&&(e="false"),this.setPropertyValue("defaultValue",e),this.updateValueWithDefaults()},enumerable:!1,configurable:!0}),t.prototype.getDefaultValue=function(){return"indeterminate"==this.defaultValue||void 0===this.defaultValue?null:"true"==this.defaultValue?this.getValueTrue():this.getValueFalse()},Object.defineProperty(t.prototype,"locTitle",{get:function(){return this.showTitle||this.isValueEmpty(this.locLabel.text)?this.getLocalizableString("title"):this.locLabel},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locDisplayLabel",{get:function(){return this.locLabel.text||this.showTitle?this.locLabel:this.locTitle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"labelTrue",{get:function(){return this.getLocalizableStringText("labelTrue")},set:function(e){this.setLocalizableStringText("labelTrue",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locLabelTrue",{get:function(){return this.getLocalizableString("labelTrue")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"labelFalse",{get:function(){return this.getLocalizableStringText("labelFalse")},set:function(e){this.setLocalizableStringText("labelFalse",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locLabelFalse",{get:function(){return this.getLocalizableString("labelFalse")},enumerable:!1,configurable:!0}),t.prototype.getValueTrue=function(){return!this.valueTrue||this.valueTrue},t.prototype.getValueFalse=function(){return!!this.valueFalse&&this.valueFalse},t.prototype.setDefaultValue=function(){"true"==this.defaultValue&&this.setCheckedValue(!0),"false"==this.defaultValue&&this.setCheckedValue(!1),"indeterminate"==this.defaultValue&&this.setCheckedValue(null)},t.prototype.getDisplayValueCore=function(e,t){return t==this.getValueTrue()?this.locLabelTrue.textOrHtml:this.locLabelFalse.textOrHtml},t.prototype.getItemCss=function(){return(new ze).append(this.cssClasses.item).append(this.cssClasses.itemDisabled,this.isReadOnly).append(this.cssClasses.itemChecked,!!this.checkedValue).append(this.cssClasses.itemIndeterminate,null===this.checkedValue).toString()},t.prototype.getLabelCss=function(e){return(new ze).append(this.cssClasses.label).append(this.cssClasses.disabledLabel,this.checkedValue===!e||this.isReadOnly).toString()},Object.defineProperty(t.prototype,"allowClick",{get:function(){return this.isIndeterminate&&!this.isInputReadOnly},enumerable:!1,configurable:!0}),t.prototype.onLabelClick=function(e,t){return this.allowClick&&(Nt(e),this.checkedValue=t),!0},t.prototype.onSwitchClickModel=function(e){if(!this.allowClick)return!0;Nt(e);var t=e.offsetX/e.target.offsetWidth>.5,n="rtl"==document.defaultView.getComputedStyle(e.target).direction;this.checkedValue=n?!t:t},zi([y({localizable:!0})],t.prototype,"label",void 0),zi([y()],t.prototype,"showTitle",void 0),zi([y()],t.prototype,"valueTrue",void 0),zi([y()],t.prototype,"valueFalse",void 0),t}(Bt);R.addClass("boolean",[{name:"label:text",serializationProperty:"locLabel"},{name:"labelTrue:text",serializationProperty:"locLabelTrue"},{name:"labelFalse:text",serializationProperty:"locLabelFalse"},"showTitle:boolean","valueTrue","valueFalse",{name:"renderAs",default:"default",visible:!1}],(function(){return new Hi("")}),"question"),Gt.Instance.registerQuestion("boolean",(function(e){return new Hi(e)}));var Qi=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),$i=function(e){function t(t,n,o){void 0===n&&(n=null),void 0===o&&(o="imageitemvalue");var r=e.call(this,t,n,o)||this;return r.typeName=o,r.createLocalizableString("imageLink",r,!1),r}return Qi(t,e),t.prototype.getType=function(){return this.typeName?this.typeName:"itemvalue"},Object.defineProperty(t.prototype,"imageLink",{get:function(){return this.getLocalizableStringText("imageLink")},set:function(e){this.setLocalizableStringText("imageLink",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locImageLink",{get:function(){return this.getLocalizableString("imageLink")},enumerable:!1,configurable:!0}),t.prototype.getLocale=function(){return this.locOwner?this.locOwner.getLocale():""},t.prototype.getMarkdownHtml=function(e,t){return this.locOwner?this.locOwner.getMarkdownHtml(e,t):e},t.prototype.getRenderer=function(e){return this.locOwner?this.locOwner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.locOwner?this.locOwner.getRendererContext(e):e},t.prototype.getProcessedText=function(e){return this.locOwner?this.locOwner.getProcessedText(e):e},t}(Fe),Ui=function(e){function t(t){var n=e.call(this,t)||this;return n.colCount=0,n}return Qi(t,e),t.prototype.getType=function(){return"imagepicker"},t.prototype.supportGoNextPageAutomatic=function(){return!0},Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.getItemValueType=function(){return"imageitemvalue"},Object.defineProperty(t.prototype,"isCompositeQuestion",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.supportOther=function(){return!1},t.prototype.supportNone=function(){return!1},Object.defineProperty(t.prototype,"multiSelect",{get:function(){return this.getPropertyValue("multiSelect")},set:function(e){this.setPropertyValue("multiSelect",e)},enumerable:!1,configurable:!0}),t.prototype.isItemSelected=function(e){var t=this.value;if(this.isValueEmpty(t))return!1;if(!this.multiSelect)return this.isTwoValueEquals(t,e.value);if(!Array.isArray(t))return!1;for(var n=0;n<t.length;n++)if(this.isTwoValueEquals(t[n],e.value))return!0;return!1},t.prototype.clearIncorrectValues=function(){if(this.multiSelect){var t=this.value;if(!t)return;if(!Array.isArray(t)||0==t.length)return void this.clearValue();for(var n=[],o=0;o<t.length;o++)this.hasUnknownValue(t[o],!0)||n.push(t[o]);if(n.length==t.length)return;0==n.length?this.clearValue():this.value=n}else e.prototype.clearIncorrectValues.call(this)},Object.defineProperty(t.prototype,"showLabel",{get:function(){return this.getPropertyValue("showLabel")},set:function(e){this.setPropertyValue("showLabel",e)},enumerable:!1,configurable:!0}),t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),!this.isDesignMode&&this.multiSelect&&(this.createNewArray("renderedValue"),this.createNewArray("value"))},t.prototype.getValueCore=function(){var t=e.prototype.getValueCore.call(this);return void 0!==t?t:this.multiSelect?[]:t},t.prototype.convertValToArrayForMultSelect=function(e){return this.multiSelect?this.isValueEmpty(e)||Array.isArray(e)?e:[e]:e},t.prototype.renderedValueFromDataCore=function(e){return this.convertValToArrayForMultSelect(e)},t.prototype.rendredValueToDataCore=function(e){return this.convertValToArrayForMultSelect(e)},Object.defineProperty(t.prototype,"imageHeight",{get:function(){return this.getPropertyValue("imageHeight")},set:function(e){this.setPropertyValue("imageHeight",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageWidth",{get:function(){return this.getPropertyValue("imageWidth")},set:function(e){this.setPropertyValue("imageWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageFit",{get:function(){return this.getPropertyValue("imageFit")},set:function(e){this.setPropertyValue("imageFit",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"contentMode",{get:function(){return this.getPropertyValue("contentMode")},set:function(e){this.setPropertyValue("contentMode",e),"video"===e&&(this.showLabel=!0)},enumerable:!1,configurable:!0}),t.prototype.convertDefaultValue=function(e){return e},Object.defineProperty(t.prototype,"hasColumns",{get:function(){return!1},enumerable:!1,configurable:!0}),t}($n);R.addClass("imageitemvalue",[],(function(e){return new $i(e)}),"itemvalue"),R.addProperty("imageitemvalue",{name:"imageLink",serializationProperty:"locImageLink"}),R.addClass("imagepicker",[{name:"hasOther",visible:!1},{name:"otherText",visible:!1},{name:"hasNone",visible:!1},{name:"noneText",visible:!1},{name:"optionsCaption",visible:!1},{name:"otherErrorText",visible:!1},{name:"storeOthersAsComment",visible:!1},{name:"contentMode",default:"image",choices:["image","video"]},{name:"imageFit",default:"contain",choices:["none","contain","cover","fill"]},{name:"imageHeight:number",default:150,minValue:0},{name:"imageWidth:number",default:200,minValue:0}],(function(){return new Ui("")}),"checkboxbase"),R.addProperty("imagepicker",{name:"showLabel:boolean",default:!1}),R.addProperty("imagepicker",{name:"colCount:number",default:0,choices:[0,1,2,3,4,5]}),R.addProperty("imagepicker",{name:"multiSelect:boolean",default:!1}),R.addProperty("imagepicker",{name:"choices:imageitemvalue[]"}),Gt.Instance.registerQuestion("imagepicker",(function(e){return new Ui(e)}));var Wi=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Gi=function(e){function t(t){var n=e.call(this,t)||this;return n.createLocalizableString("imageLink",n,!1),n.createLocalizableString("text",n,!1),n}return Wi(t,e),t.prototype.getType=function(){return"image"},Object.defineProperty(t.prototype,"isCompositeQuestion",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageLink",{get:function(){return this.getLocalizableStringText("imageLink")},set:function(e){this.setLocalizableStringText("imageLink",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locImageLink",{get:function(){return this.getLocalizableString("imageLink")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"text",{get:function(){return this.getLocalizableStringText("text")},set:function(e){this.setLocalizableStringText("text",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locText",{get:function(){return this.getLocalizableString("text")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageHeight",{get:function(){return this.getPropertyValue("imageHeight")},set:function(e){this.setPropertyValue("imageHeight",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageWidth",{get:function(){return this.getPropertyValue("imageWidth")},set:function(e){this.setPropertyValue("imageWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageFit",{get:function(){return this.getPropertyValue("imageFit")},set:function(e){this.setPropertyValue("imageFit",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"contentMode",{get:function(){return this.getPropertyValue("contentMode")},set:function(e){this.setPropertyValue("contentMode",e),"video"===e&&(this.showLabel=!0)},enumerable:!1,configurable:!0}),t}(co);
/*!
 * Signature Pad v2.3.2
 * https://github.com/szimek/signature_pad
 *
 * Copyright 2017 Szymon Nowak
 * Released under the MIT license
 *
 * The main idea and some parts of the code (e.g. drawing variable width Bézier curve) are taken from:
 * http://corner.squareup.com/2012/07/smoother-signatures.html
 *
 * Implementation of interpolation using cubic Bézier curves is taken from:
 * http://benknowscode.wordpress.com/2012/09/14/path-interpolation-using-cubic-bezier-and-control-point-estimation-in-javascript
 *
 * Algorithm for approximated length of a Bézier curve is taken from:
 * http://www.lemoda.net/maths/bezier-length/index.html
 *
 */
function Ji(e,t,n){this.x=e,this.y=t,this.time=n||(new Date).getTime()}function Ki(e,t,n,o){this.startPoint=e,this.control1=t,this.control2=n,this.endPoint=o}function Xi(e,t){var n=this,o=t||{};this.velocityFilterWeight=o.velocityFilterWeight||.7,this.minWidth=o.minWidth||.5,this.maxWidth=o.maxWidth||2.5,this.throttle="throttle"in o?o.throttle:16,this.minDistance="minDistance"in o?o.minDistance:5,this.throttle?this._strokeMoveUpdate=function(e,t,n){var o,r,i,a=null,s=0;n||(n={});var l=function(){s=!1===n.leading?0:Date.now(),a=null,i=e.apply(o,r),a||(o=r=null)};return function(){var u=Date.now();s||!1!==n.leading||(s=u);var c=t-(u-s);return o=this,r=arguments,c<=0||c>t?(a&&(clearTimeout(a),a=null),s=u,i=e.apply(o,r),a||(o=r=null)):a||!1===n.trailing||(a=setTimeout(l,c)),i}}(Xi.prototype._strokeUpdate,this.throttle):this._strokeMoveUpdate=Xi.prototype._strokeUpdate,this.dotSize=o.dotSize||function(){return(this.minWidth+this.maxWidth)/2},this.penColor=o.penColor||"black",this.backgroundColor=o.backgroundColor||"rgba(0,0,0,0)",this.onBegin=o.onBegin,this.onEnd=o.onEnd,this._canvas=e,this._ctx=e.getContext("2d"),this.clear(),this._handleMouseDown=function(e){1===e.which&&(n._mouseButtonDown=!0,n._strokeBegin(e))},this._handleMouseMove=function(e){n._mouseButtonDown&&n._strokeMoveUpdate(e)},this._handleMouseUp=function(e){1===e.which&&n._mouseButtonDown&&(n._mouseButtonDown=!1,n._strokeEnd(e))},this._handleTouchStart=function(e){if(1===e.targetTouches.length){var t=e.changedTouches[0];n._strokeBegin(t)}},this._handleTouchMove=function(e){e.preventDefault();var t=e.targetTouches[0];n._strokeMoveUpdate(t)},this._handleTouchEnd=function(e){e.target===n._canvas&&(e.preventDefault(),n._strokeEnd(e))},this.on()}R.addClass("image",[{name:"imageLink",serializationProperty:"locImageLink"},{name:"text",serializationProperty:"locText"},{name:"contentMode",default:"image",choices:["image","video"]},{name:"imageFit",default:"contain",choices:["none","contain","cover","fill"]},{name:"imageHeight:number",default:150,minValue:0},{name:"imageWidth:number",default:200,minValue:0}],(function(){return new Gi("")}),"nonvalue"),Gt.Instance.registerQuestion("image",(function(e){return new Gi(e)})),Ji.prototype.velocityFrom=function(e){return this.time!==e.time?this.distanceTo(e)/(this.time-e.time):1},Ji.prototype.distanceTo=function(e){return Math.sqrt(Math.pow(this.x-e.x,2)+Math.pow(this.y-e.y,2))},Ji.prototype.equals=function(e){return this.x===e.x&&this.y===e.y&&this.time===e.time},Ki.prototype.length=function(){for(var e=0,t=void 0,n=void 0,o=0;o<=10;o+=1){var r=o/10,i=this._point(r,this.startPoint.x,this.control1.x,this.control2.x,this.endPoint.x),a=this._point(r,this.startPoint.y,this.control1.y,this.control2.y,this.endPoint.y);if(o>0){var s=i-t,l=a-n;e+=Math.sqrt(s*s+l*l)}t=i,n=a}return e},Ki.prototype._point=function(e,t,n,o,r){return t*(1-e)*(1-e)*(1-e)+3*n*(1-e)*(1-e)*e+3*o*(1-e)*e*e+r*e*e*e},Xi.prototype.clear=function(){var e=this._ctx,t=this._canvas;e.fillStyle=this.backgroundColor,e.clearRect(0,0,t.width,t.height),e.fillRect(0,0,t.width,t.height),this._data=[],this._reset(),this._isEmpty=!0},Xi.prototype.fromDataURL=function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=new Image,r=n.ratio||window.devicePixelRatio||1,i=n.width||this._canvas.width/r,a=n.height||this._canvas.height/r;this._reset(),o.src=e,o.onload=function(){t._ctx.drawImage(o,0,0,i,a)},this._isEmpty=!1},Xi.prototype.toDataURL=function(e){var t;switch(e){case"image/svg+xml":return this._toSVG();default:for(var n=arguments.length,o=Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return(t=this._canvas).toDataURL.apply(t,[e].concat(o))}},Xi.prototype.on=function(){this._handleMouseEvents(),this._handleTouchEvents()},Xi.prototype.off=function(){this._canvas.removeEventListener("mousedown",this._handleMouseDown),this._canvas.removeEventListener("mousemove",this._handleMouseMove),document.removeEventListener("mouseup",this._handleMouseUp),this._canvas.removeEventListener("touchstart",this._handleTouchStart),this._canvas.removeEventListener("touchmove",this._handleTouchMove),this._canvas.removeEventListener("touchend",this._handleTouchEnd)},Xi.prototype.isEmpty=function(){return this._isEmpty},Xi.prototype._strokeBegin=function(e){this._data.push([]),this._reset(),this._strokeUpdate(e),"function"==typeof this.onBegin&&this.onBegin(e)},Xi.prototype._strokeUpdate=function(e){var t=e.clientX,n=e.clientY,o=this._createPoint(t,n),r=this._data[this._data.length-1],i=r&&r[r.length-1],a=i&&o.distanceTo(i)<this.minDistance;if(!i||!a){var s=this._addPoint(o),l=s.curve,u=s.widths;l&&u&&this._drawCurve(l,u.start,u.end),this._data[this._data.length-1].push({x:o.x,y:o.y,time:o.time,color:this.penColor})}},Xi.prototype._strokeEnd=function(e){var t=this.points.length>2,n=this.points[0];if(!t&&n&&this._drawDot(n),n){var o=this._data[this._data.length-1],r=o[o.length-1];n.equals(r)||o.push({x:n.x,y:n.y,time:n.time,color:this.penColor})}"function"==typeof this.onEnd&&this.onEnd(e)},Xi.prototype._handleMouseEvents=function(){this._mouseButtonDown=!1,this._canvas.addEventListener("mousedown",this._handleMouseDown),this._canvas.addEventListener("mousemove",this._handleMouseMove),document.addEventListener("mouseup",this._handleMouseUp)},Xi.prototype._handleTouchEvents=function(){this._canvas.style.msTouchAction="none",this._canvas.style.touchAction="none",this._canvas.addEventListener("touchstart",this._handleTouchStart),this._canvas.addEventListener("touchmove",this._handleTouchMove),this._canvas.addEventListener("touchend",this._handleTouchEnd)},Xi.prototype._reset=function(){this.points=[],this._lastVelocity=0,this._lastWidth=(this.minWidth+this.maxWidth)/2,this._ctx.fillStyle=this.penColor},Xi.prototype._createPoint=function(e,t,n){var o=this._canvas.getBoundingClientRect();return new Ji(e-o.left,t-o.top,n||(new Date).getTime())},Xi.prototype._addPoint=function(e){var t=this.points;if(t.push(e),t.length>2){3===t.length&&t.unshift(t[0]);var n=this._calculateCurveControlPoints(t[0],t[1],t[2]).c2,o=this._calculateCurveControlPoints(t[1],t[2],t[3]).c1,r=new Ki(t[1],n,o,t[2]),i=this._calculateCurveWidths(r);return t.shift(),{curve:r,widths:i}}return{}},Xi.prototype._calculateCurveControlPoints=function(e,t,n){var o=e.x-t.x,r=e.y-t.y,i=t.x-n.x,a=t.y-n.y,s=(e.x+t.x)/2,l=(e.y+t.y)/2,u=(t.x+n.x)/2,c=(t.y+n.y)/2,p=Math.sqrt(o*o+r*r),d=Math.sqrt(i*i+a*a),h=d/(p+d),f=u+(s-u)*h,m=c+(l-c)*h,g=t.x-f,y=t.y-m;return{c1:new Ji(s+g,l+y),c2:new Ji(u+g,c+y)}},Xi.prototype._calculateCurveWidths=function(e){var t=e.startPoint,n=e.endPoint,o={start:null,end:null},r=this.velocityFilterWeight*n.velocityFrom(t)+(1-this.velocityFilterWeight)*this._lastVelocity,i=this._strokeWidth(r);return o.start=this._lastWidth,o.end=i,this._lastVelocity=r,this._lastWidth=i,o},Xi.prototype._strokeWidth=function(e){return Math.max(this.maxWidth/(e+1),this.minWidth)},Xi.prototype._drawPoint=function(e,t,n){var o=this._ctx;o.moveTo(e,t),o.arc(e,t,n,0,2*Math.PI,!1),this._isEmpty=!1},Xi.prototype._drawCurve=function(e,t,n){var o=this._ctx,r=n-t,i=Math.floor(e.length());o.beginPath();for(var a=0;a<i;a+=1){var s=a/i,l=s*s,u=l*s,c=1-s,p=c*c,d=p*c,h=d*e.startPoint.x;h+=3*p*s*e.control1.x,h+=3*c*l*e.control2.x,h+=u*e.endPoint.x;var f=d*e.startPoint.y;f+=3*p*s*e.control1.y,f+=3*c*l*e.control2.y,f+=u*e.endPoint.y;var m=t+u*r;this._drawPoint(h,f,m)}o.closePath(),o.fill()},Xi.prototype._drawDot=function(e){var t=this._ctx,n="function"==typeof this.dotSize?this.dotSize():this.dotSize;t.beginPath(),this._drawPoint(e.x,e.y,n),t.closePath(),t.fill()},Xi.prototype._fromData=function(e,t,n){for(var o=0;o<e.length;o+=1){var r=e[o];if(r.length>1)for(var i=0;i<r.length;i+=1){var a=r[i],s=new Ji(a.x,a.y,a.time),l=a.color;if(0===i)this.penColor=l,this._reset(),this._addPoint(s);else if(i!==r.length-1){var u=this._addPoint(s),c=u.curve,p=u.widths;c&&p&&t(c,p,l)}}else this._reset(),n(r[0])}},Xi.prototype._toSVG=function(){var e=this,t=this._data,n=this._canvas,o=Math.max(window.devicePixelRatio||1,1),r=n.width/o,i=n.height/o,a=document.createElementNS("http://www.w3.org/2000/svg","svg");a.setAttributeNS(null,"width",n.width),a.setAttributeNS(null,"height",n.height),this._fromData(t,(function(e,t,n){var o=document.createElement("path");if(!(isNaN(e.control1.x)||isNaN(e.control1.y)||isNaN(e.control2.x)||isNaN(e.control2.y))){var r="M "+e.startPoint.x.toFixed(3)+","+e.startPoint.y.toFixed(3)+" C "+e.control1.x.toFixed(3)+","+e.control1.y.toFixed(3)+" "+e.control2.x.toFixed(3)+","+e.control2.y.toFixed(3)+" "+e.endPoint.x.toFixed(3)+","+e.endPoint.y.toFixed(3);o.setAttribute("d",r),o.setAttribute("stroke-width",(2.25*t.end).toFixed(3)),o.setAttribute("stroke",n),o.setAttribute("fill","none"),o.setAttribute("stroke-linecap","round"),a.appendChild(o)}}),(function(t){var n=document.createElement("circle"),o="function"==typeof e.dotSize?e.dotSize():e.dotSize;n.setAttribute("r",o),n.setAttribute("cx",t.x),n.setAttribute("cy",t.y),n.setAttribute("fill",t.color),a.appendChild(n)}));var s='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 '+r+" "+i+'" width="'+r+'" height="'+i+'">',l=a.innerHTML;if(void 0===l){var u=document.createElement("dummy"),c=a.childNodes;u.innerHTML="";for(var p=0;p<c.length;p+=1)u.appendChild(c[p].cloneNode(!0));l=u.innerHTML}return"data:image/svg+xml;base64,"+btoa(s+l+"</svg>")},Xi.prototype.fromData=function(e){var t=this;this.clear(),this._fromData(e,(function(e,n){return t._drawCurve(e,n.start,n.end)}),(function(e){return t._drawDot(e)})),this._data=e},Xi.prototype.toData=function(){return this._data};var Zi=Xi,Yi=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ea=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a};var ta=function(e){function t(t){return e.call(this,t)||this}return Yi(t,e),t.prototype.getCssRoot=function(t){return(new ze).append(e.prototype.getCssRoot.call(this,t)).append(t.small,"300"===this.width.toString()).toString()},t.prototype.updateValue=function(){if(this.signaturePad){var e=this.signaturePad.toDataURL(this.dataFormat);this.value=e}},t.prototype.getType=function(){return"signaturepad"},t.prototype.afterRenderQuestionElement=function(t){t&&this.initSignaturePad(t),e.prototype.afterRenderQuestionElement.call(this,t)},t.prototype.beforeDestroyQuestionElement=function(e){e&&this.destroySignaturePad(e)},t.prototype.initSignaturePad=function(e){var t=this,n=e.getElementsByTagName("canvas")[0],o=e.getElementsByTagName("button")[0],r=new Zi(n,{backgroundColor:"#ffffff"});this.isInputReadOnly&&r.off(),o.onclick=function(){t.value=void 0},this.readOnlyChangedCallback=function(){!t.allowClear||t.isInputReadOnly?(r.off(),o.style.display="none"):(r.on(),o.style.display="block")},r.penColor=this.penColor,r.backgroundColor=this.backgroundColor,r.onBegin=function(){t.isDrawingValue=!0,n.focus()},r.onEnd=function(){t.isDrawingValue=!1,t.updateValue()};var i=function(){var e=t.value;n.width=t.width||300,n.height=t.height||200,function(e){var t=e.getContext("2d"),n=(window.devicePixelRatio||1)/(t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1),o=e.width,r=e.height;e.width=o*n,e.height=r*n,e.style.width=o+"px",e.style.height=r+"px",t.scale(n,n)}(n),e?r.fromDataURL(e):r.clear()};i(),this.readOnlyChangedCallback(),this.signaturePad=r;var a=function(e,t){"width"!==t.name&&"height"!==t.name||i(),"value"===t.name&&i()};this.onPropertyChanged.add(a),this.signaturePad.propertyChangedHandler=a},t.prototype.destroySignaturePad=function(e){this.signaturePad&&(this.onPropertyChanged.remove(this.signaturePad.propertyChangedHandler),this.signaturePad.off()),this.readOnlyChangedCallback=null,this.signaturePad=null},Object.defineProperty(t.prototype,"width",{get:function(){return this.getPropertyValue("width")},set:function(e){this.setPropertyValue("width",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.getPropertyValue("height")},set:function(e){this.setPropertyValue("height",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowClear",{get:function(){return this.getPropertyValue("allowClear")},set:function(e){this.setPropertyValue("allowClear",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"penColor",{get:function(){return this.getPropertyValue("penColor")},set:function(e){this.setPropertyValue("penColor",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"backgroundColor",{get:function(){return this.getPropertyValue("backgroundColor")},set:function(e){this.setPropertyValue("backgroundColor",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clearButtonCaption",{get:function(){return u.getString("clearCaption")},enumerable:!1,configurable:!0}),t.prototype.needShowPlaceholder=function(){return!this.isDrawingValue&&this.isEmpty()},Object.defineProperty(t.prototype,"placeHolderText",{get:function(){return u.getString("signaturePlaceHolder")},enumerable:!1,configurable:!0}),ea([y({defaultValue:!1})],t.prototype,"isDrawingValue",void 0),ea([y({defaultValue:""})],t.prototype,"dataFormat",void 0),t}(Bt);R.addClass("signaturepad",[{name:"width:number",category:"general",default:300},{name:"height:number",category:"general",default:200},{name:"allowClear:boolean",category:"general",default:!0},{name:"penColor:color",category:"general",default:"#1ab394"},{name:"backgroundColor:color",category:"general",default:"#ffffff"},{name:"dataFormat",category:"general",default:"",choices:[{value:"",text:"PNG"},{value:"image/jpeg",text:"JPEG"},{value:"image/svg+xml",text:"SVG"}]},{name:"defaultValue",visible:!1},{name:"correctAnswer",visible:!1}],(function(){return new ta("")}),"question"),Gt.Instance.registerQuestion("signaturepad",(function(e){return new ta(e)}));var na=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),oa=function(e,t,n){if(n||2===arguments.length)for(var o,r=0,i=t.length;r<i;r++)!o&&r in t||(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))},ra=function(e){function t(t,n,o){var r=e.call(this,o)||this;return r.data=t,r.panelItem=n,r.variableName=o,r}return na(t,e),Object.defineProperty(t.prototype,"survey",{get:function(){return this.panelItem.getSurvey()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panel",{get:function(){return this.panelItem.panel},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelIndex",{get:function(){return this.data?this.data.getItemIndex(this.panelItem):-1},enumerable:!1,configurable:!0}),t.prototype.getValues=function(){return this.panelItem.getAllValues()},t.prototype.getQuestionByName=function(t){var n=e.prototype.getQuestionByName.call(this,t);if(n)return n;var o=this.panelIndex;return o>-1?this.data.getSharedQuestionFromArray(t,o):null},t.prototype.onCustomProcessText=function(e){if(e.name==ia.IndexVariableName){var n=this.panelIndex;if(n>-1)return e.isExists=!0,e.value=n+1,!0}if(0==e.name.indexOf(ia.ParentItemVariableName+".")){var o=this.data;if(o&&o.parentQuestion&&o.parent){var r=o.parent.data,i=new t(o.parentQuestion,r,ia.ItemVariableName),a=e.name.replace(ia.ParentItemVariableName,ia.ItemVariableName),s=i.processValue(a,e.returnDisplayValue);e.isExists=s.isExists,e.value=s.value}return!0}return!1},t}(Wt),ia=function(){function e(t,n){this.data=t,this.panelValue=n,this.textPreProcessor=new ra(t,this,e.ItemVariableName),this.setSurveyImpl()}return Object.defineProperty(e.prototype,"panel",{get:function(){return this.panelValue},enumerable:!1,configurable:!0}),e.prototype.setSurveyImpl=function(){this.panel.setSurveyImpl(this)},e.prototype.getValue=function(e){return this.getAllValues()[e]},e.prototype.setValue=function(e,t){this.data.setPanelItemData(this,e,t)},e.prototype.getVariable=function(e){},e.prototype.setVariable=function(e,t){},e.prototype.getComment=function(e){var t=this.getValue(e+a.commentPrefix);return t||""},e.prototype.setComment=function(e,t,n){this.setValue(e+a.commentPrefix,t)},e.prototype.getAllValues=function(){return this.data.getPanelItemData(this)},e.prototype.getFilteredValues=function(){var t={},n=this.data&&this.data.getRootData()?this.data.getRootData().getFilteredValues():{};for(var o in n)t[o]=n[o];return t[e.ItemVariableName]=this.getAllValues(),this.data&&(t[e.IndexVariableName.toLowerCase()]=this.data.getItemIndex(this)),t},e.prototype.getFilteredProperties=function(){return this.data&&this.data.getRootData()?this.data.getRootData().getFilteredProperties():{survey:this.getSurvey()}},e.prototype.getSurveyData=function(){return this},e.prototype.getSurvey=function(){return this.data?this.data.getSurvey():null},e.prototype.getTextProcessor=function(){return this.textPreProcessor},e.ItemVariableName="panel",e.ParentItemVariableName="parentPanel",e.IndexVariableName="panelIndex",e}(),aa=function(){function e(e){this.data=e}return e.prototype.getSurveyData=function(){return null},e.prototype.getSurvey=function(){return this.data.getSurvey()},e.prototype.getTextProcessor=function(){return null},e}(),sa=function(e){function t(t){var n=e.call(this,t)||this;n.loadingPanelCount=0,n.currentIndexValue=-1,n.isAddingNewPanels=!1,n.createNewArray("panels"),n.templateValue=n.createAndSetupNewPanelObject(),n.template.renderWidth="100%",n.template.selectedElementInDesign=n;var o=n;return n.template.addElementCallback=function(e){o.addOnPropertyChangedCallback(e),o.rebuildPanels()},n.template.removeElementCallback=function(e){o.rebuildPanels()},n.createLocalizableString("confirmDeleteText",n),n.createLocalizableString("keyDuplicationError",n),n.createLocalizableString("panelAddText",n),n.createLocalizableString("panelRemoveText",n),n.createLocalizableString("panelPrevText",n),n.createLocalizableString("panelNextText",n),n.registerFunctionOnPropertyValueChanged("panelsState",(function(){o.setPanelsState()})),n}return na(t,e),Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.setSurveyImpl=function(t){e.prototype.setSurveyImpl.call(this,t),this.setTemplatePanelSurveyImpl(),this.setPanelsSurveyImpl()},t.prototype.assignOnPropertyChangedToTemplate=function(){for(var e=this.template.elements,t=0;t<e.length;t++)this.addOnPropertyChangedCallback(e[t])},t.prototype.addOnPropertyChangedCallback=function(e){var t=this;e.onPropertyChanged.add((function(e,n){t.onTemplateElementPropertyChanged(e,n)})),e.isPanel&&(e.addElementCallback=function(e){t.addOnPropertyChangedCallback(e)})},t.prototype.onTemplateElementPropertyChanged=function(e,t){if(!this.isLoadingFromJson&&!this.isDesignMode&&0!=this.panels.length&&R.findProperty(e.getType(),t.name))for(var n=this.panels,o=0;o<n.length;o++){var r=n[o].getQuestionByName(e.name);r&&r[t.name]!==t.newValue&&(r[t.name]=t.newValue)}},t.prototype.getType=function(){return"paneldynamic"},Object.defineProperty(t.prototype,"isCompositeQuestion",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.clearOnDeletingContainer=function(){this.panels.forEach((function(e){e.clearOnDeletingContainer()}))},Object.defineProperty(t.prototype,"isAllowTitleLeft",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.removeElement=function(e){return this.template.removeElement(e)},Object.defineProperty(t.prototype,"template",{get:function(){return this.templateValue},enumerable:!1,configurable:!0}),t.prototype.getPanel=function(){return this.template},Object.defineProperty(t.prototype,"templateElements",{get:function(){return this.template.elements},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"templateTitle",{get:function(){return this.template.title},set:function(e){this.template.title=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTemplateTitle",{get:function(){return this.template.locTitle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"templateDescription",{get:function(){return this.template.description},set:function(e){this.template.description=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTemplateDescription",{get:function(){return this.template.locDescription},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"items",{get:function(){for(var e=[],t=0;t<this.panels.length;t++)e.push(this.panels[t].data);return e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panels",{get:function(){return this.getPropertyValue("panels")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currentIndex",{get:function(){return this.isRenderModeList?-1:this.isDesignMode?0:(this.currentIndexValue<0&&this.panelCount>0&&(this.currentIndexValue=0),this.currentIndexValue>=this.panelCount&&(this.currentIndexValue=this.panelCount-1),this.currentIndexValue)},set:function(e){this.currentIndexValue!==e&&(e>=this.panelCount&&(e=this.panelCount-1),this.currentIndexValue=e,this.fireCallback(this.currentIndexChangedCallback))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currentPanel",{get:function(){var e=this.currentIndex;return e<0||e>=this.panels.length?null:this.panels[e]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"confirmDelete",{get:function(){return this.getPropertyValue("confirmDelete",!1)},set:function(e){this.setPropertyValue("confirmDelete",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"keyName",{get:function(){return this.getPropertyValue("keyName","")},set:function(e){this.setPropertyValue("keyName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"confirmDeleteText",{get:function(){return this.getLocalizableStringText("confirmDeleteText",u.getString("confirmDelete"))},set:function(e){this.setLocalizableStringText("confirmDeleteText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locConfirmDeleteText",{get:function(){return this.getLocalizableString("confirmDeleteText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"keyDuplicationError",{get:function(){return this.getLocalizableStringText("keyDuplicationError",u.getString("keyDuplicationError"))},set:function(e){this.setLocalizableStringText("keyDuplicationError",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locKeyDuplicationError",{get:function(){return this.getLocalizableString("keyDuplicationError")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelPrevText",{get:function(){return this.getLocalizableStringText("panelPrevText",u.getString("pagePrevText"))},set:function(e){this.setLocalizableStringText("panelPrevText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPanelPrevText",{get:function(){return this.getLocalizableString("panelPrevText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelNextText",{get:function(){return this.getLocalizableStringText("panelNextText",u.getString("pageNextText"))},set:function(e){this.setLocalizableStringText("panelNextText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPanelNextText",{get:function(){return this.getLocalizableString("panelNextText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelAddText",{get:function(){return this.getLocalizableStringText("panelAddText",u.getString("addPanel"))},set:function(e){this.setLocalizableStringText("panelAddText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPanelAddText",{get:function(){return this.getLocalizableString("panelAddText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelRemoveText",{get:function(){return this.getLocalizableStringText("panelRemoveText",u.getString("removePanel"))},set:function(e){this.setLocalizableStringText("panelRemoveText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPanelRemoveText",{get:function(){return this.getLocalizableString("panelRemoveText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isProgressTopShowing",{get:function(){return"progressTop"===this.renderMode||"progressTopBottom"===this.renderMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isProgressBottomShowing",{get:function(){return"progressBottom"===this.renderMode||"progressTopBottom"===this.renderMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPrevButtonShowing",{get:function(){return this.currentIndex>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNextButtonShowing",{get:function(){return this.currentIndex>=0&&this.currentIndex<this.panelCount-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRangeShowing",{get:function(){return this.showRangeInProgress&&this.currentIndex>=0&&this.panelCount>1},enumerable:!1,configurable:!0}),t.prototype.getElementsInDesign=function(e){return void 0===e&&(e=!1),e?[this.template]:this.templateElements},t.prototype.prepareValueForPanelCreating=function(){this.addingNewPanelsValue=this.value,this.isAddingNewPanels=!0,this.isNewPanelsValueChanged=!1},t.prototype.setValueAfterPanelsCreating=function(){this.isAddingNewPanels=!1,this.isNewPanelsValueChanged&&(this.isValueChangingInternally=!0,this.value=this.addingNewPanelsValue,this.isValueChangingInternally=!1)},t.prototype.getValueCore=function(){return this.isAddingNewPanels?this.addingNewPanelsValue:e.prototype.getValueCore.call(this)},t.prototype.setValueCore=function(t){this.isAddingNewPanels?(this.isNewPanelsValueChanged=!0,this.addingNewPanelsValue=t):e.prototype.setValueCore.call(this,t)},Object.defineProperty(t.prototype,"panelCount",{get:function(){return this.isLoadingFromJson||this.isDesignMode?this.loadingPanelCount:this.panels.length},set:function(e){if(!(e<0))if(this.isLoadingFromJson||this.isDesignMode)this.loadingPanelCount=e;else if(e!=this.panels.length&&!this.isDesignMode){this.updateBindings("panelCount",e),this.prepareValueForPanelCreating();for(var t=this.panelCount;t<e;t++){var n=this.createNewPanel();this.panels.push(n),"list"==this.renderMode&&"default"!=this.panelsState&&("expand"===this.panelsState?n.expand():n.title&&n.collapse())}e<this.panelCount&&this.panels.splice(e,this.panelCount-e),this.setValueAfterPanelsCreating(),this.setValueBasedOnPanelCount(),this.reRunCondition(),this.fireCallback(this.panelCountChangedCallback)}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelsState",{get:function(){return this.getPropertyValue("panelsState")},set:function(e){this.setPropertyValue("panelsState",e)},enumerable:!1,configurable:!0}),t.prototype.setTemplatePanelSurveyImpl=function(){this.template.setSurveyImpl(this.isDesignMode?this.surveyImpl:new aa(this))},t.prototype.setPanelsSurveyImpl=function(){for(var e=0;e<this.panels.length;e++){var t=this.panels[e];t!=this.template&&t.setSurveyImpl(t.data)}},t.prototype.setPanelsState=function(){if(!this.isDesignMode&&"list"==this.renderMode&&this.templateTitle)for(var e=0;e<this.panels.length;e++){var t=this.panelsState;"firstExpanded"===t&&(t=0===e?"expanded":"collapsed"),this.panels[e].state=t}},t.prototype.setValueBasedOnPanelCount=function(){var e=this.value;if(e&&Array.isArray(e)||(e=[]),e.length!=this.panelCount){for(var t=e.length;t<this.panelCount;t++)e.push({});e.length>this.panelCount&&e.splice(this.panelCount,e.length-this.panelCount),this.isValueChangingInternally=!0,this.value=e,this.isValueChangingInternally=!1}},Object.defineProperty(t.prototype,"minPanelCount",{get:function(){return this.getPropertyValue("minPanelCount")},set:function(e){e<0&&(e=0),e!=this.minPanelCount&&(this.setPropertyValue("minPanelCount",e),e>this.maxPanelCount&&(this.maxPanelCount=e),this.panelCount<e&&(this.panelCount=e))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxPanelCount",{get:function(){return this.getPropertyValue("maxPanelCount")},set:function(e){e<=0||(e>a.panelMaximumPanelCount&&(e=a.panelMaximumPanelCount),e!=this.maxPanelCount&&(this.setPropertyValue("maxPanelCount",e),e<this.minPanelCount&&(this.minPanelCount=e),this.panelCount>e&&(this.panelCount=e)))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowAddPanel",{get:function(){return this.getPropertyValue("allowAddPanel")},set:function(e){this.setPropertyValue("allowAddPanel",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowRemovePanel",{get:function(){return this.getPropertyValue("allowRemovePanel")},set:function(e){this.setPropertyValue("allowRemovePanel",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"templateTitleLocation",{get:function(){return this.getPropertyValue("templateTitleLocation")},set:function(e){this.setPropertyValue("templateTitleLocation",e.toLowerCase())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showQuestionNumbers",{get:function(){return this.getPropertyValue("showQuestionNumbers")},set:function(e){this.setPropertyValue("showQuestionNumbers",e),!this.isLoadingFromJson&&this.survey&&this.survey.questionVisibilityChanged(this,this.visible)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelRemoveButtonLocation",{get:function(){return this.getPropertyValue("panelRemoveButtonLocation")},set:function(e){this.setPropertyValue("panelRemoveButtonLocation",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showRangeInProgress",{get:function(){return this.getPropertyValue("showRangeInProgress")},set:function(e){this.setPropertyValue("showRangeInProgress",e),this.fireCallback(this.currentIndexChangedCallback)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderMode",{get:function(){return this.getPropertyValue("renderMode")},set:function(e){this.setPropertyValue("renderMode",e),this.fireCallback(this.renderModeChangedCallback)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRenderModeList",{get:function(){return"list"===this.renderMode},enumerable:!1,configurable:!0}),t.prototype.setVisibleIndex=function(t){if(!this.isVisible)return 0;for(var n="onSurvey"==this.showQuestionNumbers?t:0,o=0;o<this.panels.length;o++){var r=this.setPanelVisibleIndex(this.panels[o],n,"off"!=this.showQuestionNumbers);"onSurvey"==this.showQuestionNumbers&&(n+=r)}return e.prototype.setVisibleIndex.call(this,"onSurvey"!=this.showQuestionNumbers?t:-1),"onSurvey"!=this.showQuestionNumbers?1:n-t},t.prototype.setPanelVisibleIndex=function(e,t,n){return n?e.setVisibleIndex(t):(e.setVisibleIndex(-1),0)},Object.defineProperty(t.prototype,"canAddPanel",{get:function(){return(!this.survey||!this.survey.isDesignMode)&&(this.allowAddPanel&&!this.isReadOnly&&this.panelCount<this.maxPanelCount)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canRemovePanel",{get:function(){return(!this.survey||!this.survey.isDesignMode)&&(this.allowRemovePanel&&!this.isReadOnly&&this.panelCount>this.minPanelCount)},enumerable:!1,configurable:!0}),t.prototype.rebuildPanels=function(){var e;if(!this.isLoadingFromJson){this.prepareValueForPanelCreating();var t=[];if(this.isDesignMode)new ia(this,this.template),t.push(this.template);else for(var n=0;n<this.panelCount;n++)t.push(this.createNewPanel());(e=this.panels).splice.apply(e,oa([0,this.panels.length],t,!1)),this.setValueAfterPanelsCreating(),this.setPanelsState(),this.reRunCondition(),this.fireCallback(this.panelCountChangedCallback)}},Object.defineProperty(t.prototype,"defaultPanelValue",{get:function(){return this.getPropertyValue("defaultPanelValue")},set:function(e){this.setPropertyValue("defaultPanelValue",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultValueFromLastPanel",{get:function(){return this.getPropertyValue("defaultValueFromLastPanel",!1)},set:function(e){this.setPropertyValue("defaultValueFromLastPanel",e)},enumerable:!1,configurable:!0}),t.prototype.isDefaultValueEmpty=function(){return e.prototype.isDefaultValueEmpty.call(this)&&this.isValueEmpty(this.defaultPanelValue)},t.prototype.setDefaultValue=function(){if(!this.isValueEmpty(this.defaultPanelValue)&&this.isValueEmpty(this.defaultValue)){if(this.isEmpty()&&0!=this.panelCount){for(var t=[],n=0;n<this.panelCount;n++)t.push(this.defaultPanelValue);this.value=t}}else e.prototype.setDefaultValue.call(this)},t.prototype.isEmpty=function(){var e=this.value;if(!e||!Array.isArray(e))return!0;for(var t=0;t<e.length;t++)if(!this.isRowEmpty(e[t]))return!1;return!0},t.prototype.getProgressInfo=function(){return ft.getProgressInfoByElements(this.panels,this.isRequired)},t.prototype.isRowEmpty=function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0},t.prototype.addPanelUI=function(){if(!this.canAddPanel)return null;var e=this.addPanel();return"list"===this.renderMode&&"default"!==this.panelsState&&e.expand(),e},t.prototype.addPanel=function(){this.panelCount++,this.isRenderModeList||(this.currentIndex=this.panelCount-1);var e=this.value,t=!1;return this.isValueEmpty(this.defaultPanelValue)||e&&Array.isArray(e)&&e.length==this.panelCount&&(t=!0,this.copyValue(e[e.length-1],this.defaultPanelValue)),this.defaultValueFromLastPanel&&e&&Array.isArray(e)&&e.length>1&&e.length==this.panelCount&&(t=!0,this.copyValue(e[e.length-1],e[e.length-2])),t&&(this.value=e),this.survey&&this.survey.dynamicPanelAdded(this),this.panels[this.panelCount-1]},t.prototype.copyValue=function(e,t){for(var n in t)e[n]=t[n]},t.prototype.removePanelUI=function(e){this.canRemovePanel&&(this.confirmDelete&&!kt(this.confirmDeleteText)||this.removePanel(e))},t.prototype.goToNextPanel=function(){"list"!==this.renderMode&&this.currentPanel.hasErrors()||this.currentIndex++},t.prototype.goToPrevPanel=function(){this.currentIndex--},t.prototype.removePanel=function(e){var t=this.getPanelIndex(e);if(!(t<0||t>=this.panelCount)){var n=this.panels[t];this.panels.splice(t,1),this.updateBindings("panelCount",this.panelCount),!(e=this.value)||!Array.isArray(e)||t>=e.length||(this.isValueChangingInternally=!0,e.splice(t,1),this.value=e,this.fireCallback(this.panelCountChangedCallback),this.survey&&this.survey.dynamicPanelRemoved(this,t,n),this.isValueChangingInternally=!1)}},t.prototype.getPanelIndex=function(e){if(s.isNumber(e))return e;for(var t=this.items,n=0;n<this.panels.length;n++)if(this.panels[n]===e||t[n]===e)return n;return-1},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this);for(var t=this.panels,n=0;n<t.length;n++)t[n].locStrsChanged()},t.prototype.clearIncorrectValues=function(){for(var e=0;e<this.panels.length;e++)this.clearIncorrectValuesInPanel(e)},t.prototype.clearErrors=function(){e.prototype.clearErrors.call(this);for(var t=0;t<this.panels.length;t++)this.panels[t].clearErrors()},t.prototype.getQuestionFromArray=function(e,t){return t>=this.panelCount?null:this.panels[t].getQuestionByName(e)},t.prototype.clearIncorrectValuesInPanel=function(e){var t=this.panels[e];t.clearIncorrectValues();var n=this.value,o=n&&e<n.length?n[e]:null;if(o){var r=!1;for(var i in o){if(!this.getSharedQuestionFromArray(i,e))t.getQuestionByName(i)||this.iscorrectValueWithPostPrefix(t,i,a.commentPrefix)||this.iscorrectValueWithPostPrefix(t,i,a.matrixTotalValuePostFix)||(delete o[i],r=!0)}r&&(n[e]=o,this.value=n)}},t.prototype.iscorrectValueWithPostPrefix=function(e,t,n){return t.indexOf(n)===t.length-n.length&&!!e.getQuestionByName(t.substr(0,t.indexOf(n)))},t.prototype.getSharedQuestionFromArray=function(e,t){return this.survey&&this.valueName?this.survey.getQuestionByValueNameFromArray(this.valueName,e,t):null},t.prototype.addConditionObjectsByContext=function(e,t){for(var n=!!t&&this.template.questions.indexOf(t)>-1,o=this.getValueName()+"[0].",r=this.processedTitle+"[0].",i=new Array,a=this.template.questions,s=0;s<a.length;s++)a[s].addConditionObjectsByContext(i,t);for(s=0;s<i.length;s++)e.push({name:o+i[s].name,text:r+i[s].text,question:i[s].question});if(n)for(s=0;s<i.length;s++)i[s].question!=t&&e.push({name:"panel."+i[s].name,text:"panel."+i[s].text,question:i[s].question})},t.prototype.getConditionJson=function(t,n){if(void 0===t&&(t=null),void 0===n&&(n=null),!n)return e.prototype.getConditionJson.call(this,t,n);var o=n,r=n.indexOf(".");r>-1&&(o=n.substr(0,r),n=n.substr(r+1));var i=this.template.getQuestionByName(o);return i?i.getConditionJson(t,n):null},t.prototype.onReadOnlyChanged=function(){var t=this.isReadOnly;this.template.readOnly=t;for(var n=0;n<this.panels.length;n++)this.panels[n].readOnly=t;e.prototype.onReadOnlyChanged.call(this)},t.prototype.onSurveyLoad=function(){this.template.readOnly=this.isReadOnly,this.template.onSurveyLoad(),this.loadingPanelCount>0&&(this.panelCount=this.loadingPanelCount),this.isDesignMode&&this.rebuildPanels(),this.setPanelsSurveyImpl(),this.setPanelsState(),this.assignOnPropertyChangedToTemplate(),e.prototype.onSurveyLoad.call(this)},t.prototype.onFirstRendering=function(){this.template.onFirstRendering();for(var t=0;t<this.panels.length;t++)this.panels[t].onFirstRendering();e.prototype.onFirstRendering.call(this)},t.prototype.runCondition=function(t,n){e.prototype.runCondition.call(this,t,n),this.runPanelsCondition(t,n)},t.prototype.reRunCondition=function(){this.data&&this.runCondition(this.getDataFilteredValues(),this.getDataFilteredProperties())},t.prototype.runPanelsCondition=function(e,t){var n={};e&&e instanceof Object&&(n=JSON.parse(JSON.stringify(e)));for(var o=0;o<this.panels.length;o++){var r=this.getPanelItemData(this.panels[o].data),i=s.createCopy(n);i[ia.ItemVariableName.toLowerCase()]=r,i[ia.IndexVariableName.toLowerCase()]=o,this.panels[o].runCondition(i,t)}},t.prototype.onAnyValueChanged=function(t){e.prototype.onAnyValueChanged.call(this,t);for(var n=0;n<this.panels.length;n++)this.panels[n].onAnyValueChanged(t),this.panels[n].onAnyValueChanged(ia.ItemVariableName)},t.prototype.hasKeysDuplicated=function(e,t){void 0===t&&(t=null);for(var n,o=[],r=0;r<this.panels.length;r++)n=this.isValueDuplicated(this.panels[r],o,t,e)||n;return n},t.prototype.updatePanelsContainsErrors=function(){for(var e=this.changingValueQuestion.parent;e;)e.updateContainsErrors(),e=e.parent;this.updateContainsErrors()},t.prototype.hasErrors=function(t,n){if(void 0===t&&(t=!0),void 0===n&&(n=null),this.isValueChangingInternally)return!1;var o=!1;if(this.changingValueQuestion){o=this.changingValueQuestion.hasErrors(t,n);return o=this.hasKeysDuplicated(t,n)||o,this.updatePanelsContainsErrors(),o}var r=this.hasErrorInPanels(t,n);return e.prototype.hasErrors.call(this,t)||r},t.prototype.getContainsErrors=function(){var t=e.prototype.getContainsErrors.call(this);if(t)return t;for(var n=this.panels,o=0;o<n.length;o++)if(n[o].containsErrors)return!0;return!1},t.prototype.getIsAnswered=function(){if(!e.prototype.getIsAnswered.call(this))return!1;for(var t=this.panels,n=0;n<t.length;n++){var o=[];t[n].addQuestionsToList(o,!0);for(var r=0;r<o.length;r++)if(!o[r].isAnswered)return!1}return!0},t.prototype.clearValueIfInvisible=function(){for(var t=0;t<this.panels.length;t++)for(var n=this.panels[t].questions,o=0;o<n.length;o++)n[o].clearValueIfInvisible();e.prototype.clearValueIfInvisible.call(this)},t.prototype.getIsRunningValidators=function(){if(e.prototype.getIsRunningValidators.call(this))return!0;for(var t=0;t<this.panels.length;t++)for(var n=this.panels[t].questions,o=0;o<n.length;o++)if(n[o].isRunningValidators)return!0;return!1},t.prototype.getAllErrors=function(){for(var t=e.prototype.getAllErrors.call(this),n=0;n<this.panels.length;n++)for(var o=this.panels[n].questions,r=0;r<o.length;r++){var i=o[r].getAllErrors();i&&i.length>0&&(t=t.concat(i))}return t},t.prototype.getDisplayValueCore=function(e,t){var n=this.getUnbindValue(t);if(!n||!Array.isArray(n))return n;for(var o=0;o<this.panels.length&&o<n.length;o++){var r=n[o];r&&(n[o]=this.getPanelDisplayValue(o,r,e))}return n},t.prototype.getPanelDisplayValue=function(e,t,n){if(!t)return t;for(var o=this.panels[e],r=Object.keys(t),i=0;i<r.length;i++){var a=r[i],s=o.getQuestionByValueName(a);if(s||(s=this.getSharedQuestionFromArray(a,e)),s){var l=s.getDisplayValue(n,t[a]);t[a]=l,n&&s.title&&s.title!==a&&(t[s.title]=l,delete t[a])}}return t},t.prototype.hasErrorInPanels=function(e,t){for(var n=!1,o=this.panels,r=[],i=0;i<o.length;i++)this.setOnCompleteAsyncInPanel(o[i]);for(i=0;i<o.length;i++){var a=o[i].hasErrors(e,!!t&&t.focuseOnFirstError,t);a=this.isValueDuplicated(o[i],r,t)||a,this.isRenderModeList||!a||n||(this.currentIndex=i),n=a||n}return n},t.prototype.setOnCompleteAsyncInPanel=function(e){for(var t=this,n=e.questions,o=0;o<n.length;o++)n[o].onCompletedAsyncValidators=function(e){t.raiseOnCompletedAsyncValidators()}},t.prototype.isValueDuplicated=function(e,t,n,o){if(!this.keyName)return!1;var r=e.getQuestionByValueName(this.keyName);if(!r||r.isEmpty())return!1;var i=r.value;this.changingValueQuestion&&r!=this.changingValueQuestion&&r.hasErrors(o,n);for(var a=0;a<t.length;a++)if(i==t[a])return r.addError(new Y(this.keyDuplicationError,this)),n&&!n.firstErrorQuestion&&(n.firstErrorQuestion=r),!0;return t.push(i),!1},t.prototype.createNewPanel=function(){var e=this.createAndSetupNewPanelObject(),t=this.template.toJSON();(new E).toObject(t,e),e.renderWidth="100%",e.updateCustomWidgets(),new ia(this,e),e.onFirstRendering();for(var n=e.questions,o=0;o<n.length;o++)n[o].setParentQuestion(this);return e.locStrsChanged(),e},t.prototype.createAndSetupNewPanelObject=function(){var e=this.createNewPanelObject();e.isInteractiveDesignElement=!1;var t=this;return e.onGetQuestionTitleLocation=function(){return t.getTemplateQuestionTitleLocation()},e},t.prototype.getTemplateQuestionTitleLocation=function(){return"default"!=this.templateTitleLocation?this.templateTitleLocation:this.getTitleLocationCore()},t.prototype.createNewPanelObject=function(){return R.createClass("panel")},t.prototype.setPanelCountBasedOnValue=function(){if(!this.isValueChangingInternally&&!this.isDesignMode){var e=this.value,t=e&&Array.isArray(e)?e.length:0;0==t&&this.loadingPanelCount>0&&(t=this.loadingPanelCount),this.panelCount=t}},t.prototype.setQuestionValue=function(t){e.prototype.setQuestionValue.call(this,t,!1),this.setPanelCountBasedOnValue();for(var n=0;n<this.panels.length;n++)this.panelUpdateValueFromSurvey(this.panels[n]);this.updateIsAnswered()},t.prototype.onSurveyValueChanged=function(t){e.prototype.onSurveyValueChanged.call(this,t);for(var n=0;n<this.panels.length;n++)this.panelSurveyValueChanged(this.panels[n]);void 0===t&&this.setValueBasedOnPanelCount()},t.prototype.panelUpdateValueFromSurvey=function(e){for(var t=e.questions,n=this.getPanelItemData(e.data),o=0;o<t.length;o++){var r=t[o];r.updateValueFromSurvey(n[r.getValueName()]),r.updateCommentFromSurvey(n[r.getValueName()+a.commentPrefix])}},t.prototype.panelSurveyValueChanged=function(e){for(var t=e.questions,n=this.getPanelItemData(e.data),o=0;o<t.length;o++){var r=t[o];r.onSurveyValueChanged(n[r.getValueName()])}},t.prototype.onSetData=function(){e.prototype.onSetData.call(this),this.isDesignMode&&(this.setTemplatePanelSurveyImpl(),this.rebuildPanels())},t.prototype.getItemIndex=function(e){var t=this.items.indexOf(e);return t>-1?t:this.items.length},t.prototype.getPanelItemData=function(e){var t=this.items,n=t.indexOf(e),o=this.value;return n<0&&Array.isArray(o)&&o.length>t.length&&(n=t.length),n<0||!o||!Array.isArray(o)||o.length<=n?{}:o[n]},t.prototype.setPanelItemData=function(e,t,n){if(!(this.isSetPanelItemData&&this.isSetPanelItemData.indexOf(t)>-1)){this.isSetPanelItemData||(this.isSetPanelItemData=[]),this.isSetPanelItemData.push(t);var o=this.items;(r=o.indexOf(e))<0&&(r=o.length);var r,i=this.getUnbindValue(this.value);if(i&&Array.isArray(i)||(i=[]),i.length<=r)for(var a=i.length;a<=r;a++)i.push({});if(i[r]||(i[r]={}),this.isValueEmpty(n)?delete i[r][t]:i[r][t]=n,r>=0&&r<this.panels.length&&(this.changingValueQuestion=this.panels[r].getQuestionByValueName(t)),this.value=i,this.changingValueQuestion=null,this.survey){var s={question:this,panel:e.panel,name:t,itemIndex:r,itemValue:i[r],value:n};this.survey.dynamicPanelItemValueChanged(this,s)}(r=this.isSetPanelItemData.indexOf(t))>-1&&this.isSetPanelItemData.splice(r,1)}},t.prototype.getRootData=function(){return this.data},t.prototype.getPlainData=function(t){void 0===t&&(t={includeEmpty:!0});var n=e.prototype.getPlainData.call(this,t);return n&&(n.isNode=!0,n.data=this.panels.map((function(e,n){var o={name:e.name||n,title:e.title||"Panel",value:e.getValue(),displayValue:e.getValue(),getString:function(e){return"object"==typeof e?JSON.stringify(e):e},isNode:!0,data:e.questions.map((function(e){return e.getPlainData(t)})).filter((function(e){return!!e}))};return(t.calculations||[]).forEach((function(t){o[t.propertyName]=e[t.propertyName]})),o}))),n},t.prototype.updateElementCss=function(t){e.prototype.updateElementCss.call(this,t);for(var n=0;n<this.panels.length;n++){this.panels[n].updateElementCss(t)}},Object.defineProperty(t.prototype,"progressText",{get:function(){var e=this.panelCount;return u.getString("panelDynamicProgressText").format(this.currentIndex+1,e)},enumerable:!1,configurable:!0}),t.prototype.getPanelWrapperCss=function(){return(new ze).append(this.cssClasses.panelWrapper).append(this.cssClasses.panelWrapperInRow,"right"===this.panelRemoveButtonLocation).toString()},t.prototype.getPanelRemoveButtonCss=function(){return(new ze).append(this.cssClasses.button).append(this.cssClasses.buttonRemove).append(this.cssClasses.buttonRemoveRight,"right"===this.panelRemoveButtonLocation).toString()},t.prototype.getAddButtonCss=function(){return(new ze).append(this.cssClasses.button).append(this.cssClasses.buttonAdd).append(this.cssClasses.buttonAdd+"--list-mode","list"===this.renderMode).toString()},t.prototype.getPrevButtonCss=function(){return(new ze).append(this.cssClasses.buttonPrev).append(this.cssClasses.buttonPrev+"--disabled",!this.isPrevButtonShowing).toString()},t.prototype.getNextButtonCss=function(){return(new ze).append(this.cssClasses.buttonNext).append(this.cssClasses.buttonNext+"--disabled",!this.isNextButtonShowing).toString()},t}(Bt);R.addClass("paneldynamic",[{name:"templateElements",alternativeName:"questions",visible:!1,isLightSerializable:!1},{name:"templateTitle:text",serializationProperty:"locTemplateTitle"},{name:"templateDescription:text",serializationProperty:"locTemplateDescription"},{name:"allowAddPanel:boolean",default:!0},{name:"allowRemovePanel:boolean",default:!0},{name:"panelCount:number",isBindable:!0,default:0,choices:[0,1,2,3,4,5,6,7,8,9,10]},{name:"minPanelCount:number",default:0,minValue:0},{name:"maxPanelCount:number",default:a.panelMaximumPanelCount},"defaultPanelValue:panelvalue","defaultValueFromLastPanel:boolean",{name:"panelsState",default:"default",choices:["default","collapsed","expanded","firstExpanded"]},{name:"keyName"},{name:"keyDuplicationError",serializationProperty:"locKeyDuplicationError"},{name:"confirmDelete:boolean"},{name:"confirmDeleteText",serializationProperty:"locConfirmDeleteText"},{name:"panelAddText",serializationProperty:"locPanelAddText"},{name:"panelRemoveText",serializationProperty:"locPanelRemoveText"},{name:"panelPrevText",serializationProperty:"locPanelPrevText"},{name:"panelNextText",serializationProperty:"locPanelNextText"},{name:"showQuestionNumbers",default:"off",choices:["off","onPanel","onSurvey"]},{name:"showRangeInProgress:boolean",default:!0},{name:"renderMode",default:"list",choices:["list","progressTop","progressBottom","progressTopBottom"]},{name:"templateTitleLocation",default:"default",choices:["default","top","bottom","left"]},{name:"panelRemoveButtonLocation",default:"bottom",choices:["bottom","right"]}],(function(){return new sa("")}),"question"),Gt.Instance.registerQuestion("paneldynamic",(function(e){return new sa(e)}));var la=function(){function e(){}return e.getProgressTextInBarCss=function(e){return(new ze).append(e.progressText).append(e.progressTextInBar).toString()},e.getProgressTextUnderBarCss=function(e){return(new ze).append(e.progressText).append(e.progressTextUnderBar).toString()},e}(),ua=function(){function e(e){this.survey=e}return e.prototype.isListElementClickable=function(e){return!(this.survey.onServerValidateQuestions&&!this.survey.onServerValidateQuestions.isEmpty&&"onComplete"!==this.survey.checkErrorsMode)||e<=this.survey.currentPageNo+1},e.prototype.getListElementCss=function(e){if(!(e>=this.survey.visiblePages.length))return(new ze).append(this.survey.css.progressButtonsListElementPassed,this.survey.visiblePages[e].passed).append(this.survey.css.progressButtonsListElementCurrent,this.survey.currentPageNo===e).append(this.survey.css.progressButtonsListElementNonClickable,!this.isListElementClickable(e)).toString()},e.prototype.getScrollButtonCss=function(e,t){return(new ze).append(this.survey.css.progressButtonsImageButtonLeft,t).append(this.survey.css.progressButtonsImageButtonRight,!t).append(this.survey.css.progressButtonsImageButtonHidden,!e).toString()},e.prototype.clickListElement=function(e){if(!this.survey.isDesignMode)if(e<this.survey.currentPageNo)this.survey.currentPageNo=e;else if(e>this.survey.currentPageNo)for(var t=this.survey.currentPageNo;t<e&&this.survey.nextPage();t++);},e}(),ca=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),pa=function(e){function t(){var t=e.call(this)||this;t.usedNames=[];var n=t;return t.registerFunctionOnPropertiesValueChanged(["operator","value","name"],(function(){n.oldPropertiesChanged()})),t.registerFunctionOnPropertyValueChanged("expression",(function(){n.onExpressionChanged()})),t}return ca(t,e),Object.defineProperty(t,"operators",{get:function(){return null!=t.operatorsValue||(t.operatorsValue={empty:function(e,t){return!e},notempty:function(e,t){return!!e},equal:function(e,t){return e==t},notequal:function(e,t){return e!=t},contains:function(e,t){return e&&e.indexOf&&e.indexOf(t)>-1},notcontains:function(e,t){return!e||!e.indexOf||-1==e.indexOf(t)},greater:function(e,t){return e>t},less:function(e,t){return e<t},greaterorequal:function(e,t){return e>=t},lessorequal:function(e,t){return e<=t}}),t.operatorsValue},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"triggerbase"},t.prototype.toString=function(){var e=this.getType().replace("trigger",""),t=this.expression?this.expression:this.buildExpression();return t&&(e+=", "+t),e},Object.defineProperty(t.prototype,"operator",{get:function(){return this.getPropertyValue("operator","equal")},set:function(e){e&&(e=e.toLowerCase(),t.operators[e]&&this.setPropertyValue("operator",e))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.getPropertyValue("value",null)},set:function(e){this.setPropertyValue("value",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.getPropertyValue("name","")},set:function(e){this.setPropertyValue("name",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"expression",{get:function(){return this.getPropertyValue("expression","")},set:function(e){this.setPropertyValue("expression",e)},enumerable:!1,configurable:!0}),t.prototype.checkExpression=function(e,t,n){void 0===n&&(n=null),this.isCheckRequired(e)&&this.conditionRunner&&this.perform(t,n)},t.prototype.check=function(e){t.operators[this.operator](e,this.value)?this.onSuccess({},null):this.onFailure()},t.prototype.perform=function(e,t){var n=this;this.conditionRunner.onRunComplete=function(o){n.triggerResult(o,e,t)},this.conditionRunner.run(e,t)},t.prototype.triggerResult=function(e,t,n){e?this.onSuccess(t,n):this.onFailure()},t.prototype.onSuccess=function(e,t){},t.prototype.onFailure=function(){},t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),this.oldPropertiesChanged()},t.prototype.oldPropertiesChanged=function(){this.onExpressionChanged()},t.prototype.onExpressionChanged=function(){this.usedNames=[],this.hasFunction=!1,this.conditionRunner=null},t.prototype.buildExpression=function(){return this.name?this.isValueEmpty(this.value)&&this.isRequireValue?"":"{"+this.name+"} "+this.operator+" "+ve.toOperandString(this.value):""},t.prototype.isCheckRequired=function(e){if(!e)return!1;if(this.buildUsedNames(),!0===this.hasFunction)return!0;for(var t=new te,n=0;n<this.usedNames.length;n++){var o=this.usedNames[n];if(e.hasOwnProperty(o))return!0;var r=t.getFirstName(o);if(e.hasOwnProperty(r)){if(o==r)return!0;var i=e[r];if(null!=i){if(!i.hasOwnProperty("oldValue")||!i.hasOwnProperty("newValue"))return!0;var a={};a[r]=i.oldValue;var s=t.getValue(o,a);a[r]=i.newValue;var l=t.getValue(o,a);return!this.isTwoValueEquals(s,l)}}}return!1},t.prototype.buildUsedNames=function(){if(!this.conditionRunner){var e=this.expression;e||(e=this.buildExpression()),e&&(this.conditionRunner=new Te(e),this.hasFunction=this.conditionRunner.hasFunction(),this.usedNames=this.conditionRunner.getVariables())}},Object.defineProperty(t.prototype,"isRequireValue",{get:function(){return"empty"!==this.operator&&"notempty"!=this.operator},enumerable:!1,configurable:!0}),t.operatorsValue=null,t}(L),da=function(e){function t(){var t=e.call(this)||this;return t.ownerValue=null,t}return ca(t,e),Object.defineProperty(t.prototype,"owner",{get:function(){return this.ownerValue},enumerable:!1,configurable:!0}),t.prototype.setOwner=function(e){this.ownerValue=e},t.prototype.getSurvey=function(e){return void 0===e&&(e=!1),this.owner&&this.owner.getSurvey?this.owner.getSurvey():null},Object.defineProperty(t.prototype,"isOnNextPage",{get:function(){return!1},enumerable:!1,configurable:!0}),t}(pa),ha=function(e){function t(){var t=e.call(this)||this;return t.pages=[],t.questions=[],t}return ca(t,e),t.prototype.getType=function(){return"visibletrigger"},t.prototype.onSuccess=function(e,t){this.onTrigger(this.onItemSuccess)},t.prototype.onFailure=function(){this.onTrigger(this.onItemFailure)},t.prototype.onTrigger=function(e){if(this.owner)for(var t=this.owner.getObjects(this.pages,this.questions),n=0;n<t.length;n++)e(t[n])},t.prototype.onItemSuccess=function(e){e.visible=!0},t.prototype.onItemFailure=function(e){e.visible=!1},t}(da),fa=function(e){function t(){return e.call(this)||this}return ca(t,e),t.prototype.getType=function(){return"completetrigger"},Object.defineProperty(t.prototype,"isOnNextPage",{get:function(){return!a.executeCompleteTriggerOnValueChanged},enumerable:!1,configurable:!0}),t.prototype.onSuccess=function(e,t){this.owner&&this.owner.setCompleted()},t}(da),ma=function(e){function t(){return e.call(this)||this}return ca(t,e),t.prototype.getType=function(){return"setvaluetrigger"},t.prototype.onPropertyValueChanged=function(t,n,o){if(e.prototype.onPropertyValueChanged.call(this,t,n,o),"setToName"===t){var r=this.getSurvey();r&&!r.isLoadingFromJson&&r.isDesignMode&&(this.setValue=void 0)}},Object.defineProperty(t.prototype,"setToName",{get:function(){return this.getPropertyValue("setToName","")},set:function(e){this.setPropertyValue("setToName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"setValue",{get:function(){return this.getPropertyValue("setValue")},set:function(e){this.setPropertyValue("setValue",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVariable",{get:function(){return this.getPropertyValue("isVariable",!1)},set:function(e){this.setPropertyValue("isVariable",e)},enumerable:!1,configurable:!0}),t.prototype.onSuccess=function(e,t){this.setToName&&this.owner&&this.owner.setTriggerValue(this.setToName,this.setValue,this.isVariable)},t}(da),ga=function(e){function t(){return e.call(this)||this}return ca(t,e),t.prototype.getType=function(){return"skiptrigger"},Object.defineProperty(t.prototype,"gotoName",{get:function(){return this.getPropertyValue("gotoName","")},set:function(e){this.setPropertyValue("gotoName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isOnNextPage",{get:function(){return!a.executeSkipTriggerOnValueChanged},enumerable:!1,configurable:!0}),t.prototype.onSuccess=function(e,t){this.gotoName&&this.owner&&this.owner.focusQuestion(this.gotoName)},t}(da),ya=function(e){function t(){return e.call(this)||this}return ca(t,e),t.prototype.getType=function(){return"runexpressiontrigger"},Object.defineProperty(t.prototype,"setToName",{get:function(){return this.getPropertyValue("setToName","")},set:function(e){this.setPropertyValue("setToName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"runExpression",{get:function(){return this.getPropertyValue("runExpression","")},set:function(e){this.setPropertyValue("runExpression",e)},enumerable:!1,configurable:!0}),t.prototype.onSuccess=function(e,t){var n=this;if(this.owner&&this.runExpression){var o=new ke(this.runExpression);o.canRun&&(o.onRunComplete=function(e){n.onCompleteRunExpression(e)},o.run(e,t))}},t.prototype.onCompleteRunExpression=function(e){this.setToName&&void 0!==e&&this.owner.setTriggerValue(this.setToName,e,!1)},t}(da),va=function(e){function t(){return e.call(this)||this}return ca(t,e),Object.defineProperty(t.prototype,"setToName",{get:function(){return this.getPropertyValue("setToName","")},set:function(e){this.setPropertyValue("setToName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fromName",{get:function(){return this.getPropertyValue("fromName","")},set:function(e){this.setPropertyValue("fromName",e)},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"copyvaluetrigger"},t.prototype.onSuccess=function(e,t){this.setToName&&this.owner&&this.owner.copyTriggerValue(this.setToName,this.fromName)},t}(da);R.addClass("trigger",[{name:"operator",default:"equal",visible:!1},{name:"value",visible:!1},"expression:condition"]),R.addClass("surveytrigger",[{name:"name",visible:!1}],null,"trigger"),R.addClass("visibletrigger",["pages:pages","questions:questions"],(function(){return new ha}),"surveytrigger"),R.addClass("completetrigger",[],(function(){return new fa}),"surveytrigger"),R.addClass("setvaluetrigger",[{name:"!setToName:questionvalue"},{name:"setValue:triggervalue",dependsOn:"setToName",visibleIf:function(e){return!!e&&!!e.setToName}},{name:"isVariable:boolean",visible:!1}],(function(){return new ma}),"surveytrigger"),R.addClass("copyvaluetrigger",[{name:"!fromName:questionvalue"},{name:"!setToName:questionvalue"}],(function(){return new va}),"surveytrigger"),R.addClass("skiptrigger",[{name:"!gotoName:question"}],(function(){return new ga}),"surveytrigger"),R.addClass("runexpressiontrigger",[{name:"setToName:questionvalue"},"runExpression:expression"],(function(){return new ya}),"surveytrigger");var ba=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),xa=function(e){function t(t,n){void 0===n&&(n=null);var o=e.call(this)||this;o.closeOnCompleteTimeout=0,o.surveyValue=n||o.createSurvey(t),o.surveyValue.showTitle=!1,"undefined"!=typeof document&&(o.windowElement=document.createElement("div"));var r=o;return o.survey.onComplete.add((function(e,t){r.onSurveyComplete()})),o}return ba(t,e),t.prototype.getType=function(){return"window"},Object.defineProperty(t.prototype,"survey",{get:function(){return this.surveyValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowing",{get:function(){return this.getPropertyValue("isShowing",!1)},set:function(e){this.isShowing!=e&&(this.setPropertyValue("isShowing",e),this.showingChangedCallback&&this.showingChangedCallback())},enumerable:!1,configurable:!0}),t.prototype.show=function(){this.isShowing=!0},t.prototype.hide=function(){this.isShowing=!1},Object.defineProperty(t.prototype,"isExpanded",{get:function(){return this.getPropertyValue("isExpanded",!1)},set:function(e){this.setPropertyValue("isExpanded",e),!this.isLoadingFromJson&&this.expandedChangedCallback&&this.expandedChangedCallback()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.survey.title},set:function(e){this.survey.title=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTitle",{get:function(){return this.survey.locTitle},enumerable:!1,configurable:!0}),t.prototype.expand=function(){this.expandcollapse(!0)},t.prototype.collapse=function(){this.expandcollapse(!1)},t.prototype.createSurvey=function(e){return new zn(e)},t.prototype.expandcollapse=function(e){this.isExpanded=e},t.prototype.onSurveyComplete=function(){if(!(this.closeOnCompleteTimeout<0))if(0==this.closeOnCompleteTimeout)this.closeWindowOnComplete();else{var e=this,t=null;t="undefined"!=typeof window?window.setInterval((function(){e.closeWindowOnComplete(),"undefined"!=typeof window&&window.clearInterval(t)}),1e3*this.closeOnCompleteTimeout):0}},t.prototype.closeWindowOnComplete=function(){this.closeWindowOnCompleteCallback&&this.closeWindowOnCompleteCallback()},t.surveyElementName="windowSurveyJS",t}(L),Ca=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),wa=function(){function e(e,t){this.name=e,this.json=t;var n=this;R.addClass(e,[],(function(e){return Pa.Instance.createQuestion(e?e.name:"",n)}),"question"),this.onInit()}return e.prototype.onInit=function(){this.json.onInit&&this.json.onInit()},e.prototype.onCreated=function(e){this.json.onCreated&&this.json.onCreated(e)},e.prototype.onLoaded=function(e){this.json.onLoaded&&this.json.onLoaded(e)},e.prototype.onAfterRender=function(e,t){this.json.onAfterRender&&this.json.onAfterRender(e,t)},e.prototype.onAfterRenderContentElement=function(e,t,n){this.json.onAfterRenderContentElement&&this.json.onAfterRenderContentElement(e,t,n)},e.prototype.onPropertyChanged=function(e,t,n){this.json.onPropertyChanged&&this.json.onPropertyChanged(e,t,n)},e.prototype.onValueChanged=function(e,t,n){this.json.onValueChanged&&this.json.onValueChanged(e,t,n)},e.prototype.onItemValuePropertyChanged=function(e,t,n,o,r){this.json.onItemValuePropertyChanged&&this.json.onItemValuePropertyChanged(e,{obj:t,propertyName:n,name:o,newValue:r})},e.prototype.getDisplayValue=function(e,t,n){return this.json.getDisplayValue?this.json.getDisplayValue(n):n.getDisplayValue(e,t)},Object.defineProperty(e.prototype,"isComposite",{get:function(){return!!this.json.elementsJSON||!!this.json.createElements},enumerable:!1,configurable:!0}),e}(),Pa=function(){function e(){this.customQuestionValues=[]}return e.prototype.add=function(e){if(e){var t=e.name;if(!t)throw"Attribute name is missed";if(t=t.toLowerCase(),this.getCustomQuestionByName(t))throw"There is already registered custom question with name '"+t+"'";if(R.findClass(t))throw"There is already class with name '"+t+"'";var n=new wa(t,e);this.onAddingJson&&this.onAddingJson(t,n.isComposite),this.customQuestionValues.push(n)}},Object.defineProperty(e.prototype,"items",{get:function(){return this.customQuestionValues},enumerable:!1,configurable:!0}),e.prototype.getCustomQuestionByName=function(e){for(var t=0;t<this.customQuestionValues.length;t++)if(this.customQuestionValues[t].name==e)return this.customQuestionValues[t];return null},e.prototype.clear=function(){for(var e=0;e<this.customQuestionValues.length;e++)R.removeClass(this.customQuestionValues[e].name);this.customQuestionValues=[]},e.prototype.createQuestion=function(e,t){return t.isComposite?this.createCompositeModel(e,t):this.createCustomModel(e,t)},e.prototype.createCompositeModel=function(e,t){return this.onCreateComposite?this.onCreateComposite(e,t):new ka(e,t)},e.prototype.createCustomModel=function(e,t){return this.onCreateCustom?this.onCreateCustom(e,t):new Va(e,t)},e.Instance=new e,e}(),_a=function(e){function t(t,n){var o=e.call(this,t)||this;return o.customQuestion=n,C.createProperties(o),ft.CreateDisabledDesignElements=!0,o.createWrapper(),ft.CreateDisabledDesignElements=!1,o.customQuestion&&o.customQuestion.onCreated(o),o}return Ca(t,e),t.prototype.getType=function(){return this.customQuestion?this.customQuestion.name:"custom"},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.getElement()&&this.getElement().locStrsChanged()},t.prototype.createWrapper=function(){},t.prototype.onPropertyValueChanged=function(t,n,o){e.prototype.onPropertyValueChanged.call(this,t,n,o),this.customQuestion&&!this.isLoadingFromJson&&this.customQuestion.onPropertyChanged(this,t,o)},t.prototype.itemValuePropertyChanged=function(t,n,o,r){e.prototype.itemValuePropertyChanged.call(this,t,n,o,r),this.customQuestion&&!this.isLoadingFromJson&&this.customQuestion.onItemValuePropertyChanged(this,t,t.ownerPropertyName,n,r)},t.prototype.onFirstRendering=function(){var t=this.getElement();t&&t.onFirstRendering(),e.prototype.onFirstRendering.call(this)},t.prototype.initElement=function(e){e&&(e.setSurveyImpl(this),e.disableDesignActions=!0)},t.prototype.setSurveyImpl=function(t){e.prototype.setSurveyImpl.call(this,t),this.initElement(this.getElement())},t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.getElement()&&(this.getElement().onSurveyLoad(),this.customQuestion.onLoaded(this))},t.prototype.afterRenderQuestionElement=function(e){},t.prototype.afterRender=function(t){e.prototype.afterRender.call(this,t),this.customQuestion&&this.customQuestion.onAfterRender(this,t)},t.prototype.setQuestionValue=function(t,n){void 0===n&&(n=!0),e.prototype.setQuestionValue.call(this,t,n),this.updateElementCss()},t.prototype.setNewValue=function(t){e.prototype.setNewValue.call(this,t),this.updateElementCss()},t.prototype.getSurveyData=function(){return this},t.prototype.getTextProcessor=function(){return this.textProcessor},t.prototype.getValue=function(e){return this.value},t.prototype.setValue=function(e,t,n,o){if(this.data){var r=this.convertDataName(e);this.data.setValue(r,this.convertDataValue(e,t),n,o),this.updateIsAnswered(),this.updateElementCss(),this.customQuestion&&this.customQuestion.onValueChanged(this,e,t)}},t.prototype.convertDataName=function(e){return this.getValueName()},t.prototype.convertDataValue=function(e,t){return t},t.prototype.getVariable=function(e){return this.data?this.data.getVariable(e):null},t.prototype.setVariable=function(e,t){this.data&&this.data.setVariable(e,t)},t.prototype.getComment=function(e){return this.data?this.data.getComment(this.getValueName()):""},t.prototype.setComment=function(e,t,n){this.data&&this.data.setComment(this.getValueName(),t,n)},t.prototype.getAllValues=function(){return this.data?this.data.getAllValues():{}},t.prototype.getFilteredValues=function(){return this.data?this.data.getFilteredValues():{}},t.prototype.getFilteredProperties=function(){return this.data?this.data.getFilteredProperties():{}},t.prototype.addElement=function(e,t){},t.prototype.removeElement=function(e){return!1},t.prototype.getQuestionTitleLocation=function(){return"left"},t.prototype.getQuestionStartIndex=function(){return this.getStartIndex()},t.prototype.getChildrenLayoutType=function(){return"row"},t.prototype.elementWidthChanged=function(e){},Object.defineProperty(t.prototype,"elements",{get:function(){return[]},enumerable:!1,configurable:!0}),t.prototype.indexOf=function(e){return-1},t.prototype.ensureRowsVisibility=function(){},t.prototype.getContentDisplayValueCore=function(t,n,o){return o?this.customQuestion.getDisplayValue(t,n,o):e.prototype.getDisplayValueCore.call(this,t,n)},t}(Bt),Va=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ca(t,e),t.prototype.getTemplate=function(){return"custom"},t.prototype.createWrapper=function(){this.questionWrapper=this.createQuestion()},t.prototype.getElement=function(){return this.contentQuestion},t.prototype.onAnyValueChanged=function(t){e.prototype.onAnyValueChanged.call(this,t),this.contentQuestion&&this.contentQuestion.onAnyValueChanged(t)},t.prototype.hasErrors=function(t,n){if(void 0===t&&(t=!0),void 0===n&&(n=null),!this.contentQuestion)return!1;var o=this.contentQuestion.hasErrors(t,n);this.errors=[];for(var r=0;r<this.contentQuestion.errors.length;r++)this.errors.push(this.contentQuestion.errors[r]);return o||(o=e.prototype.hasErrors.call(this,t,n)),this.updateElementCss(),o},t.prototype.focus=function(t){void 0===t&&(t=!1),this.contentQuestion?this.contentQuestion.focus(t):e.prototype.focus.call(this,t)},Object.defineProperty(t.prototype,"contentQuestion",{get:function(){return this.questionWrapper},enumerable:!1,configurable:!0}),t.prototype.createQuestion=function(){var e=this.customQuestion.json,t=null;if(e.questionJSON){var n=e.questionJSON.type;if(!n||!R.findClass(n))throw"type attribute in questionJSON is empty or incorrect";t=R.createClass(n),this.initElement(t),t.fromJSON(e.questionJSON)}else e.createQuestion&&(t=e.createQuestion(),this.initElement(t));return t&&!t.name&&(t.name="question"),t},t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.contentQuestion&&this.isEmpty()&&!this.contentQuestion.isEmpty()&&(this.value=this.contentQuestion.value)},t.prototype.runCondition=function(t,n){e.prototype.runCondition.call(this,t,n),this.contentQuestion&&this.contentQuestion.runCondition(t,n)},t.prototype.convertDataName=function(t){if(!this.contentQuestion)return e.prototype.convertDataName.call(this,t);var n=t.replace(this.contentQuestion.getValueName(),this.getValueName());return 0==n.indexOf(this.getValueName())?n:e.prototype.convertDataName.call(this,t)},t.prototype.convertDataValue=function(t,n){return this.convertDataName(t)==e.prototype.convertDataName.call(this,t)?this.contentQuestion.value:n},t.prototype.setQuestionValue=function(t,n){void 0===n&&(n=!0),e.prototype.setQuestionValue.call(this,t,n),this.contentQuestion&&!this.isTwoValueEquals(this.contentQuestion.value,t)&&(this.contentQuestion.value=this.getUnbindValue(t))},t.prototype.onSurveyValueChanged=function(t){e.prototype.onSurveyValueChanged.call(this,t),this.contentQuestion&&this.contentQuestion.onSurveyValueChanged(t)},t.prototype.getValueCore=function(){return this.contentQuestion?this.contentQuestion.value:e.prototype.getValueCore.call(this)},t.prototype.initElement=function(t){var n=this;e.prototype.initElement.call(this,t),t&&(t.parent=this,t.afterRenderQuestionCallback=function(e,t){n.customQuestion&&n.customQuestion.onAfterRenderContentElement(n,e,t)})},t.prototype.updateElementCssCore=function(t){this.contentQuestion&&(t=this.contentQuestion.cssClasses),e.prototype.updateElementCssCore.call(this,t)},t.prototype.getDisplayValueCore=function(t,n){return e.prototype.getContentDisplayValueCore.call(this,t,n,this.contentQuestion)},t}(_a),Ta=function(e){function t(t,n){var o=e.call(this,n)||this;return o.composite=t,o.variableName=n,o}return Ca(t,e),Object.defineProperty(t.prototype,"survey",{get:function(){return this.composite.survey},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panel",{get:function(){return this.composite.contentPanel},enumerable:!1,configurable:!0}),t}(Wt),ka=function(e){function t(n,o){var r=e.call(this,n,o)||this;return r.customQuestion=o,r.settingNewValue=!1,r.textProcessing=new Ta(r,t.ItemVariableName),r}return Ca(t,e),t.prototype.createWrapper=function(){this.panelWrapper=this.createPanel()},t.prototype.getTemplate=function(){return"composite"},t.prototype.getCssType=function(){return"composite"},t.prototype.getElement=function(){return this.contentPanel},Object.defineProperty(t.prototype,"contentPanel",{get:function(){return this.panelWrapper},enumerable:!1,configurable:!0}),t.prototype.hasErrors=function(t,n){void 0===t&&(t=!0),void 0===n&&(n=null);var o=e.prototype.hasErrors.call(this,t,n);return this.contentPanel&&this.contentPanel.hasErrors(t,!1,n)||o},t.prototype.updateElementCss=function(t){e.prototype.updateElementCss.call(this,t),this.contentPanel&&this.contentPanel.updateElementCss(t)},t.prototype.getTextProcessor=function(){return this.textProcessing},t.prototype.clearValueIfInvisible=function(){e.prototype.clearValueIfInvisible.call(this);for(var t=this.contentPanel.questions,n=0;n<t.length;n++)t[n].clearValueIfInvisible()},t.prototype.onAnyValueChanged=function(t){e.prototype.onAnyValueChanged.call(this,t);for(var n=this.contentPanel.questions,o=0;o<n.length;o++)n[o].onAnyValueChanged(t)},t.prototype.createPanel=function(){var e=R.createClass("panel");e.showQuestionNumbers="off",e.renderWidth="100%";var t=this.customQuestion.json;return t.elementsJSON&&e.fromJSON({elements:t.elementsJSON}),t.createElements&&t.createElements(e,this),this.initElement(e),e.readOnly=this.isReadOnly,this.setAfterRenderCallbacks(e),e},t.prototype.onReadOnlyChanged=function(){this.contentPanel&&(this.contentPanel.readOnly=this.isReadOnly),e.prototype.onReadOnlyChanged.call(this)},t.prototype.onSurveyLoad=function(){if(this.contentPanel&&(this.contentPanel.readOnly=this.isReadOnly,this.setIsContentElement(this.contentPanel)),e.prototype.onSurveyLoad.call(this),this.contentPanel){var t=this.contentPanel.getValue();s.isValueEmpty(t)||(this.value=t)}},t.prototype.setIsContentElement=function(e){e.isContentElement=!0;for(var t=e.elements,n=0;n<t.length;n++){var o=t[n];o.isPanel?this.setIsContentElement(o):o.isContentElement=!0}},t.prototype.setVisibleIndex=function(t){var n=e.prototype.setVisibleIndex.call(this,t);return this.isVisible&&this.contentPanel&&(n+=this.contentPanel.setVisibleIndex(t)),n},t.prototype.runCondition=function(n,o){if(e.prototype.runCondition.call(this,n,o),this.contentPanel){var r=n[t.ItemVariableName];n[t.ItemVariableName]=this.contentPanel.getValue(),this.contentPanel.runCondition(n,o),delete n[t.ItemVariableName],r&&(n[t.ItemVariableName]=r)}},t.prototype.getValue=function(e){var t=this.value;return t?t[e]:null},t.prototype.setValue=function(t,n,o,r){if(!this.settingNewValue&&(e.prototype.setValue.call(this,t,n,o,r),this.contentPanel)){var i=this.contentPanel.getQuestionByName(t);i&&!this.isTwoValueEquals(n,i.value)&&(this.settingNewValue=!0,i.value=n,this.settingNewValue=!1)}},t.prototype.addConditionObjectsByContext=function(e,t){if(this.contentPanel)for(var n=this.contentPanel.questions,o=this.name,r=this.title,i=0;i<n.length;i++)e.push({name:o+"."+n[i].name,text:r+"."+n[i].title,question:n[i]})},t.prototype.convertDataValue=function(e,t){var n=this.value;return n||(n={}),this.isValueEmpty(t)&&!this.isEditingSurveyElement?delete n[e]:n[e]=t,n},t.prototype.setQuestionValue=function(t,n){void 0===n&&(n=!0),e.prototype.setQuestionValue.call(this,t,n),this.settingNewValue=!0;for(var o=this.contentPanel.questions,r=0;r<o.length;r++){var i=o[r].getValueName();o[r].value=t?t[i]:void 0}this.settingNewValue=!1},t.prototype.getDisplayValueCore=function(t,n){return e.prototype.getContentDisplayValueCore.call(this,t,n,this.contentPanel)},t.prototype.setAfterRenderCallbacks=function(e){var t=this;if(e&&this.customQuestion)for(var n=e.questions,o=0;o<n.length;o++)n[o].afterRenderQuestionCallback=function(e,n){t.customQuestion.onAfterRenderContentElement(t,e,n)}},t.ItemVariableName="composite",t}(_a),Sa=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Oa=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ea=function(e){function t(t,n,o){void 0===n&&(n=null),void 0===o&&(o="buttongroupitemvalue");var r=e.call(this,t,n,o)||this;return r.typeName=o,r}return Sa(t,e),t.prototype.getType=function(){return this.typeName?this.typeName:"buttongroupitemvalue"},Oa([y()],t.prototype,"iconName",void 0),Oa([y()],t.prototype,"iconSize",void 0),Oa([y()],t.prototype,"showCaption",void 0),t}(Fe),Ra=function(e){function t(t){return e.call(this,t)||this}return Sa(t,e),t.prototype.getType=function(){return"buttongroup"},t.prototype.getItemValueType=function(){return"buttongroupitemvalue"},t.prototype.supportOther=function(){return!1},t}($n);R.addClass("buttongroup",[{name:"choices:buttongroupitemvalue[]"}],(function(){return new Ra("")}),"checkboxbase"),R.addClass("buttongroupitemvalue",[{name:"showCaption:boolean",default:!0},{name:"iconName:text"},{name:"iconSize:number"}],(function(e){return new Ea(e)}),"itemvalue");var Ia,qa=function(){function e(e,t,n){this.question=e,this.item=t,this.index=n}return Object.defineProperty(e.prototype,"value",{get:function(){return this.item.value},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"iconName",{get:function(){return this.item.iconName},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"iconSize",{get:function(){return this.item.iconSize||24},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"caption",{get:function(){return this.item.locText},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showCaption",{get:function(){return this.item.showCaption||void 0===this.item.showCaption},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isRequired",{get:function(){return this.question.isRequired},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selected",{get:function(){return this.question.isItemSelected(this.item)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"readOnly",{get:function(){return this.question.isInputReadOnly||!this.item.isEnabled},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this.question.name+"_"+this.question.id},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this.question.inputId+"_"+this.index},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasErrors",{get:function(){return this.question.errors.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"describedBy",{get:function(){return this.question.errors.length>0?this.question.id+"_errors":null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"labelClass",{get:function(){return(new ze).append(this.question.cssClasses.item).append(this.question.cssClasses.itemSelected,this.selected).append(this.question.cssClasses.itemHover,!this.readOnly&&!this.selected).append(this.question.cssClasses.itemDisabled,this.question.isReadOnly||!this.item.isEnabled).toString()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"css",{get:function(){return{label:this.labelClass,icon:this.question.cssClasses.itemIcon,control:this.question.cssClasses.itemControl,caption:this.question.cssClasses.itemCaption,decorator:this.question.cssClasses.itemDecorator}},enumerable:!1,configurable:!0}),e.prototype.onChange=function(){this.question.renderedValue=this.item.value},e}(),Da=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Aa=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isEdge=!1,t.prevIsEdge=null,t.ghostSurveyElement=null,t.doBanDropHere=function(){t.removeGhostElementFromSurvey(),t.isEdge=null},t.doDrop=function(){return t.dropTarget?t.insertRealElementIntoSurvey():null},t.doClear=function(){t.removeGhostElementFromSurvey(),t.isEdge=null,t.ghostSurveyElement=null},t}return Da(t,e),Object.defineProperty(t.prototype,"draggedElementType",{get:function(){return"survey-element"},enumerable:!1,configurable:!0}),t.prototype.startDragToolboxItem=function(e,t){var n=this.createElementFromJson(t);this.startDrag(e,n)},t.prototype.createElementFromJson=function(e){var t=this.createNewElement(e);return t.setSurveyImpl?t.setSurveyImpl(this.survey):t.setData(this.survey),t.renderWidth="100%",t},t.prototype.createNewElement=function(e){var t=R.createClass(e.type);return(new E).toObject(e,t),t},t.prototype.getShortcutText=function(e){return e.title||e.name},t.prototype.getDropTargetByDataAttributeValue=function(e,n,o){if(this.isEdge=this.calculateIsEdge(n,o.clientY),!e){var r=n.parentElement.closest(this.dropTargetDataAttributeName);e=this.getDataAttributeValueByNode(r)}if(!e)throw new Error("Can't find drop target survey element name");if(e===t.ghostSurveyElementName)return this.prevDropTarget;if("newGhostPage"===e)return t.newGhostPage;var i,a,s=this.survey.getPageByName(e);if(s){if(0!==s.elements.length){var l=s.elements;s=this.isBottom?l[l.length-1]:l[0]}return s}if(this.survey.pages.forEach((function(t){(a=t.getElementByName(e))&&(i=a)})),"paneldynamic"!==i.getType()||this.isEdge){if(i.isPanel){var u=this.getPanelDragInfo(n,i,o);i=u.dropTarget,this.isEdge=u.isEdge}}else i=i.template;if(!i.page){r=n.parentElement.closest("[data-sv-drop-target-page]");e=r.dataset.svDropTargetPage;var c=this.survey.getPageByName(e);i.__page=c}return i},t.prototype.isDropTargetValid=function(e,n){return!!e&&(this.dropTarget!==this.draggedElement&&(!t.restrictDragQuestionBetweenPages||!this.shouldRestricDragQuestionBetweenPages(e)))},t.prototype.isDropTargetDoesntChanged=function(e){return this.dropTarget===this.ghostSurveyElement||this.dropTarget===this.prevDropTarget&&e===this.isBottom},t.prototype.shouldRestricDragQuestionBetweenPages=function(e){var t=this.draggedElement.page,n=e.isPage?e:e.page;return t&&t!==n},t.prototype.getPanelDragInfo=function(e,t,n){var o=this.isEdge;return o||0===t.questions.length||(e=this.findDeepestDropTargetChild(e),t=this.getDropTargetByNode(e,n)),{dropTarget:t,isEdge:o}},t.prototype.findDeepestDropTargetChild=function(e){for(var t=this.dropTargetDataAttributeName,n=e;e;)n=e,e=e.querySelector(t);return n},t.prototype.calculateIsEdge=function(e,n){var o=this.calculateMiddleOfHTMLElement(e);return Math.abs(n-o)>=t.edgeHeight},t.prototype.afterDragOver=function(){this.prevIsEdge=this.isEdge,this.insertGhostElementIntoSurvey()},t.prototype.doStartDrag=function(){this.ghostSurveyElement=this.createGhostSurveyElement()},t.prototype.insertGhostElementIntoSurvey=function(){if(this.removeGhostElementFromSurvey(),this.ghostSurveyElement.name=t.ghostSurveyElementName,this.parentElement=this.dropTarget.isPage?this.dropTarget:this.dropTarget.page||this.dropTarget.__page,!this.isDragOverInsideEmptyPanel())return this.parentElement.dragDropStart(this.draggedElement,this.ghostSurveyElement,t.nestedPanelDepth),this.parentElement.dragDropMoveTo(this.dropTarget,this.isBottom,this.isEdge);this.dropTarget.isDragOverMe=!0},t.prototype.isDragOverInsideEmptyPanel=function(){var e=this.dropTarget.isPanel&&0===this.dropTarget.questions.length,t=!this.isEdge;return e&&t},t.prototype.removeGhostElementFromSurvey=function(){this.prevDropTarget&&(this.prevDropTarget.isDragOverMe=!1),this.parentElement&&this.parentElement.dragDropFinish(!0)},t.prototype.insertRealElementIntoSurvey=function(){this.removeGhostElementFromSurvey(),this.dropTarget.isPage&&this.dropTarget._isGhost&&this.dropTarget._addGhostPageViewModel();var e=(new E).toJsonObject(this.draggedElement);e.type=this.draggedElement.getType();var n=this.createFakeTargetElement(this.draggedElement.name,e);return this.parentElement.dragDropStart(this.draggedElement,n,t.nestedPanelDepth),this.parentElement.dragDropMoveTo(this.dropTarget,this.isBottom,this.isEdge),this.parentElement.dragDropFinish()},t.prototype.createFakeTargetElement=function(e,t){if(!e||!t)return null;var n=null;return n=R.createClass(t.type),(new E).toObject(t,n),n.name=e,n.setSurveyImpl?n.setSurveyImpl(this.survey):n.setData(this.survey),n.renderWidth="100%",n},t.prototype.createGhostSurveyElement=function(){var e=this.draggedElement.startWithNewLine,n="sv-drag-drop-ghost",o="300px";e||(o="4px",n+=" sv-drag-drop-ghost--vertical");var r={type:"html",minWidth:o,name:t.ghostSurveyElementName,html:'<div class="'+n+'"></div>'},i=this.createElementFromJson(r);return i.startWithNewLine=e,i},t.newGhostPage=null,t.restrictDragQuestionBetweenPages=!1,t.edgeHeight=30,t.nestedPanelDepth=-1,t.ghostSurveyElementName="sv-drag-drop-ghost-survey-element-name",t}(xn);Ia="1.8.72";u.locales.ar={pagePrevText:"السابق",pageNextText:"التالي",completeText:"إرسال البيانات",previewText:"معاينة",editText:"تعديل",startSurveyText:"بداية",otherItemText:"نص آخر",noneItemText:"لا شيء",selectAllItemText:"اختر الكل",progressText:"{1} صفحة {0} من",panelDynamicProgressText:"سجل {0} من {1}",questionsProgressText:"تمت الإجابة على أسئلة {0} / {1}",emptySurvey:"لا توجد صفحة مرئية أو سؤال في النموذج",completingSurvey:"شكرا لكم لاستكمال النموذج!",completingSurveyBefore:"تظهر سجلاتنا أنك قد أكملت هذا الاستطلاع بالفعل.",loadingSurvey:"...يتم تحميل النموذج",optionsCaption:"...اختر",value:"القيمة",requiredError:".يرجى الإجابة على السؤال",requiredErrorInPanel:"الرجاء الإجابة على سؤال واحد على الأقل.",requiredInAllRowsError:"يرجى الإجابة على الأسئلة في جميع الصفوف",numericError:"يجب أن تكون القيمة رقمية.",textMinLength:"الرجاء إدخال ما لا يقل عن {0} حروف",textMaxLength:"الرجاء إدخال أقل من {0} حروف",textMinMaxLength:"يرجى إدخال أكثر من {0} وأقل من {1} حروف",minRowCountError:"يرجى ملء ما لا يقل عن {0} الصفوف",minSelectError:"يرجى تحديد ما لا يقل عن {0} المتغيرات",maxSelectError:"يرجى تحديد ما لا يزيد عن {0} المتغيرات",numericMinMax:"و'{0}' يجب أن تكون مساوية أو أكثر من {1} وتساوي أو أقل من {2}ا",numericMin:"و'{0}' يجب أن تكون مساوية أو أكثر من {1}ا",numericMax:"و'{0}' يجب أن تكون مساوية أو أقل من {1}ا",invalidEmail:"الرجاء إدخال بريد الكتروني صحيح",invalidExpression:"يجب أن يعرض التعبير: {0} 'صواب'.",urlRequestError:"طلب إرجاع خطأ '{0}'. {1}ا",urlGetChoicesError:"عاد طلب البيانات فارغ أو 'المسار' غير صحيح ",exceedMaxSize:"ينبغي ألا يتجاوز حجم الملف {0}ا",otherRequiredError:"الرجاء إدخال قيمة أخرى",uploadingFile:"تحميل الملف الخاص بك. يرجى الانتظار عدة ثوان والمحاولة لاحقًا",loadingFile:"جار التحميل...",chooseFile:"اختر الملفات...",noFileChosen:"لم تقم باختيار ملف",confirmDelete:"هل تريد حذف السجل؟",keyDuplicationError:"يجب أن تكون هذه القيمة فريدة.",addColumn:"أضف العمود",addRow:"اضافة صف",removeRow:"إزالة صف",addPanel:"اضف جديد",removePanel:"إزالة",choices_Item:"بند",matrix_column:"عمود",matrix_row:"صف",savingData:"يتم حفظ النتائج على الخادم ...",savingDataError:"حدث خطأ ولم نتمكن من حفظ النتائج.",savingDataSuccess:"تم حفظ النتائج بنجاح!",saveAgainButton:"حاول مجددا",timerMin:"دقيقة",timerSec:"ثانية",timerSpentAll:"لقد أنفقت {0} على هذه الصفحة و {1} إجمالاً.",timerSpentPage:"لقد أنفقت {0} على هذه الصفحة.",timerSpentSurvey:"لقد أنفقت {0} إجمالاً.",timerLimitAll:"لقد أنفقت {0} من {1} في هذه الصفحة و {2} من إجمالي {3}.",timerLimitPage:"لقد أنفقت {0} من {1} في هذه الصفحة.",timerLimitSurvey:"لقد أنفقت {0} من إجمالي {1}.",cleanCaption:"نظيف",clearCaption:"واضح",chooseFileCaption:"اختر ملف",removeFileCaption:"قم بإزالة هذا الملف",booleanCheckedLabel:"نعم",booleanUncheckedLabel:"لا",confirmRemoveFile:"هل أنت متأكد أنك تريد إزالة هذا الملف: {0}؟",confirmRemoveAllFiles:"هل أنت متأكد أنك تريد إزالة كافة الملفات؟",questionTitlePatternText:"عنوان السؤال"},u.localeNames.ar="العربية";u.locales.eu={pagePrevText:"Aurrekoa",pageNextText:"Hurrengoa",completeText:"Bukatu",previewText:"Aurrebista",editText:"Editatu",startSurveyText:"Hasi",otherItemText:"Beste bat (zehaztu)",noneItemText:"Bat ere ez",selectAllItemText:"Guztia hautatu",progressText:"{1}-(e)tik {0} orrialde",panelDynamicProgressText:"{0} errigistro {1}-(e)tik",questionsProgressText:"Erantzundako galderak {0}/{1}",emptySurvey:"Ez dago orrialde bistaragarririk edo ez dago galderarik.",completingSurvey:"Eskerrik asko galdetegia erantzuteagatik!",completingSurveyBefore:"Gure datuek diote dagoeneko galdetegia erantzun duzula.",loadingSurvey:"Galdetegia kargatzen...",optionsCaption:"Hautatu...",value:"balioa",requiredError:"Mesedez, galdera erantzun.",requiredErrorInPanel:"Mesedez, gutxienez galdera bat erantzun.",requiredInAllRowsError:"Mesedez, errenkadako galdera guztiak erantzun.",numericError:"Estimazioa zenbakizkoa izan behar du.",minError:"Balioa ez da {0} baino txikiagoa izan behar",maxError:"Balioa ez da {0} baino handiagoa izan behar",textMinLength:"Mesedez, gutxienez {0} karaktere erabili behar dira.",textMaxLength:"Mesedez, gehienez {0} karaktere erabili behar dira.",textMinMaxLength:"Mesedez, gehienez {0} eta gutxienez {1} karaktere erabili behar dira.",minRowCountError:"Mesedez, gutxienez {0} errenkada bete.",minSelectError:"Mesedez, gutxienez {0} aukera hautatu.",maxSelectError:"Mesedez, {0} aukera baino gehiago ez hautatu.",numericMinMax:"El '{0}' debe de ser igual o más de {1} y igual o menos de {2}",numericMin:"'{0}' {1} baino handiagoa edo berdin izan behar da",numericMax:"'{0}' {1} baino txikiago edo berdin izan behar da",invalidEmail:"Mesedez, baliozko emaila idatz ezazu.",invalidExpression:"{0} adierazpenak 'egiazkoa' itzuli beharko luke.",urlRequestError:"Eskaerak '{0}' errorea itzuli du. {1}",urlGetChoicesError:"La solicitud regresó vacío de data o la propiedad 'trayectoria' no es correcta",exceedMaxSize:"Fitxategiaren tamaina ez da {0} baino handiagoa izan behar.",otherRequiredError:"Mesedez, beste estimazioa gehitu.",uploadingFile:"Zure fitxategia igotzen ari da. Mesedez, segundo batzuk itxaron eta saiatu berriro.",loadingFile:"Kargatzen...",chooseFile:"Fitxategia(k) hautatu...",noFileChosen:"Ez da inolako fitxategirik hautatu",confirmDelete:"¿Erregistroa borratu nahi al duzu?",keyDuplicationError:"Balio hau bakarra izan behar du.",addColumn:"Zutabe bat gehitu",addRow:"Errenkada bat gehitu",removeRow:"Errenkada bat kendu",emptyRowsText:"Ez dago errenkadarik.",addPanel:"Berria gehitu",removePanel:"Kendu",choices_Item:"artikulua",matrix_column:"Zutabea",matrix_row:"Errenkada",multipletext_itemname:"testua",savingData:"Erantzunak zerbitzarian gordetzen ari dira...",savingDataError:"Erroreren bat gertatu eta erantzunak ez dira zerbitzarian gorde ahal izan.",savingDataSuccess:"Erantzunak egoki gorde dira!",saveAgainButton:"Berriro saiatu.",timerMin:"min",timerSec:"seg",timerSpentAll:"{0} erabili duzu orrialde honetan eta orotara {1}.",timerSpentPage:"Zuk {0} erabili duzu.",timerSpentSurvey:"Orotara gastatu duzu.",timerLimitAll:"{0} gastatu duzu {1}-(e)tik orrialde honetan eta orotara {2} {3}-(e)tik.",timerLimitPage:"{0} gastatu duzu orrialde honetan {1}-(e)tik.",timerLimitSurvey:"Zuk orotara {0} gastatu duzu {1}-(e)tik.",cleanCaption:"Garbitu",clearCaption:"Hustu",signaturePlaceHolder:"Sinatu hemen",chooseFileCaption:"Fitxategia hautatu",removeFileCaption:"Fitxategi hau ezabatu",booleanCheckedLabel:"Bai",booleanUncheckedLabel:"Ez",confirmRemoveFile:"Ziur zaude hurrengo fitxategia ezabatu nahi duzula: {0}?",confirmRemoveAllFiles:"Ziur al zaude fitxategi guztiak ezabatu nahi dituzula?",questionTitlePatternText:"Galderaren izenburua",modalCancelButtonText:"Ezeztatu",modalApplyButtonText:"Ezarri"},u.localeNames.eu="Euskara";u.locales.bg={pagePrevText:"Назад",pageNextText:"Напред",completeText:"Край",previewText:"Визуализация",editText:"редактиране",startSurveyText:"Начало",otherItemText:"Друго (опишете)",noneItemText:"Нито един",selectAllItemText:"Всички",progressText:"стр. {0}, общо стр. {1}",panelDynamicProgressText:"Запис {0} от {1}",questionsProgressText:"Отговорени на {0} / {1} въпроса",emptySurvey:"Анкетата не съдържа видими страници или въпроси.",completingSurvey:"Благодарим ви за участието в анкетата!",completingSurveyBefore:"Изглежда, че вие вече сте попълнили анкетата.",loadingSurvey:"Зареждане на анкетата...",optionsCaption:"Изберете...",value:"value",requiredError:"Моля, отговорете на следния въпрос.",requiredErrorInPanel:"Моля, отговорете поне на един от въпросите.",requiredInAllRowsError:"Моля, отговорете на въпросите на всички редове.",numericError:"Стойността следва да бъде число.",textMinLength:"Моля, използвайте поне {0} символа.",textMaxLength:"Моля, използвайте не повече от {0} символа.",textMinMaxLength:"Моля, използвайте повече от {0} и по-малко от {1} символа.",minRowCountError:"Моля, попълнете поне {0} реда.",minSelectError:"Моля, изберете поне {0} варианта.",maxSelectError:"Моля, изберете не повече от {0} варианта.",numericMinMax:"Стойността '{0}' следва да бъде равна или по-голяма от {1} и равна или по-малка от {2}",numericMin:"Стойността '{0}' следва да бъде равна или по-голяма от {1}",numericMax:"Стойността '{0}' следва да бъде равна или по-малка от {1}",invalidEmail:"Моля, въведете валиден адрес на електронна поща.",invalidExpression:"Изразът: {0} трябва да дава резултат 'true' (истина).",urlRequestError:"Заявката води до грешка '{0}'. {1}",urlGetChoicesError:"Заявката не връща данни или частта 'path' (път до търсения ресурс на сървъра) е неправилно зададена",exceedMaxSize:"Размерът на файла следва да не превишава {0}.",otherRequiredError:"Моля, въведете другата стойност.",uploadingFile:"Вашит файл се зарежда на сървъра. Моля, изчакайте няколко секунди и тогава опитвайте отново.",loadingFile:"Зареждане...",chooseFile:"Изберете файл(ове)...",noFileChosen:"Няма избран файл",confirmDelete:"Желаете ли да изтриете записа?",keyDuplicationError:"Стойността следва да бъде уникална.",addColumn:"Добавяне на колона",addRow:"Добавяне на ред",removeRow:"Премахване на ред",addPanel:"Добавяне на панел",removePanel:"Премахване на панел",choices_Item:"елемент",matrix_column:"Колона",matrix_row:"Ред",savingData:"Резултатите се запазват на сървъра...",savingDataError:"Поради възникнала грешка резултатите не можаха да бъдат запазени.",savingDataSuccess:"Резултатите бяха запазени успешно!",saveAgainButton:"Нов опит",timerMin:"мин",timerSec:"сек",timerSpentAll:"Вие използвахте {0} на тази страница и общо {1}.",timerSpentPage:"Вие използвахте {0} на тази страница.",timerSpentSurvey:"Вие използвахте общо {0}.",timerLimitAll:"Вие изпозвахте {0} от {1} на тази страница и общо {2} от {3}.",timerLimitPage:"Вие използвахте {0} от {1} на тази страница.",timerLimitSurvey:"Вие използвахте общо {0} от {1}.",cleanCaption:"Изчистване",clearCaption:"Начално състояние",chooseFileCaption:"Изберете файл",removeFileCaption:"Премахване на файла",booleanCheckedLabel:"Да",booleanUncheckedLabel:"Не",confirmRemoveFile:"Наистина ли искате да премахнете този файл: {0}?",confirmRemoveAllFiles:"Наистина ли искате да премахнете всички файлове?",questionTitlePatternText:"Заглавие на въпроса"},u.localeNames.bg="български";u.locales.ca={pagePrevText:"Anterior",pageNextText:"Següent",completeText:"Complet",otherItemText:"Un altre (descrigui)",progressText:"Pàgina {0} de {1}",emptySurvey:"No hi ha cap pàgina visible o pregunta a l'enquesta.",completingSurvey:"Gràcies per completar l'enquesta!",loadingSurvey:"L'enquesta s'està carregant ...",optionsCaption:"Selecciona ...",requiredError:"Si us plau contesti la pregunta.",requiredInAllRowsError:"Si us plau contesti les preguntes de cada filera.",numericError:"L'estimació ha de ser numèrica.",textMinLength:"Si us plau entre almenys {0} símbols.",textMaxLength:"Si us plau entre menys de {0} símbols.",textMinMaxLength:"Si us plau entre més de {0} i menys de {1} símbols.",minRowCountError:"Si us plau ompli almenys {0} fileres.",minSelectError:"Si us plau seleccioni almenys {0} variants.",maxSelectError:"Si us plau seleccioni no més de {0} variants.",numericMinMax:"El '{0}' deu ser igual o més de {1} i igual o menys de {2}",numericMin:"El '{0}' ha de ser igual o més de {1}",numericMax:"El '{0}' ha de ser igual o menys de {1}",invalidEmail:"Si us plau afegiu un correu electrònic vàlid.",urlRequestError:"La sol·licitud va tornar error '{0}'. {1}",urlGetChoicesError:"La sol·licitud va tornar buida de dates o la propietat 'trajectòria' no és correcta",exceedMaxSize:"La mida de l'arxiu no pot excedir {0}.",otherRequiredError:"Si us plau afegiu l'altra estimació.",uploadingFile:"El seu arxiu s'està pujant. Si us plau esperi uns segons i intenteu-ho de nou.",addRow:"Afegiu una filera",removeRow:"Eliminar una filera",choices_firstItem:"primer article",choices_secondItem:"segon article",choices_thirdItem:"tercer article",matrix_column:"Columna",matrix_row:"Filera"},u.localeNames.ca="català";u.locales.hr={pagePrevText:"Prethodni",pageNextText:"Sljedeći",completeText:"Kompletan",previewText:"Pregled",editText:"Uređivanje",startSurveyText:"Početak",otherItemText:"Ostali (opis)",noneItemText:"Nitko",selectAllItemText:"Select All",progressText:"Stranica {0} od {1}",panelDynamicProgressText:"Zapisa {0} od {1}",questionsProgressText:"Odgovorio na {0}/{1} pitanja",emptySurvey:"U anketi nema vidljive stranice ili pitanja.",completingSurvey:"Hvala vam što ste završili anketu!",completingSurveyBefore:"Naši zapisi pokazuju da ste već završili ovu anketu.",loadingSurvey:"Anketa o učitavanje...",optionsCaption:"Odaberite...",value:"vrijednost",requiredError:"Molim vas odgovorite na pitanje.",requiredErrorInPanel:"Molim vas odgovorite na barem jedno pitanje.",requiredInAllRowsError:"Odgovorite na pitanja u svim redovima.",numericError:"Vrijednost bi trebala biti brojčana.",textMinLength:"Unesite najmanje {0} znak(ova).",textMaxLength:"Unesite manje od {0} znak(ova).",textMinMaxLength:"Unesite više od {0} i manje od {1} znakova.",minRowCountError:"Molimo ispunite najmanje {0} redaka.",minSelectError:"Odaberite barem {0} varijante.",maxSelectError:"Odaberite ne više od {0} varijanti.",numericMinMax:"'{0}'bi trebao biti jednak ili više od {1} i jednak ili manji od {2}.",numericMin:"'{0}' bi trebao biti jednak ili više od {1}.",numericMax:"'{0}' bi trebao biti jednak ili manji od {1}",invalidEmail:"Unesite valjanu e-mail adresu.",invalidExpression:"Izraz: {0} treba vratiti 'true'.",urlRequestError:"Zahtjev vratio pogrešku '{0}'. {1}",urlGetChoicesError:"Zahtjev je vratio prazne podatke ili je 'path' svojstvo netočna.",exceedMaxSize:"Veličina datoteke ne smije prelaziti {0}.",otherRequiredError:"Unesite drugu vrijednost.",uploadingFile:"Vaša datoteka se prenosi. Pričekajte nekoliko sekundi i pokušajte ponovno.",loadingFile:"Učitavanje...",chooseFile:"Odaberite datoteku...",noFileChosen:"Nije odabrana datoteka",confirmDelete:"Želite li izbrisati zapis?",keyDuplicationError:"Ta bi vrijednost trebala biti jedinstvena.",addColumn:"Dodavanje stupca",addRow:"Dodavanje redaka",removeRow:"Ukloniti",addPanel:"Dodavanje novih",removePanel:"Ukloniti",choices_Item:"stavku",matrix_column:"Stupca",matrix_row:"Redak",savingData:"Rezultati se spremaju na poslužitelju...",savingDataError:"Došlo je do pogreške i nismo mogli spremiti rezultate.",savingDataSuccess:"Rezultati su uspješno spremljeni!",saveAgainButton:"Pokušaj ponovo",timerMin:"min",timerSec:"sec",timerSpentAll:"Vi ste proveli {0} na ovoj stranici i {1} ukupno.",timerSpentPage:"Potrošili ste {0} na ovu stranicu.",timerSpentSurvey:"You have spent {0} in total. {0}.",timerLimitAll:"Vi ste proveli {0} od {1} na ovoj stranici i {2} od {3} ukupno.",timerLimitPage:"Potrošio si {0} od {1} na ovoj stranici.",timerLimitSurvey:"Ukupno ste potrošili {0} od {1}.",cleanCaption:"Očistiti",clearCaption:"Očistiti",chooseFileCaption:"Odaberite datoteku",removeFileCaption:"Uklonite ovu datoteku",booleanCheckedLabel:"Da",booleanUncheckedLabel:"Ne",confirmRemoveFile:"Jeste li sigurni da želite ukloniti ovu datoteku: {0}?",confirmRemoveAllFiles:"Jeste li sigurni da želite ukloniti sve datoteke?",questionTitlePatternText:"Naslov pitanja",modalCancelButtonText:"Otkazati",modalApplyButtonText:"Primijeniti"},u.localeNames.hr="hrvatski";u.locales.cs={pagePrevText:"Předchozí",pageNextText:"Další",completeText:"Hotovo",previewText:"Náhled",editText:"Upravit",startSurveyText:"Start",otherItemText:"Jiná odpověď (napište)",noneItemText:"Žádný",selectAllItemText:"Vybrat vše",progressText:"Strana {0} z {1}",panelDynamicProgressText:"Záznam {0} z {1}",questionsProgressText:"Zodpovězené otázky: {0} / {1}",emptySurvey:"Průzkumu neobsahuje žádné otázky.",completingSurvey:"Děkujeme za vyplnění průzkumu!",completingSurveyBefore:"Naše záznamy ukazují, že jste tento průzkum již dokončili.",loadingSurvey:"Probíhá načítání průzkumu...",optionsCaption:"Vyber...",value:"hodnota",requiredError:"Odpovězte prosím na otázku.",requiredErrorInPanel:"Please answer at least one question.",requiredInAllRowsError:"Odpovězte prosím na všechny otázky.",numericError:"V tomto poli lze zadat pouze čísla.",textMinLength:"Zadejte prosím alespoň {0} znaků.",textMaxLength:"Zadejte prosím méně než {0} znaků.",textMinMaxLength:"Zadejte prosím více než {0} a méně než {1} znaků.",minRowCountError:"Vyplňte prosím alespoň {0} řádků.",minSelectError:"Vyberte prosím alespoň {0} varianty.",maxSelectError:"Nevybírejte prosím více než {0} variant.",numericMinMax:"Odpověď '{0}' by mělo být větší nebo rovno {1} a menší nebo rovno {2}",numericMin:"Odpověď '{0}' by mělo být větší nebo rovno {1}",numericMax:"Odpověď '{0}' by mělo být menší nebo rovno {1}",invalidEmail:"Zadejte prosím platnou e-mailovou adresu.",invalidExpression:"Výraz: {0} by měl vrátit hodnotu „true“.",urlRequestError:"Požadavek vrátil chybu '{0}'. {1}",urlGetChoicesError:"Požadavek nevrátil data nebo cesta je neplatná",exceedMaxSize:"Velikost souboru by neměla být větší než {0}.",otherRequiredError:"Zadejte prosím jinou hodnotu.",uploadingFile:"Váš soubor se nahrává. Zkuste to prosím za několik sekund.",loadingFile:"Načítání...",chooseFile:"Vyberte soubory ...",noFileChosen:"Není zvolený žádný soubor",confirmDelete:"Chcete smazat záznam?",keyDuplicationError:"Tato hodnota by měla být jedinečná.",addColumn:"Přidat sloupec",addRow:"Přidat řádek",removeRow:"Odstranit",addPanel:"Přidat nový",removePanel:"Odstranit",choices_Item:"položka",matrix_column:"Sloupec",matrix_row:"Řádek",savingData:"Výsledky se ukládají na server ...",savingDataError:"Došlo k chybě a výsledky jsme nemohli uložit.",savingDataSuccess:"Výsledky byly úspěšně uloženy!",saveAgainButton:"Zkus to znovu",timerMin:"min",timerSec:"sek",timerSpentAll:"Na této stránce jste utratili celkem {0} a celkem {1}.",timerSpentPage:"Na této stránce jste utratili {0}.",timerSpentSurvey:"Celkem jste utratili {0}.",timerLimitAll:"Na této stránce jste utratili {0} z {1} a celkem {2} z {3}.",timerLimitPage:"Na této stránce jste strávili {0} z {1}.",timerLimitSurvey:"Celkově jste utratili {0} z {1}.",cleanCaption:"Čistý",clearCaption:"Průhledná",chooseFileCaption:"Vyberte soubor",removeFileCaption:"Odeberte tento soubor",booleanCheckedLabel:"Ano",booleanUncheckedLabel:"Ne",confirmRemoveFile:"Opravdu chcete odebrat tento soubor: {0}?",confirmRemoveAllFiles:"Opravdu chcete odstranit všechny soubory?",questionTitlePatternText:"Název otázky"},u.localeNames.cs="čeština";u.locales.da={pagePrevText:"Tilbage",pageNextText:"Videre",completeText:"Færdig",previewText:"Forpremiere",editText:"Redigér",startSurveyText:"Start",otherItemText:"Valgfrit svar...",noneItemText:"Ingen",selectAllItemText:"Vælg alle",progressText:"Side {0} af {1}",panelDynamicProgressText:"Optag {0} af {1}",questionsProgressText:"Besvarede {0} / {1} spørgsmål",emptySurvey:"Der er ingen synlige spørgsmål.",completingSurvey:"Mange tak for din besvarelse!",completingSurveyBefore:"Vores data viser at du allerede har gennemført dette spørgeskema.",loadingSurvey:"Spørgeskemaet hentes fra serveren...",optionsCaption:"Vælg...",value:"værdi",requiredError:"Besvar venligst spørgsmålet.",requiredErrorInPanel:"Besvar venligst mindst ét spørgsmål.",requiredInAllRowsError:"Besvar venligst spørgsmål i alle rækker.",numericError:"Angiv et tal.",textMinLength:"Angiv mindst {0} tegn.",textMaxLength:"Please enter less than {0} characters.",textMinMaxLength:"Angiv mere end {0} og mindre end {1} tegn.",minRowCountError:"Udfyld mindst {0} rækker.",minSelectError:"Vælg venligst mindst {0} svarmulighed(er).",maxSelectError:"Vælg venligst færre {0} svarmuligheder(er).",numericMinMax:"'{0}' skal være lig med eller større end {1} og lig med eller mindre end {2}",numericMin:"'{0}' skal være lig med eller større end {1}",numericMax:"'{0}' skal være lig med eller mindre end {1}",invalidEmail:"Angiv venligst en gyldig e-mail adresse.",invalidExpression:"Udtrykket: {0} skal returnere 'true'.",urlRequestError:"Forespørgslen returnerede fejlen '{0}'. {1}",urlGetChoicesError:"Forespørgslen returnerede ingen data eller 'path' parameteren er forkert",exceedMaxSize:"Filstørrelsen må ikke overstige {0}.",otherRequiredError:"Angiv en værdi for dit valgfrie svar.",uploadingFile:"Din fil bliver uploadet. Vent nogle sekunder og prøv eventuelt igen.",loadingFile:"Indlæser...",chooseFile:"Vælg fil(er)...",noFileChosen:"Ingen fil er valgt",confirmDelete:"Vil du fjerne den?",keyDuplicationError:"Denne værdi skal være unik.",addColumn:"Tilføj kolonne",addRow:"Tilføj række",removeRow:"Fjern",addPanel:"Tilføj ny",removePanel:"Fjern",choices_Item:"valg",matrix_column:"Kolonne",matrix_row:"Række",savingData:"Resultaterne bliver gemt på serveren...",savingDataError:"Der opstod en fejl og vi kunne ikke gemme resultatet.",savingDataSuccess:"Resultatet blev gemt!",saveAgainButton:"Prøv igen",timerMin:"min",timerSec:"sek",timerSpentAll:"Du har brugt {0} på denne side og {1} i alt.",timerSpentPage:"Du har brugt {0} på denne side.",timerSpentSurvey:"Du har brugt {0} i alt.",timerLimitAll:"Du har brugt {0} af {1} på denne side og {2} af {3} i alt.",timerLimitPage:"Du har brugt {0} af {1} på denne side.",timerLimitSurvey:"Du har brugt {0} af {1} i alt.",cleanCaption:"Rens",clearCaption:"Fjern",chooseFileCaption:"Vælg fil",removeFileCaption:"Fjern denne fil",booleanCheckedLabel:"Ja",booleanUncheckedLabel:"Ingen",confirmRemoveFile:"Er du sikker på, at du vil fjerne denne fil: {0}?",confirmRemoveAllFiles:"Er du sikker på, at du vil fjerne alle filer?",questionTitlePatternText:"Spørgsmåls titel"},u.localeNames.da="dansk";u.locales.nl={pagePrevText:"Vorige",pageNextText:"Volgende",completeText:"Verzenden",previewText:"Voorbeeld",editText:"Bewerk",startSurveyText:"Begin met",otherItemText:"Anders, nl.",noneItemText:"Geen",selectAllItemText:"Selecteer Alles",progressText:"Pagina {0} van {1}",panelDynamicProgressText:"Record {0} of {1}",questionsProgressText:"Geantwoord {0}/{1} vragen",emptySurvey:"Er is geen zichtbare pagina of vraag in deze vragenlijst",completingSurvey:"Bedankt voor het invullen van de vragenlijst",completingSurveyBefore:"Onze gegevens tonen aan dat je deze vragenlijst reeds beantwoord hebt.",loadingSurvey:"De vragenlijst is aan het laden...",optionsCaption:"Kies...",value:"waarde",requiredError:"Dit is een vereiste vraag",requiredErrorInPanel:"Gelieve ten minste een vraag te beantwoorden.",requiredInAllRowsError:"Deze vraag vereist één antwoord per rij",numericError:"Het antwoord moet een getal zijn",textMinLength:"Vul minstens {0} karakters in",textMaxLength:"Gelieve minder dan {0} karakters in te vullen.",textMinMaxLength:"Gelieve meer dan {0} en minder dan {1} karakters in te vullen.",minRowCountError:"Gelieve ten minste {0} rijen in te vullen.",minSelectError:"Selecteer minimum {0} antwoorden",maxSelectError:"Selecteer niet meer dan {0} antwoorden",numericMinMax:"Uw antwoord '{0}' moet groter of gelijk zijn aan {1} en kleiner of gelijk aan {2}",numericMin:"Uw antwoord '{0}' moet groter of gelijk zijn aan {1}",numericMax:"Uw antwoord '{0}' moet groter of gelijk zijn aan {1}",invalidEmail:"Vul een geldig e-mailadres in",invalidExpression:"De uitdrukking: {0} moet 'waar' teruggeven.",urlRequestError:"De vraag keerde een fout terug '{0}'. {1}",urlGetChoicesError:"De vraag gaf een leeg antwoord terug of de 'pad' eigenschap is niet correct",exceedMaxSize:"De grootte van het bestand mag niet groter zijn dan {0}",otherRequiredError:"Vul het veld 'Anders, nl.' in",uploadingFile:"Uw bestand wordt opgeladen. Gelieve enkele seconden te wachten en opnieuw te proberen.",loadingFile:"Opladen...",chooseFile:"Kies uw bestand(en)...",noFileChosen:"Geen bestand gekozen",confirmDelete:"Wil je deze gegevens verwijderen?",keyDuplicationError:"Deze waarde moet uniek zijn.",addColumn:"Voeg kolom toe",addRow:"Voeg rij toe",removeRow:"Verwijder",addPanel:"Nieuwe toevoegen",removePanel:"Verwijder",choices_Item:"onderwerp",matrix_column:"Kolom",matrix_row:"Rij",savingData:"De resultaten worden bewaard op de server...",savingDataError:"Er was een probleem en we konden de resultaten niet bewaren.",savingDataSuccess:"De resultaten werden succesvol bewaard!",saveAgainButton:"Probeer opnieuw",timerMin:"minimum",timerSec:"sec",timerSpentAll:"U heeft {0} gespendeerd op deze pagina en {1} in totaal.",timerSpentPage:"U heeft {0} op deze pagina gespendeerd.",timerSpentSurvey:"U heeft in totaal {0} gespendeerd.",timerLimitAll:"U heeft {0} van {1} op deze pagina gespendeerd en {2} van {3} in totaal.",timerLimitPage:"U heeft {0} van {1} gespendeerd op deze pagina.",timerLimitSurvey:"U heeft {0} van {1} in het totaal.",cleanCaption:"Kuis op",clearCaption:"Kuis op",chooseFileCaption:"Gekozen bestand",removeFileCaption:"Verwijder deze file",booleanCheckedLabel:"Ja",booleanUncheckedLabel:"Neen",confirmRemoveFile:"Bent u zeker dat u deze file wilt verwijderen: {0}?",confirmRemoveAllFiles:"Bent u zeker dat u al deze files wilt verwijderen?",questionTitlePatternText:"Titel van de vraag"},u.localeNames.nl="nederlands";u.locales.et={pagePrevText:"Tagasi",pageNextText:"Edasi",completeText:"Lõpeta",previewText:"Eelvaade",editText:"Muuda",startSurveyText:"Alusta",otherItemText:"Muu (täpsusta)",noneItemText:"Mitte midagi",selectAllItemText:"Vali kõik",progressText:"Lehekülg {0}/{1}",panelDynamicProgressText:"Kirje {0}/{1}",questionsProgressText:"Vastatud {0} küsimust {1}-st",emptySurvey:"Selles uuringus ei ole ühtki nähtavat lehekülge või küsimust.",completingSurvey:"Aitäh, et vastasid ankeedile!",completingSurveyBefore:"Meie andmetel oled sa sellele ankeedile juba vastanud.",loadingSurvey:"Laen ankeeti...",optionsCaption:"Vali...",value:"väärtus",requiredError:"Palun vasta küsimusele.",requiredErrorInPanel:"Palun vasta vähemalt ühele küsimusele.",requiredInAllRowsError:"Palun anna vastus igal real.",numericError:"See peaks olema numbriline väärtus.",textMinLength:"Palun sisesta vähemalt {0} tähemärki.",textMaxLength:"Palun ära sisesta rohkem kui {0} tähemärki.",textMinMaxLength:"Sisesta palun {0} - {1} tähemärki.",minRowCountError:"Sisesta plaun vähemalt {0} rida.",minSelectError:"Palun vali vähemalt {0} varianti.",maxSelectError:"Palun vali kõige rohkem {0} varianti.",numericMinMax:"'{0}' peaks olema võrdne või suurem kui {1} ja võrdne või väiksem kui {2}",numericMin:"'{0}' peaks olema võrdne või suurem kui {1}",numericMax:"'{0}' peaks olema võrnde või väiksem kui {1}",invalidEmail:"Sisesta palun korrektne e-posti aadress.",invalidExpression:"Avaldis: {0} peaks tagastama tõese.",urlRequestError:"Taotlus tagastas vea „{0}”. {1}",urlGetChoicesError:"Taotlus tagastas tühjad andmed või atribuut 'path' on vale",exceedMaxSize:"Faili suurus ei tohi ületada {0}.",otherRequiredError:"Sisesta palun muu vastus.",uploadingFile:"Sinu fail laeb üles. Palun oota mõned sekundid ning proovi seejärel uuesti.",loadingFile:"Laen...",chooseFile:"Vali fail(id)...",noFileChosen:"Faili pole valitud",confirmDelete:"Kas tahad kirje kustutada?",keyDuplicationError:"See väärtus peab olema unikaalne.",addColumn:"Lisa veerg",addRow:"Lisa rida",removeRow:"Eemalda",addPanel:"Lisa uus",removePanel:"Eemalda",choices_Item:"üksus",matrix_column:"Veerg",matrix_row:"Rida",savingData:"Salvestan andmed serveris...",savingDataError:"Tekkis viga ning me ei saanud vastuseid salvestada.",savingDataSuccess:"Vastuste salvestamine õnnestus!",saveAgainButton:"Proovi uuesti",timerMin:"min",timerSec:"sek",timerSpentAll:"Oled veetnud {0} sellel lehel ning kokku {1}.",timerSpentPage:"Oled veetnud {0} sellel lehel.",timerSpentSurvey:"Oled veetnud {0} kokku.",timerLimitAll:"Oled kulutanud {0} võimalikust {1} sellel lehel ning {2} võimalikust {3} kokku.",timerLimitPage:"Oled kulutanud {0} võimalikust {1} sellel lehel.",timerLimitSurvey:"Oled kulutanud {0} võimalikust {1} koguajast.",cleanCaption:"Puhasta",clearCaption:"Puhasta",chooseFileCaption:"Vali fail",removeFileCaption:"Eemalda see fail",booleanCheckedLabel:"Jah",booleanUncheckedLabel:"Ei",confirmRemoveFile:"Oled sa kindel, et soovid selle faili eemaldada: {0}?",confirmRemoveAllFiles:"Oled sa kindel, et soovid eemaldada kõik failid?",questionTitlePatternText:"Küsimuse pealkiri"},u.localeNames.et="eesti keel";u.locales.fi={pagePrevText:"Edellinen",pageNextText:"Seuraava",completeText:"Valmis",previewText:"Esikatselu",editText:"Muokkaa",startSurveyText:"Aloita",otherItemText:"Muu (tarkenna)",noneItemText:"Ei mitään",selectAllItemText:"Valitse kaikki",progressText:"Sivu {0} / {1}",panelDynamicProgressText:"Osio {0} / {1}",questionsProgressText:"Olet vastannut {0} / {1} kysymykseen.",emptySurvey:"Tässä kyselyssä ei ole yhtään näkyvillä olevaa sivua tai kysymystä.",completingSurvey:"Kiitos kyselyyn vastaamisesta!",completingSurveyBefore:"Tietojemme mukaan olet jo suorittanut tämän kyselyn.",loadingSurvey:"Kyselyä ladataan palvelimelta...",optionsCaption:"Valitse...",value:"arvo",requiredError:"Vastaa kysymykseen, kiitos.",requiredErrorInPanel:"Vastaa ainakin yhteen kysymykseen.",requiredInAllRowsError:"Vastaa kysymyksiin kaikilla riveillä.",numericError:"Arvon tulee olla numeerinen.",textMinLength:"Syötä vähintään {0} merkkiä.",textMaxLength:"Älä syötä yli {0} merkkiä.",textMinMaxLength:"Syötä vähintään {0} ja enintään {1} merkkiä.",minRowCountError:"Täytä vähintään {0} riviä.",minSelectError:"Valitse vähintään {0} vaihtoehtoa.",maxSelectError:"Valitse enintään {0} vaihtoehtoa.",numericMinMax:"Luvun '{0}' tulee olla vähintään {1} ja korkeintaan {2}.",numericMin:"Luvun '{0}' tulee olla vähintään {1}.",numericMax:"Luvun '{0}' tulee olla korkeintaan {1}.",invalidEmail:"Syötä validi sähköpostiosoite.",invalidExpression:"Lausekkeen: {0} pitäisi palauttaa 'true'.",urlRequestError:"Pyyntö palautti virheen {0}. {1}",urlGetChoicesError:"Pyyntö palautti tyhjän tiedoston tai 'path'-asetus on väärä",exceedMaxSize:"Tiedoston koko ei saa olla suurempi kuin {0}.",otherRequiredError:"Tarkenna vastaustasi tekstikenttään.",uploadingFile:"Tiedostoa lähetetään. Odota muutama sekunti ja yritä uudelleen.",loadingFile:"Ladataan...",chooseFile:"Valitse tiedosto(t)...",noFileChosen:"Ei tiedostoa valittuna",confirmDelete:"Haluatko poistaa osion?",keyDuplicationError:"Tämä arvo on jo käytössä. Syötä toinen arvo.",addColumn:"Lisää sarake",addRow:"Lisää rivi",removeRow:"Poista",emptyRowsText:"Ei rivejä",addPanel:"Lisää uusi",removePanel:"Poista",choices_Item:"kohde",matrix_column:"Sarake",matrix_row:"Rivi",savingData:"Tietoja tallennetaan palvelimelle...",savingDataError:"Tapahtui virhe, emmekä voineet tallentaa kyselyn tietoja.",savingDataSuccess:"Tiedot tallennettiin onnistuneesti!",saveAgainButton:"Yritä uudelleen",timerMin:"min",timerSec:"sek",timerSpentAll:"Olet käyttänyt {0} tällä sivulla ja yhteensä {1}.",timerSpentPage:"Olet käyttänyt {0} tällä sivulla.",timerSpentSurvey:"Olet käyttänyt yhteensä {0}.",timerLimitAll:"Olet käyttänyt tällä sivulla {0} / {1} ja yhteensä {2} / {3}.",timerLimitPage:"Olet käyttänyt {0} / {1} tällä sivulla.",timerLimitSurvey:"Olet käyttänyt yhteensä {0} / {1}.",cleanCaption:"Pyyhi",clearCaption:"Tyhjennä",chooseFileCaption:"Valitse tiedosto",removeFileCaption:"Poista tämä tiedosto",booleanCheckedLabel:"Kyllä",booleanUncheckedLabel:"Ei",confirmRemoveFile:"Haluatko varmasti poistaa tämän tiedoston: {0}?",confirmRemoveAllFiles:"Haluatko varmasti poistaa kaikki tiedostot?",questionTitlePatternText:"Kysymyksen otsikko",modalCancelButtonText:"Peruuta",modalApplyButtonText:"Käytä"},u.localeNames.fi="suomi";u.locales.fr={pagePrevText:"Précédent",pageNextText:"Suivant",completeText:"Terminer",previewText:"Aperçu",editText:"Modifier",startSurveyText:"Commencer",otherItemText:"Autre (préciser)",noneItemText:"Aucun",selectAllItemText:"Tout sélectionner",progressText:"Page {0} sur {1}",panelDynamicProgressText:"Enregistrement {0} sur {1}",questionsProgressText:"{0}/{1} question(s) répondue(s)",emptySurvey:"Il n'y a ni page visible ni question visible dans ce questionnaire",completingSurvey:"Merci d'avoir répondu au questionnaire !",completingSurveyBefore:"Nos données indiquent que vous avez déjà rempli ce questionnaire.",loadingSurvey:"Le questionnaire est en cours de chargement...",optionsCaption:"Choisissez...",value:"valeur",requiredError:"La réponse à cette question est obligatoire.",requiredErrorInPanel:"Merci de répondre au moins à une question.",requiredInAllRowsError:"Toutes les lignes sont obligatoires",numericError:"La réponse doit être un nombre.",textMinLength:"Merci de saisir au moins {0} caractères.",textMaxLength:"Merci de saisir moins de {0} caractères.",textMinMaxLength:"Merci de saisir entre {0} et {1} caractères.",minRowCountError:"Merci de compléter au moins {0} lignes.",minSelectError:"Merci de sélectionner au minimum {0} réponses.",maxSelectError:"Merci de sélectionner au maximum {0} réponses.",numericMinMax:"Votre réponse '{0}' doit être supérieure ou égale à {1} et inférieure ou égale à {2}",numericMin:"Votre réponse '{0}' doit être supérieure ou égale à {1}",numericMax:"Votre réponse '{0}' doit être inférieure ou égale à {1}",invalidEmail:"Merci d'entrer une adresse mail valide.",invalidExpression:"L'expression: {0} doit retourner 'true'.",urlRequestError:"La requête a renvoyé une erreur '{0}'. {1}",urlGetChoicesError:"La requête a renvoyé des données vides ou la propriété 'path' est incorrecte",exceedMaxSize:"La taille du fichier ne doit pas excéder {0}.",otherRequiredError:"Merci de préciser le champ 'Autre'.",uploadingFile:"Votre fichier est en cours de chargement. Merci d'attendre quelques secondes et de réessayer.",loadingFile:"Chargement...",chooseFile:"Ajouter des fichiers...",noFileChosen:"Aucun fichier ajouté",confirmDelete:"Voulez-vous supprimer cet enregistrement ?",keyDuplicationError:"Cette valeur doit être unique.",addColumn:"Ajouter une colonne",addRow:"Ajouter une ligne",removeRow:"Supprimer",addPanel:"Ajouter",removePanel:"Supprimer",choices_Item:"item",matrix_column:"Colonne",matrix_row:"Ligne",savingData:"Les résultats sont en cours de sauvegarde sur le serveur...",savingDataError:"Une erreur est survenue et a empêché la sauvegarde des résultats.",savingDataSuccess:"Les résultats ont bien été enregistrés !",saveAgainButton:"Réessayer",timerMin:"min",timerSec:"sec",timerSpentAll:"Vous avez passé {0} sur cette page et {1} au total.",timerSpentPage:"Vous avez passé {0} sur cette page.",timerSpentSurvey:"Vous avez passé {0} au total.",timerLimitAll:"Vous avez passé {0} sur {1} sur cette page et {2} sur {3} au total.",timerLimitPage:"Vous avez passé {0} sur {1} sur cette page.",timerLimitSurvey:"Vous avez passé {0} sur {1} au total.",cleanCaption:"Nettoyer",clearCaption:"Vider",chooseFileCaption:"Ajouter un fichier",removeFileCaption:"Enlever ce fichier",booleanCheckedLabel:"Oui",booleanUncheckedLabel:"Non",confirmRemoveFile:"Êtes-vous certains de vouloir supprimer ce fichier : {0}?",confirmRemoveAllFiles:"Êtes-vous certains de vouloir supprimer tous les fichiers?",questionTitlePatternText:"Titre de la question"},u.localeNames.fr="français";u.locales.ka={pagePrevText:"უკან",pageNextText:"შემდეგ",completeText:"დასრულება",progressText:"გვერდი {0} / {1}",emptySurvey:"არცერთი კითხვა არ არის.",completingSurvey:"გმადლობთ კითხვარის შევსებისთვის!",loadingSurvey:"ჩატვირთვა სერვერიდან...",otherItemText:"სხვა (გთხოვთ მიუთითეთ)",optionsCaption:"არჩევა...",requiredError:"გთხოვთ უპასუხეთ კითხვას.",numericError:"პასუხი უნდა იყოს რიცხვი.",textMinLength:"გთხოვთ შეიყვანეთ არანაკლებ {0} სიმბოლო.",minSelectError:"გთხოვთ აირჩიეთ არანაკლებ {0} ვარიანტი.",maxSelectError:"გთხოვთ აირჩიეთ არაუმეტეს {0} ვარიანტი.",numericMinMax:"'{0}' უნდა იყოს მეტი ან ტოლი, ვიდრე {1}, და ნაკლები ან ტოლი ვიდრე {2}",numericMin:"'{0}' უნდა იყოს მეტი ან ტოლი ვიდრე {1}",numericMax:"'{0}' უნდა იყოს ნაკლები ან ტოლი ვიდრე {1}",invalidEmail:"გთხოვთ შეიყვანოთ ელ. ფოსტის რეალური მისამართი.",otherRequiredEror:"გთხოვთ შეავსეთ ველი 'სხვა'"},u.localeNames.ka="ქართული";u.locales.de={pagePrevText:"Zurück",pageNextText:"Weiter",completeText:"Abschließen",previewText:"Vorschau",editText:"Bearbeiten",startSurveyText:"Start",otherItemText:"Sonstiges (Bitte angeben)",noneItemText:"Nichts trifft zu",selectAllItemText:"Alles auswählen",progressText:"Seite {0} von {1}",panelDynamicProgressText:"Eintrag {0} von {1}",questionsProgressText:"{0}/{1} Fragen beantwortet",emptySurvey:"Es sind keine Fragen vorhanden.",completingSurvey:"Vielen Dank, dass Sie die Umfrage abgeschlossen haben!",completingSurveyBefore:"Wir haben festgestellt, dass Sie diese Umfrage bereits abgeschlossen haben.",loadingSurvey:"Umfrage wird geladen...",optionsCaption:"Bitte auswählen...",value:"Wert",requiredError:"Bitte beantworten Sie diese Frage.",requiredErrorInPanel:"Bitte beantworten Sie mindestens eine Frage.",requiredInAllRowsError:"Bitte beantworten Sie alle Fragen.",numericError:"Der Wert muss eine Zahl sein.",textMinLength:"Bitte geben Sie mindestens {0} Zeichen ein.",textMaxLength:"Bitte geben Sie nicht mehr als {0} Zeichen ein.",textMinMaxLength:"Bitte geben Sie mindestens {0} und maximal {1} Zeichen ein.",minRowCountError:"Bitte machen Sie in mindestens {0} Zeilen eine Eingabe.",minSelectError:"Bitte wählen Sie mindestens {0} Antwort(en) aus.",maxSelectError:"Bitte wählen Sie nicht mehr als {0} Antwort(en) aus.",numericMinMax:"'{0}' muss größer oder gleich {1} und kleiner oder gleich {2} sein",numericMin:"'{0}' muss größer oder gleich {1} sein",numericMax:"'{0}' muss kleiner oder gleich {1} sein",invalidEmail:"Bitte geben Sie eine gültige E-Mail-Adresse ein.",invalidExpression:"Der Ausdruck: {0} muss den Wert 'wahr' zurückgeben.",urlRequestError:"Ein Netzwerkdienst hat folgenden Fehler zurückgegeben '{0}'. {1}",urlGetChoicesError:"Eine Netzwerkdienst hat ungültige Daten zurückgegeben",exceedMaxSize:"Die Datei darf nicht größer als {0} sein.",otherRequiredError:"Bitte geben Sie einen Wert an.",uploadingFile:"Bitte warten Sie bis der Upload Ihrer Dateien abgeschlossen ist.",loadingFile:"Wird hochgeladen...",chooseFile:"Datei(en) auswählen...",noFileChosen:"Keine Datei ausgewählt",confirmDelete:"Wollen Sie den Eintrag löschen?",keyDuplicationError:"Dieser Wert muss einmalig sein.",addColumn:"Spalte hinzufügen",addRow:"Zeile hinzufügen",removeRow:"Entfernen",addPanel:"Neu hinzufügen",removePanel:"Entfernen",choices_Item:"Element",matrix_column:"Spalte",matrix_row:"Zeile",savingData:"Die Ergebnisse werden auf dem Server gespeichert...",savingDataError:"Es ist ein Fehler aufgetreten. Die Ergebnisse konnten nicht gespeichert werden.",savingDataSuccess:"Die Ergebnisse wurden gespeichert!",saveAgainButton:"Erneut absenden",timerMin:"Min.",timerSec:"Sek.",timerSpentAll:"Sie waren {0} auf dieser Seite und brauchten insgesamt {1}.",timerSpentPage:"Sie waren {0} auf dieser Seite.",timerSpentSurvey:"Sie haben insgesamt {0} gebraucht.",timerLimitAll:"Sie waren {0} von {1} auf dieser Seite und brauchten insgesamt {2} von {3}.",timerLimitPage:"Sie waren {0} von {1} auf dieser Seite.",timerLimitSurvey:"Sie haben insgesamt {0} von {1} gebraucht.",cleanCaption:"Alles löschen",clearCaption:"Auswahl entfernen",chooseFileCaption:"Datei auswählen",removeFileCaption:"Datei löschen",booleanCheckedLabel:"Ja",booleanUncheckedLabel:"Nein",confirmRemoveFile:"Sind Sie sicher, dass Sie diese Datei löschen möchten: {0}?",confirmRemoveAllFiles:"Sind Sie sicher, dass Sie alle Dateien löschen möchten?",questionTitlePatternText:"Fragentitel"},u.localeNames.de="deutsch";u.locales.gr={pagePrevText:"Προηγούμενο",pageNextText:"Επόμενο",completeText:"Ολοκλήρωση",previewText:"Προεπισκόπηση",editText:"Επεξεργασία",startSurveyText:"Αρχή",otherItemText:"Άλλο (παρακαλώ διευκρινίστε)",noneItemText:"Κανένας",selectAllItemText:"Επιλογή όλων",progressText:"Σελίδα {0} από {1}",panelDynamicProgressText:"Εγγραφή {0} από {1}",questionsProgressText:"Απαντήθηκαν {0} / {1} ερωτήσεις",emptySurvey:"Δεν υπάρχει καμία ορατή σελίδα ή ορατή ερώτηση σε αυτό το ερωτηματολόγιο.",completingSurvey:"Ευχαριστούμε για την συμπλήρωση αυτού του ερωτηματολογίου!",completingSurveyBefore:"Τα αρχεία μας δείχνουν ότι έχετε ήδη ολοκληρώσει αυτήν την έρευνα.",loadingSurvey:"Το ερωτηματολόγιο φορτώνεται απο το διακομιστή...",optionsCaption:"Επιλέξτε...",value:"αξία",requiredError:"Παρακαλώ απαντήστε στην ερώτηση.",requiredErrorInPanel:"Απαντήστε σε τουλάχιστον μία ερώτηση.",requiredInAllRowsError:"Παρακαλώ απαντήστε στις ερωτήσεις σε όλες τις γραμμές.",numericError:"Η τιμή πρέπει να είναι αριθμητική.",textMinLength:"Παρακαλώ συμπληρώστε τουλάχιστον {0} σύμβολα.",textMaxLength:"Εισαγάγετε λιγότερους από {0} χαρακτήρες.",textMinMaxLength:"Εισαγάγετε περισσότερους από {0} και λιγότερους από {1} χαρακτήρες.",minRowCountError:"Παρακαλώ συμπληρώστε τουλάχιστον {0} γραμμές.",minSelectError:"Παρακαλώ επιλέξτε τουλάχιστον {0} παραλλαγές.",maxSelectError:"Παρακαλώ επιλέξτε όχι παραπάνω απο {0} παραλλαγές.",numericMinMax:"Το '{0}' θα πρέπει να είναι ίσο ή μεγαλύτερο απο το {1} και ίσο ή μικρότερο απο το {2}",numericMin:"Το '{0}' πρέπει να είναι μεγαλύτερο ή ισο με το {1}",numericMax:"Το '{0}' πρέπει να είναι μικρότερο ή ίσο απο το {1}",invalidEmail:"Παρακαλώ δώστε μια αποδεκτή διεύθυνση e-mail.",invalidExpression:"Η έκφραση: {0} θα πρέπει να επιστρέψει 'true'.",urlRequestError:"Η αίτηση επέστρεψε σφάλμα '{0}'. {1}",urlGetChoicesError:"Η αίτηση επέστρεψε κενά δεδομένα ή η ιδιότητα 'μονοπάτι/path' είναι εσφαλμένη",exceedMaxSize:"Το μέγεθος δεν μπορεί να υπερβαίνει τα {0}.",otherRequiredError:"Παρακαλώ συμπληρώστε την τιμή για το πεδίο 'άλλο'.",uploadingFile:"Το αρχείο σας ανεβαίνει. Παρακαλώ περιμένετε καποια δευτερόλεπτα και δοκιμάστε ξανά.",loadingFile:"Φόρτωση...",chooseFile:"Επιλογή αρχείων ...",noFileChosen:"Δεν έχει επιλεγεί αρχείο",confirmDelete:"Θέλετε να διαγράψετε την εγγραφή;",keyDuplicationError:"Αυτή η τιμή πρέπει να είναι μοναδική.",addColumn:"Προσθήκη στήλης",addRow:"Προσθήκη γραμμής",removeRow:"Αφαίρεση",addPanel:"Προσθεσε νεο",removePanel:"Αφαιρώ",choices_Item:"είδος",matrix_column:"Στήλη",matrix_row:"Σειρά",savingData:"Τα αποτελέσματα αποθηκεύονται στον διακομιστή ...",savingDataError:"Παρουσιάστηκε σφάλμα και δεν ήταν δυνατή η αποθήκευση των αποτελεσμάτων.",savingDataSuccess:"Τα αποτελέσματα αποθηκεύτηκαν με επιτυχία!",saveAgainButton:"Προσπάθησε ξανά",timerMin:"ελάχ",timerSec:"δευτ",timerSpentAll:"Έχετε δαπανήσει {0} σε αυτήν τη σελίδα και {1} συνολικά.",timerSpentPage:"Έχετε ξοδέψει {0} σε αυτήν τη σελίδα.",timerSpentSurvey:"Έχετε ξοδέψει συνολικά {0}.",timerLimitAll:"Έχετε δαπανήσει {0} από {1} σε αυτήν τη σελίδα και {2} από {3} συνολικά.",timerLimitPage:"Έχετε ξοδέψει {0} από {1} σε αυτήν τη σελίδα.",timerLimitSurvey:"Έχετε ξοδέψει {0} από {1} συνολικά.",cleanCaption:"ΚΑΘΑΡΗ",clearCaption:"Σαφή",chooseFileCaption:"Επιλέξτε το αρχείο",removeFileCaption:"Καταργήστε αυτό το αρχείο",booleanCheckedLabel:"Ναί",booleanUncheckedLabel:"Οχι",confirmRemoveFile:"Είστε βέβαιοι ότι θέλετε να καταργήσετε αυτό το αρχείο: {0};",confirmRemoveAllFiles:"Είστε βέβαιοι ότι θέλετε να καταργήσετε όλα τα αρχεία;",questionTitlePatternText:"Τίτλος ερώτησης"},u.localeNames.gr="ελληνικά";u.locales.he={pagePrevText:"אחורה",pageNextText:"קדימה",completeText:"סיום",previewText:"תצוגה מקדימה",editText:"לַעֲרוֹך",startSurveyText:"הַתחָלָה",otherItemText:"אחר (נא לתאר)",noneItemText:"אף אחד",selectAllItemText:"בחר הכל",progressText:"דף {1} מתוך {0}",panelDynamicProgressText:"הקלטה {0} מתוך {1}",questionsProgressText:"ענה על שאלות",emptySurvey:"אין שאלות",completingSurvey:"תודה על מילוי השאלון!",completingSurveyBefore:"הרשומות שלנו מראות שכבר סיימת את הסקר הזה.",loadingSurvey:"טעינה מהשרת...",optionsCaption:"בחר...",value:"ערך",requiredError:"אנא השב על השאלה",requiredErrorInPanel:"אנא ענה לפחות על שאלה אחת.",requiredInAllRowsError:"אנא ענה על שאלות בכל השורות.",numericError:"התשובה צריכה להיות מספר.",textMinLength:"הזן לפחות {0} תווים.",textMaxLength:"הזן פחות מ- {0} תווים.",textMinMaxLength:"הזן יותר מ- {0} ופחות מ- {1} תווים.",minRowCountError:"אנא מלא לפחות {0} שורות.",minSelectError:"בחר לפחות {0} אפשרויות.",maxSelectError:"בחר עד {0} אפשרויות.",numericMinMax:"'{0}' חייב להיות שווה או גדול מ {1}, ושווה ל- {2} או פחות מ- {}}",numericMin:"'{0}' חייב להיות שווה או גדול מ {1}",numericMax:"'{0}' חייב להיות שווה או קטן מ {1}",invalidEmail:'הזן כתובת דוא"ל חוקית.',invalidExpression:"הביטוי: {0} צריך להחזיר 'אמת'.",urlRequestError:"הבקשה החזירה את השגיאה '{0}'. {1}",urlGetChoicesError:"הבקשה החזירה נתונים ריקים או שהמאפיין 'נתיב' שגוי",exceedMaxSize:"גודל הקובץ לא יעלה על {0}.",otherRequiredError:'נא להזין נתונים בשדה "אחר"',uploadingFile:"הקובץ שלך נטען. המתן מספר שניות ונסה שוב.",loadingFile:"טוען...",chooseFile:"לבחור קבצים...",noFileChosen:"לא נבחר קובץ",confirmDelete:"האם אתה רוצה למחוק את הרשומה?",keyDuplicationError:"ערך זה צריך להיות ייחודי.",addColumn:"הוסף עמודה",addRow:"להוסיף שורה",removeRow:"לְהַסִיר",addPanel:"הוסף חדש",removePanel:"לְהַסִיר",choices_Item:"פריט",matrix_column:"טור",matrix_row:"שׁוּרָה",savingData:"התוצאות נשמרות בשרת ...",savingDataError:"אירעה שגיאה ולא הצלחנו לשמור את התוצאות.",savingDataSuccess:"התוצאות נשמרו בהצלחה!",saveAgainButton:"נסה שוב",timerMin:"דקה",timerSec:"שניות",timerSpentAll:"הוצאת {0} בדף זה ובסך הכל {1}.",timerSpentPage:"הוצאת {0} בדף זה.",timerSpentSurvey:"הוצאת סכום כולל של {0}.",timerLimitAll:"הוצאת {0} מתוך {1} בדף זה ו- {2} מתוך {3} בסך הכל.",timerLimitPage:"הוצאת {0} מתוך {1} בדף זה.",timerLimitSurvey:"הוצאת סכום כולל של {0} מתוך {1}.",cleanCaption:"לְנַקוֹת",clearCaption:"ברור",chooseFileCaption:"בחר קובץ",removeFileCaption:"הסר קובץ זה",booleanCheckedLabel:"כן",booleanUncheckedLabel:"לא",confirmRemoveFile:"האם אתה בטוח שברצונך להסיר קובץ זה: {0}?",confirmRemoveAllFiles:"האם אתה בטוח שברצונך להסיר את כל הקבצים?",questionTitlePatternText:"כותרת שאלה"},u.localeNames.he="עברית";u.locales.hi={pagePrevText:"पिछला",pageNextText:"अगला",completeText:"पूरा",previewText:"पूर्वसमीक्षा",editText:"संपादित",startSurveyText:"शुरू",otherItemText:"दूसरा (वर्णन करें)",noneItemTex:"कोई नहीं",selectAllItemText:"सभी का चयन करें",progressText:"पृष्ठ 1 में से 0",panelDynamicProgressText:" दस्तावेज {1} के {0}",questionsProgressText:"{1} सवालों में से {0} के जवाब दिए",emptySurvey:"सर्वेक्षण में कोई दृश्यमान पृष्ठ या प्रश्न नहीं है",completingSurvey:"सर्वेक्षण को पूरा करने के लिए धन्यवाद",completingSurveyBefore:" हमारे रिकॉर्ड बताते हैं कि आप पहले ही इस सर्वेक्षण को पूरा कर चुके हैं",loadingSurvey:"सर्वेक्षण खुल रहा है.…",optionsCaption:"चुनें",value:"मूल्य",requiredError:"कृपया प्रश्न का उत्तर दें",requiredErrorInPanel:"कृपया कम से कम एक प्रश्न का उत्तर दें",requiredInAllRowsError:"कृपया सभी पंक्तियों में सवालों के जवाब दें",numericError:"मूल्य संख्यात्मक होना चाहिए",textMinLength:"कृपया कम से कम {0} वर्ण दर्ज करें",textMaxLength:"कृपया {0} से कम वर्ण दर्ज करें",textMinMaxLength:"कृपया {0} से अधिक और {1} से कम पात्रों में प्रवेश करें",minRowCountError:"कृपया कम से कम {0} पंक्तियों को भरें",minSelectError:"कृपया कम से कम {0} विकल्प का चयन करें",maxSelectError:"कृपया {0} विकल्पों से अधिक नहीं चुनें",numericMinMax:"'{0}' {1} से बराबर या अधिक और {2} से बराबर या कम होना चाहिए",numericMin:"'{0}' {1} से बराबर या अधिक होना चाहिए",numericMax:"'{0}' {1} से बराबर या कम होना चाहिए",invalidEmail:"कृपया एक वैध ईमेल पता दर्ज करें",invalidExpression:"अभिव्यक्ति: {0} को ' सच ' लौटना चाहिए",urlRequestError:"अनुरोध लौटाया त्रुटि '{0}' . {1}",urlGetChoicesError:"अनुरोध ने खाली डेटा वापस कर दिया है ",exceedMaxSize:"फ़ाइल का आकार {0} से अधिक नहीं होना चाहिए  या फिर 'पाथ' प्रॉपर्टी गलत है",otherRequiredError:"कृपया दूसरा मूल्य दर्ज करें",uploadingFile:"आपकी फाइल अपलोड हो रही है। कृपया कई सेकंड इंतजार करें और फिर से प्रयास करें।",loadingFile:"लोडिंग",chooseFile:"फ़ाइल चुनें",noFileChosen:"कोई फाइल नहीं चुनी गई",confirmDelete:"क्या आप रिकॉर्ड हटाना चाहते हैं",keyDuplicationError:"यह मान अनोखा होना चाहिए",addColumn:"कॉलम जोड़ें",addRow:"पंक्ति जोड़ें",removeRow:"हटाए",addPanel:"नया जोड़ें",removePanel:"हटाए",choices_Item:"मद",matrix_column:"कॉलम",matrix_row:"पंक्ति",savingData:"परिणाम सर्वर पर सेव हो रहे हैं",savingDataError:"एक त्रुटि हुई और हम परिणामों को नहीं सेव कर सके",savingDataSuccess:"परिणाम सफलतापूर्वक सेव हो गए",saveAgainButton:"फिर कोशिश करो",timerMin:"मिनट",timerSec:"सेकंड",timerSpentAll:"आपने इस पृष्ठ पर {0} खर्च किए हैं और कुल {1}",timerSpentPage:"आपने इस पृष्ठ पर {0} खर्च किया है",timerSpentSurvey:"आपने कुल {0} खर्च किया है",timerLimitAll:"आपने इस पृष्ठ पर {1} की {0} और कुल {3} की {2} खर्च की है।",timerLimitPage:"आपने इस पृष्ठ पर {1} का {0} खर्च किया है",timerLimitSurvey:"आपने कुल {1} की {0} खर्च की है",cleanCaption:"साफ",clearCaption:"स्पष्ट",chooseFileCaption:"फ़ाइल चुनें",removeFileCaption:"इस फाइल को निकालें",booleanCheckedLabel:"हाँ",booleanUncheckedLabel:"नहीं",confirmRemoveFile:"क्या आप सुनिश्चित हैं कि आप इस फ़ाइल को हटाना चाहते हैं: {0}",confirmRemoveAllFiles:"क्या आप सुनिश्चित हैं कि आप सभी फ़ाइलों को हटाना चाहते हैं",questionTitlePatternText:"प्रश्न का शीर्षक"},u.localeNames.hi="hindi";u.locales.hu={pagePrevText:"Vissza",pageNextText:"Tovább",completeText:"Kész",previewText:"Előnézet",editText:"Szerkesztés",startSurveyText:"Rajt",otherItemText:"Egyéb (adja meg)",noneItemText:"Egyik sem",selectAllItemText:"Mindet kiválaszt",progressText:"{0}./{1} oldal",panelDynamicProgressText:"{0} / {1} rekord",questionsProgressText:"Válaszolt kérdések: {0} / {1}",emptySurvey:"There is no visible page or question in the survey.",completingSurvey:"Köszönjük, hogy kitöltötte felmérésünket!",completingSurveyBefore:"Már kitöltötte a felmérést.",loadingSurvey:"Felmérés betöltése...",optionsCaption:"Válasszon...",value:"érték",requiredError:"Kérjük, válaszolja meg ezt a kérdést!",requiredErrorInPanel:"Kérjük, válaszoljon legalább egy kérdésre.",requiredInAllRowsError:"Kérjük adjon választ minden sorban!",numericError:"Az érték szám kell, hogy legyen!",textMinLength:"Adjon meg legalább {0} karaktert!",textMaxLength:"Legfeljebb {0} karaktert adjon meg!",textMinMaxLength:"Adjon meg legalább {0}, de legfeljebb {1} karaktert!",minRowCountError:"Töltsön ki minimum {0} sort!",minSelectError:"Válasszon ki legalább {0} lehetőséget!",maxSelectError:"Ne válasszon többet, mint {0} lehetőség!",numericMinMax:"'{0}' legyen nagyobb, vagy egyenlő, mint {1} és kisebb, vagy egyenlő, mint {2}!",numericMin:"'{0}' legyen legalább {1}!",numericMax:"The '{0}' ne legyen nagyobb, mint {1}!",invalidEmail:"Adjon meg egy valós email címet!",invalidExpression:"A következő kifejezés: {0} vissza kell adnia az „igaz” értéket.",urlRequestError:"A lekérdezés hibával tért vissza: '{0}'. {1}",urlGetChoicesError:"A lekérdezés üres adattal tért vissza, vagy a 'path' paraméter helytelen.",exceedMaxSize:"A méret nem lehet nagyobb, mint {0}.",otherRequiredError:"Adja meg az egyéb értéket!",uploadingFile:"Feltöltés folyamatban. Várjon pár másodpercet, majd próbálja újra.",loadingFile:"Betöltés...",chooseFile:"Fájlok kiválasztása ...",noFileChosen:"Nincs kiválasztva fájl",confirmDelete:"Törli ezt a rekordot?",keyDuplicationError:"Az értéknek egyedinek kell lennie.",addColumn:"Oszlop hozzáadása",addRow:"Sor hozzáadása",removeRow:"Eltávolítás",addPanel:"Új hozzáadása",removePanel:"Eltávolítás",choices_Item:"elem",matrix_column:"Oszlop",matrix_row:"Sor",savingData:"Eredmény mentése a szerverre...",savingDataError:"Egy hiba folytán nem tudtuk elmenteni az eredményt.",savingDataSuccess:"Eredmény sikeresen mentve!",saveAgainButton:"Próbálja újra",timerMin:"min",timerSec:"sec",timerSpentAll:"Ön {0} összeget költött ezen az oldalon, és összesen {1}.",timerSpentPage:"{0} összeget költött ezen az oldalon.",timerSpentSurvey:"Összesen {0} költött.",timerLimitAll:"Ön {0} / {1} összeget költött ezen az oldalon, és összesen {2} / {3}.",timerLimitPage:"Ön {0} / {1} összeget költött ezen az oldalon.",timerLimitSurvey:"Összesen {0} / {1} összeget költött el.",cleanCaption:"Tiszta",clearCaption:"Egyértelmű",chooseFileCaption:"Válassz fájlt",removeFileCaption:"Távolítsa el ezt a fájlt",booleanCheckedLabel:"Igen",booleanUncheckedLabel:"Nem",confirmRemoveFile:"Biztosan eltávolítja ezt a fájlt: {0}?",confirmRemoveAllFiles:"Biztosan el akarja távolítani az összes fájlt?",questionTitlePatternText:"Kérdés címe"},u.localeNames.hu="magyar";u.locales.is={pagePrevText:"Tilbaka",pageNextText:"Áfram",completeText:"Lokið",previewText:"Forskoða",editText:"Breyta",startSurveyText:"Byrjaðu",otherItemText:"Hinn (skýring)",noneItemText:"Enginn",selectAllItemText:"Velja allt",progressText:"Síða {0} of {1}",panelDynamicProgressText:"Taka upp {0} af {1}",questionsProgressText:"Svarað {0} / {1} spurningum",emptySurvey:"Það er enginn síða eða spurningar í þessari könnun.",completingSurvey:"Takk fyrir að fyllja út þessa könnun!",completingSurveyBefore:"Skrár okkar sýna að þú hefur þegar lokið þessari könnun.",loadingSurvey:"Könnunin er að hlaða...",optionsCaption:"Veldu...",value:"gildi",requiredError:"Vinsamlegast svarið spurningunni.",requiredErrorInPanel:"Vinsamlegast svaraðu að minnsta kosti einni spurningu.",requiredInAllRowsError:"Vinsamlegast svarið spurningum í öllum röðum.",numericError:"Þetta gildi verður að vera tala.",textMinLength:"Það ætti að vera minnst {0} tákn.",textMaxLength:"Það ætti að vera mest {0} tákn.",textMinMaxLength:"Það ætti að vera fleiri en {0} og færri en {1} tákn.",minRowCountError:"Vinsamlegast fyllið úr að minnsta kosti {0} raðir.",minSelectError:"Vinsamlegast veljið að minnsta kosti {0} möguleika.",maxSelectError:"Vinsamlegast veljið ekki fleiri en {0} möguleika.",numericMinMax:"'{0}' ætti að vera meira en eða jafnt og {1} minna en eða jafnt og {2}",numericMin:"{0}' ætti að vera meira en eða jafnt og {1}",numericMax:"'{0}' ætti að vera minna en eða jafnt og {1}",invalidEmail:"Vinsamlegast sláið inn gilt netfang.",invalidExpression:"Tjáningin: {0} ætti að skila 'satt'.",urlRequestError:"Beiðninn skilaði eftirfaranadi villu '{0}'. {1}",urlGetChoicesError:"Beiðninng skilaði engum gögnum eða slóðinn var röng",exceedMaxSize:"Skráinn skal ekki vera stærri en {0}.",otherRequiredError:"Vinamlegast fyllið út hitt gildið.",uploadingFile:"Skráinn þín var send. Vinsamlegast bíðið í nokkrar sekúndur og reynið aftur.",loadingFile:"Hleður ...",chooseFile:"Veldu skrár ...",noFileChosen:"Engin skrá valin",confirmDelete:"Viltu eyða skránni?",keyDuplicationError:"Þetta gildi ætti að vera einstakt.",addColumn:"Bæta við dálki",addRow:"Bæta við röð",removeRow:"Fjarlægja",addPanel:"Bæta við nýju",removePanel:"Fjarlægðu",choices_Item:"hlutur",matrix_column:"Dálkur",matrix_row:"Röð",savingData:"Niðurstöðurnar eru að spara á netþjóninum ... ",savingDataError:"Villa kom upp og við gátum ekki vistað niðurstöðurnar.",savingDataSuccess:"Árangurinn var vistaður með góðum árangri!",saveAgainButton:"Reyndu aftur",timerMin:"mín",timerSec:"sek",timerSpentAll:"Þú hefur eytt {0} á þessari síðu og {1} samtals.",timerSpentPage:"Þú hefur eytt {0} á þessari síðu.",timerSpentSurvey:"Þú hefur eytt {0} samtals.",timerLimitAll:"Þú hefur eytt {0} af {1} á þessari síðu og {2} af {3} samtals.",timerLimitPage:"Þú hefur eytt {0} af {1} á þessari síðu.",timerLimitSurvey:"Þú hefur eytt {0} af {1} samtals.",cleanCaption:"Hreint",clearCaption:"Hreinsa",chooseFileCaption:"Veldu skrá",removeFileCaption:"Fjarlægðu þessa skrá",booleanCheckedLabel:"Já",booleanUncheckedLabel:"Nei",confirmRemoveFile:"Ertu viss um að þú viljir fjarlægja þessa skrá: {0}?",confirmRemoveAllFiles:"Ertu viss um að þú viljir fjarlægja allar skrár?",questionTitlePatternText:"Spurningartitill"},u.localeNames.is="íslenska";u.locales.id={pagePrevText:"Sebelumnya",pageNextText:"Selanjutnya",completeText:"Selesai",previewText:"Pratinjau",editText:"Sunting",startSurveyText:"Mulai",otherItemText:"Lainnya (jelaskan)",noneItemText:"Tidak Ada",selectAllItemText:"Pilih Semua",progressText:"Halaman {0} dari {1}",panelDynamicProgressText:"Rekam {0} dari {1}",questionsProgressText:"Menjawab pertanyaan {0} / {1}",emptySurvey:"Tidak ada halaman atau pertanyaan dalam survei.",completingSurvey:"Terima kasih telah menyelesaikan survei!",completingSurveyBefore:"Catatan kami menunjukkan bahwa Anda telah menyelesaikan survei ini.",loadingSurvey:"Memuat survei...",optionsCaption:"Pilih...",value:"nilai",requiredError:"Silahkan jawab pertanyaan berikut.",requiredErrorInPanel:"Silahkan jawab setidaknya satu petanyaan.",requiredInAllRowsError:"Silahkan jawab pertanyaan pada semua baris.",numericError:"Nilai harus berupa angka.",textMinLength:"Silahkan masukkan setidaknya {0} karakter.",textMaxLength:"Silahkan masukkan kurang {0} karakter.",textMinMaxLength:"PSilahkan masukkan lebih dari {0} dan kurang dari {1} karakter.",minRowCountError:"Silahkan isi setidaknya {0} baris.",minSelectError:"Silahkan pilih setidaknya {0} varian.",maxSelectError:"Silahkan pilih tidak lebih dari {0} varian.",numericMinMax:"'{0}' harus sama dengan atau lebih dari {1} dan harus sama dengan atau kurang dari {2}",numericMin:"'{0}' harus sama dengan atau lebih dari {1}",numericMax:"'{0}' harus sama dengan atau kurang dari {1}",invalidEmail:"Silahkan masukkan e-mail yang benar.",invalidExpression:"Ekspresi: {0} harus mengembalikan 'benar'.",urlRequestError:"Permintaan mengembalikan kesalahan '{0}'. {1}",urlGetChoicesError:"Permintaan mengembalikan data kosong atau properti 'path' salah.",exceedMaxSize:"Ukuran berkas tidak boleh melebihi {0}.",otherRequiredError:"Silahkan masukkan nilai lainnnya.",uploadingFile:"Berkas Anda sedang diunggah. Silahkan tunggu beberapa saat atau coba lagi.",loadingFile:"Memuat...",chooseFile:"Pilih berkas...",noFileChosen:"Tidak ada file yang dipilih",confirmDelete:"Apakah Anda ingin menghapus catatan?",keyDuplicationError:"Nilai harus unik.",addColumn:"Tambah kolom",addRow:"Tambah baris",removeRow:"Hapus",addPanel:"Tambah baru",removePanel:"Hapus",choices_Item:"item",matrix_column:"Kolom",matrix_row:"Baris",savingData:"Hasil sedang disimpan pada server...",savingDataError:"Kesalahan terjadi dan kami tidak dapat menyimpan hasil.",savingDataSuccess:"Hasil telah sukses disimpan!",saveAgainButton:"Coba lagi",timerMin:"menit",timerSec:"detik",timerSpentAll:"Anda telah menghabiskan {0} pada halaman ini dan {1} secara keseluruhan.",timerSpentPage:"YAnda telah menghabiskan {0} pada halaman ini.",timerSpentSurvey:"Anda telah menghabiskan {0} secara keseluruhan.",timerLimitAll:"Anda telah menghabiskan {0} dari {1} pada halaman ini dan {2} dari {3} secara keseluruhan.",timerLimitPage:"Anda telah menghabiskan {0} dari {1} pada halaman ini.",timerLimitSurvey:"Anda telah menghabiskan {0} dari {1} secara keseluruhan.",cleanCaption:"Bersihkan",clearCaption:"Bersihkan",chooseFileCaption:"Pilih File",removeFileCaption:"Hapus berkas ini",booleanCheckedLabel:"Iya",booleanUncheckedLabel:"Tidak",confirmRemoveFile:"Anda yakin ingin menghapus file ini: {0}?",confirmRemoveAllFiles:"Anda yakin ingin menghapus semua file?",questionTitlePatternText:"Judul pertanyaan"},u.localeNames.id="bahasa Indonesia";u.locales.it={pagePrevText:"Precedente",pageNextText:"Successivo",completeText:"Salva",previewText:"Anteprima",editText:"Modifica",startSurveyText:"Inizio",otherItemText:"Altro (descrivi)",noneItemText:"Nessuno",selectAllItemText:"Seleziona tutti",progressText:"Pagina {0} di {1}",panelDynamicProgressText:"Record di {0} di {1}",questionsProgressText:"Risposte a {0}/{1} domande",emptySurvey:"Non ci sono pagine o domande visibili nel questionario.",completingSurvey:"Grazie per aver completato il questionario!",completingSurveyBefore:"I nostri records mostrano che hai già completato questo questionario.",loadingSurvey:"Caricamento del questionario in corso...",optionsCaption:"Scegli...",value:"valore",requiredError:"Campo obbligatorio",requiredErrorInPanel:"Per Favore, rispondi ad almeno una domanda.",requiredInAllRowsError:"Completare tutte le righe",numericError:"Il valore deve essere numerico",textMinLength:"Inserire almeno {0} caratteri",textMaxLength:"Lunghezza massima consentita {0} caratteri",textMinMaxLength:"Inserire una stringa con minimo {0} e massimo {1} caratteri",minRowCountError:"Completare almeno {0} righe.",minSelectError:"Selezionare almeno {0} varianti.",maxSelectError:"Selezionare massimo {0} varianti.",numericMinMax:"'{0}' deve essere uguale o superiore a {1} e uguale o inferiore a {2}",numericMin:"'{0}' deve essere uguale o superiore a {1}",numericMax:"'{0}' deve essere uguale o inferiore a {1}",invalidEmail:"Inserire indirizzo mail valido",invalidExpression:"L'espressione: {0} dovrebbe tornare 'vero'.",urlRequestError:"La richiesta ha risposto con un errore '{0}'. {1}",urlGetChoicesError:"La richiesta ha risposto null oppure il percorso non è corretto",exceedMaxSize:"Il file non può eccedere {0}",otherRequiredError:"Inserire il valore 'altro'",uploadingFile:"File in caricamento. Attendi alcuni secondi e riprova",loadingFile:"Caricamento...",chooseFile:"Selezionare file(s)...",noFileChosen:"Nessun file selezionato",confirmDelete:"Sei sicuro di voler elminare il record?",keyDuplicationError:"Questo valore deve essere univoco.",addColumn:"Aggiungi colonna",addRow:"Aggiungi riga",removeRow:"Rimuovi riga",addPanel:"Aggiungi riga",removePanel:"Elimina",choices_Item:"Elemento",matrix_column:"Colonna",matrix_row:"Riga",savingData:"Salvataggio dati sul server...",savingDataError:"Si è verificato un errore e non è stato possibile salvare i risultati.",savingDataSuccess:"I risultati sono stati salvati con successo!",saveAgainButton:"Riprova",timerMin:"min",timerSec:"sec",timerSpentAll:"Hai impiegato {0} su questa pagina e {1} in totale.",timerSpentPage:"Hai impiegato {0} su questa pagina.",timerSpentSurvey:"Hai impiegato {0} in totale.",timerLimitAll:"Hai impiegato {0} di {1} su questa pagina e {2} di {3} in totale.",timerLimitPage:"Hai impiegato {0} di {1} su questa pagina.",timerLimitSurvey:"Hai impiegato {0} di {1} in totale.",cleanCaption:"Pulisci",clearCaption:"Cancella",chooseFileCaption:"Scegliere il file",removeFileCaption:"Rimuovere questo file",booleanCheckedLabel:"Sì",booleanUncheckedLabel:"No",confirmRemoveFile:"Sei sicuro di voler elminare questo file: {0}?",confirmRemoveAllFiles:"Sei sicuro di voler elminare tutti i files?",questionTitlePatternText:"Titolo della domanda"},u.localeNames.it="italiano";u.locales.ja={pagePrevText:"前へ",pageNextText:"次へ",completeText:"完了",previewText:"プレビュー",editText:"編集",startSurveyText:"スタート",otherItemText:"その他（説明）",noneItemText:"なし",selectAllItemText:"すべて選択",progressText:"{0}/{1}頁",panelDynamicProgressText:"{1}の{0}を記録する",questionsProgressText:"{0}/{1}の質問に回答しました。",emptySurvey:"この調査に表示できるページや質問はありません",completingSurvey:"調査を完了してくれてありがとうございました",completingSurveyBefore:"当社の記録によると、この調査はすでに完了しています。",loadingSurvey:"調査をダウンロード中",optionsCaption:"選択",value:"値打ち",requiredError:"質問にお答え下さい",requiredErrorInPanel:"最低でも1つの質問に答えてください。",requiredInAllRowsError:"質問には全列で回答してください。",numericError:"数字でご記入下さい",textMinLength:"{0} 文字以上で入力して下さい",textMaxLength:"{0}文字以下で入力してください。",textMinMaxLength:"{0}以上{1}未満の文字を入力してください。",minRowCountError:"{0}行以上で入力して下さい",minSelectError:"{0}種類以上を選択して下さい",maxSelectError:"{0}以上のバリアントを選択しないでください。",numericMinMax:"{0}は{1}以上であり、{2}以下であることが望ましい。",numericMin:"'{0}' は同等か{1}より大きくなければなりません",numericMax:"'{0}' は同等か{1}より小さくなければなりません",invalidEmail:"有効なメールアドレスをご記入下さい",invalidExpression:"式は {0}は'true'を返すべきです。",urlRequestError:"リクエストはエラー '{0}' を返しました。{1}",urlGetChoicesError:"リクエストが空のデータを返したか、'path' プロパティが正しくありません。",exceedMaxSize:"ファイルのサイズは{0}を超えてはいけません",otherRequiredError:"その他の値を入力してください。",uploadingFile:"ファイルをアップロード中です。しばらくしてから再度お試し下さい",loadingFile:"読み込み中",chooseFile:"ファイルを選択",noFileChosen:"選択されたファイルはありません",confirmDelete:"レコードを削除しますか？",keyDuplicationError:"この値は一意でなければなりません。",addColumn:"列の追加",addRow:"追加行",removeRow:"除去",addPanel:"新規追加",removePanel:"除去",choices_Item:"品目",matrix_column:"コラム",matrix_row:"行",savingData:"結果はサーバーに保存されています...。",savingDataError:"エラーが発生し、結果を保存できませんでした。",savingDataSuccess:"結果は無事に保存されました",saveAgainButton:"もう一度試してみてください。",timerMin:"僅少",timerSec:"セック",timerSpentAll:"あなたはこのページに{0}を費やし、合計で{1}を費やしました。",timerSpentPage:"あなたはこのページに{0}を費やしました。",timerSpentSurvey:"合計で{0}を使ったことになります。",timerLimitAll:"このページに{1}のうち{0}を費やし、{3}のうち{2}を合計で費やしました。",timerLimitPage:"このページで{1}の{0}を使ったことがあります。",timerLimitSurvey:"合計で{1}の{0}を使ったことがあります。",cleanCaption:"削除",clearCaption:"空白",chooseFileCaption:"ファイルを選択",removeFileCaption:"このファイルを削除",booleanCheckedLabel:"噫",booleanUncheckedLabel:"否",confirmRemoveFile:"このファイルを削除してもよろしいですか？{0}?",confirmRemoveAllFiles:"すべてのファイルを削除してもよろしいですか？",questionTitlePatternText:"質問名"},u.localeNames.ja="日本語";u.locales.kk={pagePrevText:"Артқа",pageNextText:"Келесі",completeText:"Дайын",previewText:"Алдын ала қарау",editText:"Редакциялау",startSurveyText:"Бастау",otherItemText:"Басқа (өтінеміз, жазыңыз)",noneItemText:"Жоқ",selectAllItemText:"Барлығын таңдау",progressText:"{0} ден {1} бет ",panelDynamicProgressText:"{0} ден {1} жазба",questionsProgressText:"{0}/{1} сұрақтарға жауап",emptySurvey:"Бір де бір сұрақ жоқ.",completingSurvey:"Сауалнаманы толтырғаныңыз үшін рахмет!",completingSurveyBefore:"Сіз бұл сауалнаманы өтіп қойдыңыз.",loadingSurvey:"Серверден жүктеу...",optionsCaption:"Таңдау...",value:"мәні",requiredError:"Өтінеміз, сұраққа жауап беріңіз.",requiredErrorInPanel:"Өтінеміз, кем дегенде бір сұраққа жауап беріңіз.",requiredInAllRowsError:"Өтінеміз, әрбір жолдың сұрағаны жауап беріңіз.",numericError:"Жауап сан түрінде болуы керек.",textMinLength:"Өтінеміз, {0} ден көп таңба енгізіңіз.",textMaxLength:"Өтінеміз, {0} ден аз таңба енгізіңіз.",textMinMaxLength:"Өтінеміз, {0} аз және {1} көп таңба енгізіңіз.",minRowCountError:"Өтінеміз, {0} ден кем емес жол толтырыңыз.",minSelectError:"Өтінеміз, тым болмаса {0} нұсқа таңдаңыз.",maxSelectError:"Өтінеміз, {0} нұсқадан көп таңдамаңыз.",numericMinMax:"'{0}' {1} ден кем емес және {2} ден көп емес болу керек",numericMin:"'{0}' {1} ден кем емес болу керек",numericMax:"'{0}' {1} ден көп емес болу керек",invalidEmail:"Өтінеміз, жарамды электрондық поштаңызды енгізіңіз.",invalidExpression:"{0} өрнегі  'true' қайтару керек.",urlRequestError:"Сұратым қателікті қайтарды'{0}'. {1}",urlGetChoicesError:"Сұратымға жауап бос келді немесе 'path' қасиеті қате көрсетілген ",exceedMaxSize:"Файлдың мөлшері {0} аспау керек.",otherRequiredError:"Өтінеміз, “Басқа” жолына деректі енгізіңіз",uploadingFile:"Сіздің файлыңыз жүктеліп жатыр. Бірнеше секунд тосып, қайтадан байқап көріңіз.",loadingFile:"Жүктеу...",chooseFile:"Файлдарды таңдаңыз...",noFileChosen:"Файл таңдалынбады",confirmDelete:"Сіз жазбаны жоятыныңызға сенімдісіз бе?",keyDuplicationError:"Бұл мән бірегей болу керек.",addColumn:"Бағана қосу",addRow:"Жолды қосу",removeRow:"Өшіру",addPanel:"Жаңа қосу",removePanel:"Өшіру",choices_Item:"Нұсқа",matrix_column:"Бағана",matrix_row:"Жол",savingData:"Нәтижелер серверде сақталады...",savingDataError:"Қателік туындады, нәтиже сақталынбады.",savingDataSuccess:"Нәтиже ойдағыдай сақталды!",saveAgainButton:"Қайтадан байқап көру",timerMin:"мин",timerSec:"сек",timerSpentAll:"Сіз бұл бетте {0} кетірдіңіз және барлығы {1}.",timerSpentPage:"Сіз бұл бетте {0} кетірдіңіз.",timerSpentSurvey:"Сіз сауалнама кезінде {0} кетірдіңіз.",timerLimitAll:"Сіз бұл бетте {0} ден {1} кетірдіңіз және {2} ден {3} бүкіл сауалнама үшін.",timerLimitPage:"Сіз бұл бетте {0} ден {1} кетірдіңіз.",timerLimitSurvey:"Сіз бүкіл сауалнама үшін {0} ден {1} кетірдіңіз ",cleanCaption:"Тазалау",clearCaption:"Тазалау",chooseFileCaption:"Файл таңдаңыз",removeFileCaption:"Файлды жойыңыз",booleanCheckedLabel:"Иә",booleanUncheckedLabel:"Жоқ",confirmRemoveFile:"Сіз бұл файлды жоятыныңызға сенімдісіз бе: {0}?",confirmRemoveAllFiles:"Сіз барлық файлдарды жоятыныңызға сенімдісіз бе?",questionTitlePatternText:"Сұрақтың атауы"},u.localeNames.kk="Kazakh";u.locales.ko={pagePrevText:"이전",pageNextText:"다음",completeText:"완료",previewText:"시사",editText:"편집하다",startSurveyText:"시작",otherItemText:"기타(설명)",noneItemText:"없음",selectAllItemText:"모두 선택",progressText:"페이지 {1} 중 {0}",panelDynamicProgressText:"{0} / {1} 기록",questionsProgressText:"{0} / {1} 개의 질문에 답변 함",emptySurvey:"설문지에 보여지는 페이지나 질문이 없습니다",completingSurvey:"설문 조사를 완료해 주셔서 감사합니다!",completingSurveyBefore:"기록에 따르면 이미 설문 조사를 마치셨습니다.",loadingSurvey:"설문조사가 로드중입니다...",optionsCaption:"선택하십시오...",value:"값",requiredError:"질문에 답하시오.",requiredErrorInPanel:"하나 이상의 질문에 답하십시오.",requiredInAllRowsError:"모든 행에 있는 질문에 답하십시오.",numericError:"값은 숫자여야 합니다.",textMinLength:"답변의 길이는 최소 {0}자여야 입니다.",textMaxLength:"답변의 길이는 {0}자를 초과 할 수 없습니다.",textMinMaxLength:"답변의 길이는 {0} - {1}자 사이여야 합니다.",minRowCountError:"최소 {0}개의 행을 채우십시오",minSelectError:"최소 {0}개의 변수를 선택하십시오.",maxSelectError:"최대 {0}개의 변수를 선택하십시오.",numericMinMax:"'{0}'은 {1}보다 크거나 같고 {2}보다 작거나 같아야합니다.",numericMin:"'{0}'은 {1}보다 크거나 같아야합니다.",numericMax:"'{0}'은 {1}보다 작거나 같아야합니다.",invalidEmail:"올바른 이메일 주소를 입력하십시오.",invalidExpression:"표현식: {0}은 '참'이어야 합니다.",urlRequestError:"'{0}'으로 잘못된 요청입니다. {1}",urlGetChoicesError:"비어있는 데이터를 요청했거나 잘못된 속성의 경로입니다.",exceedMaxSize:"파일 크기가 {0}을 초과 할 수 없습니다.",otherRequiredError:"다른 질문을 작성하십시오.",uploadingFile:"파일 업로드 중입니다. 잠시 후 다시 시도하십시오.",loadingFile:"로드 중...",chooseFile:"파일 선택...",noFileChosen:"선택된 파일이 없습니다",confirmDelete:"기록을 삭제하시겠습니까?",keyDuplicationError:" 이 값은 고유해야합니다.",addColumn:"열 추가",addRow:"행 추가",removeRow:"제거",addPanel:"새롭게 추가",removePanel:"제거",choices_Item:"항목",matrix_column:"열",matrix_row:"행",savingData:"결과가 서버에 저장 중입니다...",savingDataError:"오류가 발생하여 결과를 저장할 수 없습니다.",savingDataSuccess:"결과가 성공적으로 저장되었습니다!",saveAgainButton:"다시 시도하십시오",timerMin:"분",timerSec:"초",timerSpentAll:"현재 페이지에서 {0}을 소요해 총 {1}이 걸렸습니다.",timerSpentPage:"현재 페이지에서 {0]이 걸렸습니다",timerSpentSurvey:"총 {0}이 걸렸습니다.",timerLimitAll:"현재 페이지에서 {0}/{1}을 소요해 총 {2}/{3}이 걸렸습니다.",timerLimitPage:"현재 페이지에서 {0}/{1}이 걸렸습니다.",timerLimitSurvey:"총 {0}/{1}이 걸렸습니다.",cleanCaption:"닦기",clearCaption:"지우기",chooseFileCaption:"파일을 선택",removeFileCaption:"이 파일 제거",booleanCheckedLabel:"예",booleanUncheckedLabel:"아니",confirmRemoveFile:"{0} 파일을 제거 하시겠습니까?",confirmRemoveAllFiles:"모든 파일을 제거 하시겠습니까?",questionTitlePatternText:"질문 제목"},u.localeNames.ko="한국어";u.locales.lv={pagePrevText:"Atpakaļ",pageNextText:"Tālāk",completeText:"Pabeigt",previewText:"Priekšskatījums",editText:"Rediģēt",startSurveyText:"Sākt",otherItemText:"Cits (lūdzu, aprakstiet!)",noneItemText:"Nav",selectAllItemText:"Izvēlēties visus",progressText:"Lappuse {0} no {1}",panelDynamicProgressText:"Ierakstīt {0} no {1}",questionsProgressText:"Atbildēja uz jautājumiem {0} / {1}",emptySurvey:"Nav neviena jautājuma.",completingSurvey:"Pateicamies Jums par anketas aizpildīšanu!",completingSurveyBefore:"Mūsu ieraksti liecina, ka jūs jau esat aizpildījis šo aptauju.",loadingSurvey:"Ielāde no servera...",optionsCaption:"Izvēlēties...",value:"value",requiredError:"Lūdzu, atbildiet uz jautājumu!",requiredErrorInPanel:"Lūdzu, atbildiet uz vismaz vienu jautājumu.",requiredInAllRowsError:"Lūdzu, atbildiet uz jautājumiem visās rindās.",numericError:"Atbildei ir jābūt skaitlim.",textMinLength:"Lūdzu, ievadiet vismaz {0} simbolus.",textMaxLength:"Lūdzu, ievadiet mazāk nekā {0} rakstzīmes.",textMinMaxLength:"Lūdzu, ievadiet vairāk nekā {0} rakstzīmes un mazāk nekā {1} rakstzīmes.",minRowCountError:"Lūdzu, aizpildiet vismaz {0} rindas.",minSelectError:"Lūdzu, izvēlieties vismaz {0} variantu.",maxSelectError:"Lūdzu, izvēlieties ne vairak par {0} variantiem.",numericMinMax:"'{0}' jābūt vienādam vai lielākam nekā {1}, un vienādam vai mazākam, nekā {2}",numericMin:"'{0}' jābūt vienādam vai lielākam {1}",numericMax:"'{0}' jābūt vienādam vai lielākam {1}",invalidEmail:"Lūdzu, ievadiet patiesu e-pasta adresi!",invalidExpression:"Izteicienam: {0} jāatgriež “true”.",urlRequestError:"Pieprasījumā tika atgriezta kļūda “{0}”. {1}",urlGetChoicesError:"Pieprasījums atgrieza tukšus datus vai rekvizīts “path” ir nepareizs",exceedMaxSize:"Faila lielums nedrīkst pārsniegt {0}.",otherRequiredError:"Lūdzu, ievadiet datus laukā 'Cits'",uploadingFile:"Jūsu fails tiek augšupielādēts. Lūdzu, uzgaidiet vairākas sekundes un mēģiniet vēlreiz.",loadingFile:"Notiek ielāde ...",chooseFile:"Izvēlieties failus ...",noFileChosen:"Nav izvēlēts neviens fails",confirmDelete:"Vai vēlaties izdzēst ierakstu?",keyDuplicationError:"Šai vērtībai jābūt unikālai.",addColumn:"Pievienot kolonnu",addRow:"Pievienot rindu",removeRow:"Noņemt",addPanel:"Pievieno jaunu",removePanel:"Noņemt",choices_Item:"lieta",matrix_column:"Sleja",matrix_row:"Rinda",savingData:"Rezultāti tiek saglabāti serverī ...",savingDataError:"Radās kļūda, un mēs nevarējām saglabāt rezultātus.",savingDataSuccess:"Rezultāti tika veiksmīgi saglabāti!",saveAgainButton:"Mēģini vēlreiz",timerMin:"min",timerSec:"sek",timerSpentAll:"Šajā lapā esat iztērējis {0} un kopā {1}.",timerSpentPage:"Šajā lapā esat iztērējis {0}.",timerSpentSurvey:"Kopā esat iztērējis {0}.",timerLimitAll:"Šajā lapā esat iztērējis {0} no {1} un kopā {2} no {3}.",timerLimitPage:"Šajā lapā esat iztērējis {0} no {1}.",timerLimitSurvey:"Kopā esat iztērējis {0} no {1}.",cleanCaption:"Tīrs",clearCaption:"Skaidrs",chooseFileCaption:"Izvēlēties failu",removeFileCaption:"Noņemiet šo failu",booleanCheckedLabel:"Jā",booleanUncheckedLabel:"Nē",confirmRemoveFile:"Vai tiešām vēlaties noņemt šo failu: {0}?",confirmRemoveAllFiles:"Vai tiešām vēlaties noņemt visus failus?",questionTitlePatternText:"Jautājuma nosaukums"},u.localeNames.lv="latviešu";u.locales.lt={pagePrevText:"Atgal",pageNextText:"Toliau",completeText:"Baigti",previewText:"Peržiūra",editText:"Redaguoti",startSurveyText:"Pradėti",otherItemText:"Kita (įvesti)",noneItemText:"Nėra",selectAllItemText:"Pasirinkti visus",progressText:"Puslapis {0} iš {1}",panelDynamicProgressText:"Įrašyti {0} iš {1}",questionsProgressText:"Atsakė į {0} / {1} klausimus",emptySurvey:"Apklausoje nėra matomo puslapio ar klausimo.",completingSurvey:"Dėkojame už dalyvavimą apklausoje!",completingSurveyBefore:"Mūsų įrašai rodo, kad jau atlikote šią apklausą.",loadingSurvey:"Prašome palaukti...",optionsCaption:"Pasirinkti...",value:"reikšmė",requiredError:"Būtina atsakyti į šį klausimą.",requiredErrorInPanel:"Būtina atsakyti bent į vieną klausimą.",requiredInAllRowsError:"Prašome atsakyti į klausimus visose eilutėse.",numericError:"Turi būti skaičiai.",textMinLength:"Prašome suvesti bent {0} simbolius.",textMaxLength:"Prašome suvesti mažiau nei {0} simbolių.",textMinMaxLength:"Prašome suvesti daugiau nei {0} ir mažiau nei {1} simbolių.",minRowCountError:"Prašome suvesti ne mažiau nei {0} eilučių.",minSelectError:"Prašome pasirinkti bent {0} variantų.",maxSelectError:"Pasirinkite ne daugiau kaip {0} variantus.",numericMinMax:"'{0}' turi būti lygus arba didesnis nei {1} ir lygus arba mažesnis nei {2}",numericMin:"'{0}' turėtų būti lygus arba didesnis nei {1}",numericMax:"'{0}' turėtų būti lygus ar mažesnis už {1}",invalidEmail:"Prašome įvesti galiojantį elektroninio pašto adresą.",invalidExpression:"Reikšmė: {0} turi grąžinti 'true'.",urlRequestError:"Užklausa grąžino klaidą'{0}'. {1}",urlGetChoicesError:"Užklausa grąžino tuščius duomenis arba 'path' savybė yra neteisinga",exceedMaxSize:"Failo dydis neturi viršyti {0}.",otherRequiredError:"Įveskite kitą reikšmę.",uploadingFile:"Jūsų failas yra keliamas. Palaukite keletą sekundžių ir bandykite dar kartą.",loadingFile:"Prašome palaukti...",chooseFile:"Pasirinkti failą(us)...",noFileChosen:"Nepasirinktas joks failas",confirmDelete:"Ar norite ištrinti įrašą?",keyDuplicationError:"Ši reikšmė turėtų būti unikali.",addColumn:"Pridėti stulpelį",addRow:"Pridėti eilutę",removeRow:"Ištrinti",addPanel:"Pridėti naują",removePanel:"Ištrinti",choices_Item:"elementas",matrix_column:"Stulpelis",matrix_row:"Eilutė",savingData:"Rezultatai saugomi serveryje...",savingDataError:"Įvyko klaida ir mes negalėjome išsaugoti rezultatų.",savingDataSuccess:"Rezultatai buvo išsaugoti sėkmingai!",saveAgainButton:"Bandyti dar kartą",timerMin:"min",timerSec:"sek",timerSpentAll:"Praleidote {0} šiame puslapyje ir {1} iš viso.",timerSpentPage:"Praleidote {0} šiame puslapyje.",timerSpentSurvey:"Praleidote {0} iš viso.",timerLimitAll:"Praleidote {0} iš {1} šiame puslapyje ir {2} iš {3} iš viso.",timerLimitPage:"Praleidote {0} iš {1} šiame puslapyje.",timerLimitSurvey:"Praleidote {0} iš {1} iš viso.",cleanCaption:"Išvalyti",clearCaption:"Valyti",chooseFileCaption:"Pasirinkti failą",removeFileCaption:"Ištrinti šį failą",booleanCheckedLabel:"Taip",booleanUncheckedLabel:"Ne",confirmRemoveFile:"Ar tikrai norite pašalinti šį failą: {0}?",confirmRemoveAllFiles:"Ar tikrai norite pašalinti visus failus?",questionTitlePatternText:"Klausimo pavadinimas"},u.localeNames.lt="lietuvių";u.locales.mk={pagePrevText:"Претходна",pageNextText:"Следно",completeText:"Заврши",previewText:"Преглед",editText:"Уредување",startSurveyText:"Започнете",otherItemText:"Друго (опиши)",noneItemText:"Ништо",selectAllItemText:"Селектирај се",progressText:"Страница {0} од {1}",panelDynamicProgressText:"Сними {0} од {1}",questionsProgressText:"Одговорени на {0} / {1} прашања",emptySurvey:"Нема видлива страница или прашање во истражувањето.",completingSurvey:"Ви благодариме што го завршивте истражувањето!",completingSurveyBefore:"Нашите записи покажуваат дека веќе сте го завршиле ова истражување.",loadingSurvey:"Анкетата се вчитува ...",optionsCaption:"Изберете ...",value:"вредност",requiredError:"Ве молам, одговорете на прашањето.",requiredErrorInPanel:"Ве молам, одговорете барем на едно прашање.",requiredInAllRowsError:"Ве молиме, одговорете на прашања во сите редови.",numericError:"Вредноста треба да биде нумеричка.",minError:"Вредноста не треба да биде помала од {0}",maxError:"Вредноста не треба да биде поголема од {0}",textMinLength:"Внесете најмалку {0} знак/ци.",textMaxLength:"Внесете не повеќе од {0} знак/ци.",textMinMaxLength:"Внесете најмалку {0} и не повеќе од {1} знаци.",minRowCountError:"Пополнете најмалку {0} ред(ови).",minSelectError:"Ве молиме изберете најмалку {0} варијанта(и).",maxSelectError:"Изберете не повеќе од {0} варијанта(и).",numericMinMax:"'{0}' треба да биде најмалку {1} и најмногу {2}",numericMin:"'{0}' треба да биде најмалку {1}",numericMax:"'{0}' треба да биде најмногу {1}",invalidEmail:"Ве молиме внесете валидна е-маил адреса.",invalidExpression:"Изразот: {0} треба да се врати 'true'.",urlRequestError:"Барањето врати грешка '{0}'. {1} ",urlGetChoicesError:"Барањето врати празни податоци или својството 'path' е неточно",exceedMaxSize:"Големината на датотеката не треба да надминува {0}.",otherRequiredError:"Внесете ја другата вредност.",uploadingFile:"Вашата датотека се поставува. Ве молиме почекајте неколку секунди и обидете се повторно.",loadingFile:"Се вчитува ...",chooseFile:"Изберете датотека (и) ...",noFileChosen:"Не се избрани датотеки",confirmDelete:"Дали сакате да го избришете записот?",keyDuplicationError:"Оваа вредност треба да биде единствена.",addColumn:"Додај колона",addRow:"Додади ред",removeRow:"Отстрани",emptyRowsText:"Нема редови.",addPanel:"Додади ново",removePanel:"Отстрани",choices_Item:"ставка",matrix_column:"Колона",matrix_row:"Ред",savingData:"Резултатите се зачувуваат на серверот ...",savingDataError:"Настана грешка и не можевме да ги зачуваме резултатите.",savingDataSuccess:"Резултатите беа успешно зачувани!",saveAgainButton:"Обиди се повторно",timerMin:"мин",timerSec:"сек",timerSpentAll:"Поминавте {0} на оваа страница и вкупно {1}.",timerSpentPage:"Поминавте {0} на оваа страница.",timerSpentSurvey:"Вие потрошивте вкупно {0}.",timerLimitAll:"Поминавте {0} од {1} на оваа страница и {2} од {3} вкупно.",timerLimitPage:"Поминавте {0} од {1} на оваа страница.",timerLimitSurvey:"Вие потрошивте вкупно {0} од {1}.",cleanCaption:"Чисти",clearCaption:"Да расчисти",chooseFileCaption:"Изберете датотека",removeFileCaption:"Отстранете ја оваа датотека",booleanCheckedLabel:"Да",booleanUncheckedLabel:"Не",confirmRemoveFile:"Дали сте сигурни дека сакате да ја отстраните оваа датотека: {0}?",confirmRemoveAllFiles:"Дали сте сигурни дека сакате да ги отстраните сите датотеки?",questionTitlePatternText:"Наслов на прашањето",modalCancelButtonText:"Откажи",modalApplyButtonText:"Аплицирај"},u.localeNames.mk="Македонски";u.locales.no={pagePrevText:"Forrige",pageNextText:"Neste",completeText:"Fullfør",previewText:"Forhåndsvisning",editText:"Redigere",startSurveyText:"Start",otherItemText:"Annet (beskriv)",noneItemText:"Ingen",selectAllItemText:"Velg alle",progressText:"Side {0} av {1}",panelDynamicProgressText:"Ta opp {0} av {1}",questionsProgressText:"Besvarte {0} / {1} spørsmål",emptySurvey:"Det er ingen synlig side eller spørsmål i undersøkelsen.",completingSurvey:"Takk for at du fullførte undersøkelsen!",completingSurveyBefore:"Våre data viser at du allerede har gjennomført denne undersøkelsen.",loadingSurvey:"Undersøkelsen laster...",optionsCaption:"Velg...",value:"verdi",requiredError:"Vennligst svar på spørsmålet.",requiredErrorInPanel:"Vennligst svar på minst ett spørsmål.",requiredInAllRowsError:"Vennligst svar på spørsmål i alle rader.",numericError:"Verdien skal være numerisk.",textMinLength:"Vennligst skriv inn minst {0} tegn.",textMaxLength:"Vennligst skriv inn mindre enn {0} tegn.",textMinMaxLength:"Vennligst skriv inn mer enn {0} og mindre enn {1} tegn.",minRowCountError:"Vennligst fyll inn minst {0} rader.",minSelectError:"Vennligst velg minst {0} varianter.",maxSelectError:"Vennligst ikke velg mer enn {0} varianter.",numericMinMax:"'{0}' bør være lik eller mer enn {1} og lik eller mindre enn {2}",numericMin:"'{0}' bør være lik eller mer enn {1}",numericMax:"'{0}' bør være lik eller mindre enn {1}",invalidEmail:"Vennligst skriv inn en gyldig e-post adresse.",invalidExpression:"Uttrykket: {0} skal returnere 'sant'.",urlRequestError:"Forespørselen returnerte feilen '{0}'. {1}",urlGetChoicesError:"Forespørselen returnerte tomme data, eller 'sti' -egenskapen er feil",exceedMaxSize:"Filstørrelsen bør ikke overstige {0}.",otherRequiredError:"Vennligst skriv inn den andre verdien.",uploadingFile:"Filen din lastes opp. Vennligst vent noen sekunder og prøv igjen.",loadingFile:"Laster inn ...",chooseFile:"Velg fil (er) ...",noFileChosen:"Ingen fil valgt",confirmDelete:"Ønsker du å slette posten?",keyDuplicationError:"Denne verdien skal være unik.",addColumn:"Legg til kolonne",addRow:"Legg til rad",removeRow:"Fjern",addPanel:"Legg til ny",removePanel:"Fjerne",choices_Item:"element",matrix_column:"Kolonne",matrix_row:"Rad",savingData:"Resultatene lagres på serveren ...",savingDataError:"Det oppsto en feil, og vi kunne ikke lagre resultatene.",savingDataSuccess:"Resultatene ble lagret!",saveAgainButton:"Prøv igjen",timerMin:"min",timerSec:"sek",timerSpentAll:"Du har tilbrakt {0} på denne siden og {1} totalt.",timerSpentPage:"Du har tilbrakt {0} på denne siden.",timerSpentSurvey:"Du har tilbrakt {0} totalt.",timerLimitAll:"Du har tilbrakt {0} av {1} på denne siden og totalt {2} av {3}.",timerLimitPage:"Du har tilbrakt {0} av {1} på denne siden.",timerLimitSurvey:"Du har tilbrakt {0} av {1} totalt.",cleanCaption:"Rens",clearCaption:"Klar",chooseFileCaption:"Velg Fil",removeFileCaption:"Fjern denne filen",booleanCheckedLabel:"Ja",booleanUncheckedLabel:"Nei",confirmRemoveFile:"Er du sikker på at du vil fjerne denne filen: {0}?",confirmRemoveAllFiles:"Er du sikker på at du vil fjerne alle filene?",questionTitlePatternText:"Spørsmålstittel"},u.localeNames.no="norsk";u.locales.fa={pagePrevText:"قبلی",pageNextText:"بعدی",completeText:"تکمیل",previewText:"پیش نمایش",editText:"ویرایش",startSurveyText:"شروع",otherItemText:"دیگر(توضیح)",noneItemText:"هیچ",selectAllItemText:"انتخاب همه",progressText:"صفحه {0} از {1}",panelDynamicProgressText:"مورد {0} از {1}",questionsProgressText:"تعداد پاسخ {0}/{1} سوال",emptySurvey:"صفحه ای یا گزینه ای برای این پرسشنامه موجود نیست.",completingSurvey:"از شما بابت تکمیل این پرسشنامه متشکریم",completingSurveyBefore:"به نظر می رسد هم هم اکنون پرسشنامه را تکمیل کرده اید.",loadingSurvey:"درحال ایجاد پرسشنامه",optionsCaption:"انتخاب کنید...",value:"مقدار",requiredError:"لطفا به سوال پاسخ دهید",requiredErrorInPanel:"لطفا حداقل به یک سوال پاسخ دهید.",requiredInAllRowsError:"لطفا سوالات تمام سطرها را پاسخ دهید.",numericError:"مقدار باید عددی باشد",textMinLength:"لطفا حداقل  {0} حرف وارد کنید",textMaxLength:"لطفا کمتر از  {0} حرف وارد کنید.",textMinMaxLength:"لطفا بیشتر از  {0} حرف و کمتر از {1} حرف وارد کنید.",minRowCountError:"لطفا حداقل {0} سطر وارد کنید.",minSelectError:"حداقل {0} انتخاب کنید.",maxSelectError:"لطفا بیشتر از  {0} انتخاب کنید.",numericMinMax:"'{0}' باید بین {1} و {2} باشد",numericMin:"'{0}' بزرگتر مساوی {1} باشد",numericMax:"'{0}' باید کوچکتر یا مساوی {1} باشد",invalidEmail:"لطفا ایمیل صحیح درج کنید",invalidExpression:"عبارت: {0} پاسخ باید 'true' باشد.",urlRequestError:"درخواست با خطا روبرو شد: '{0}'. {1}",urlGetChoicesError:"درخواست مسیری خالی بازگشت داده یا مسیر درست تنظیم نشده",exceedMaxSize:"بیشترین حجم مجاز فایل: {0}",otherRequiredError:"مقدار 'دیگر' را وارد کنید",uploadingFile:"فایل در حال آیلود است. لطفا صبر کنید.",loadingFile:"بارگیری...",chooseFile:"انتخاب فایل(ها)...",noFileChosen:"هیچ فایلی انتخاب نشده",confirmDelete:"آیا مایل به حذف این ردیف هستید؟",keyDuplicationError:"این مقدار باید غیر تکراری باشد",addColumn:"ستون جدید",addRow:"سطر جدید",removeRow:"حذف",addPanel:"جدید",removePanel:"حذف",choices_Item:"آیتم",matrix_column:"ستون",matrix_row:"سطر",savingData:"نتایج در حال ذخیره سازی در سرور است",savingDataError:"خطایی در ذخیره سازی نتایج رخ داده است",savingDataSuccess:"نتایج با موفقیت ذخیره شد",saveAgainButton:"مجدد تلاش کنید",timerMin:"دقیقه",timerSec:"ثانیه",timerSpentAll:"شما مدت {0} در این صفحه و مدت {1} را در مجموع سپری کرده اید.",timerSpentPage:"شما مدت {0} را در این صفحه سپری کرده اید.",timerSpentSurvey:"شما مدت {0} را در مجموع سپری کرده اید.",timerLimitAll:"شما مدت {0} از {1} در این صفحه و مدت {2} از {3} را در مجموع سپری کرده اید.",timerLimitPage:"شما مدت {0} از {1} را در این صفحه سپری کرده اید.",timerLimitSurvey:"شما مدت {0} از {1} را در مجموع سپری کرده اید.",cleanCaption:"پاکسازی",clearCaption:"خالی کردن",chooseFileCaption:"انتخاب فایل",removeFileCaption:"حذف این فایل",booleanCheckedLabel:"بله",booleanUncheckedLabel:"خیر",confirmRemoveFile:"آیا میخواهید این فایل را پاک کنید: {0}?",confirmRemoveAllFiles:"آیا میخواهید تمام فایل ها را پاک کنید?",questionTitlePatternText:"عنوان سوال"},u.localeNames.fa="فارْسِى";u.locales.pl={pagePrevText:"Wstecz",pageNextText:"Dalej",completeText:"Gotowe",previewText:"Premiera",editText:"Edycja",startSurveyText:"Start",otherItemText:"Inna odpowiedź (wpisz)",noneItemText:"Brak",selectAllItemText:"Wybierz wszystkie",progressText:"Strona {0} z {1}",panelDynamicProgressText:"Zapis {0} z {1}",questionsProgressText:"Odpowiedzi na {0}/{1} pytania",emptySurvey:"Nie ma widocznych pytań.",completingSurvey:"Dziękujemy za wypełnienie ankiety!",completingSurveyBefore:"Z naszych zapisów wynika, że wypełniłeś już tę ankietę.",loadingSurvey:"Trwa wczytywanie ankiety...",optionsCaption:"Wybierz...",value:"Wartość",requiredError:"Proszę odpowiedzieć na to pytanie.",requiredErrorInPanel:"Proszę odpowiedzieć na co najmniej jedno pytanie.",requiredInAllRowsError:"Proszę odpowiedzieć na wszystkie pytania.",numericError:"W tym polu można wpisać tylko liczby.",textMinLength:"Proszę wpisać co najmniej {0} znaków.",textMaxLength:"Proszę wpisać mniej niż {0} znaków.",textMinMaxLength:"Proszę wpisać więcej niż {0} i mniej niż {1} znaków.",minRowCountError:"Proszę uzupełnić przynajmniej {0} wierszy.",minSelectError:"Proszę wybrać co najmniej {0} pozycji.",maxSelectError:"Proszę wybrać nie więcej niż {0} pozycji.",numericMinMax:"Odpowiedź '{0}' powinna być większa lub równa {1} oraz mniejsza lub równa {2}",numericMin:"Odpowiedź '{0}' powinna być większa lub równa {1}",numericMax:"Odpowiedź '{0}' powinna być mniejsza lub równa {1}",invalidEmail:"Proszę podać prawidłowy adres email.",invalidExpression:"Wyrażenie: {0} powinno wracać 'prawdziwe'.",urlRequestError:"Żądanie zwróciło błąd '{0}'. {1}",urlGetChoicesError:"Żądanie nie zwróciło danych albo ścieżka jest nieprawidłowa",exceedMaxSize:"Rozmiar przesłanego pliku nie może przekraczać {0}.",otherRequiredError:"Proszę podać inną odpowiedź.",uploadingFile:"Trwa przenoszenie Twojego pliku, proszę spróbować ponownie za kilka sekund.",loadingFile:"Ładowanie...",chooseFile:"Wybierz plik(i)...",noFileChosen:"Nie wybrano żadnego pliku",confirmDelete:"Chcesz skasować nagranie?",keyDuplicationError:"Ta wartość powinna być wyjątkowa.",addColumn:"Dodaj kolumnę",addRow:"Dodaj wiersz",removeRow:"Usuń",addPanel:"Dodaj panel",removePanel:"Usuń",choices_Item:"element",matrix_column:"Kolumna",matrix_row:"Wiersz",savingData:"Zapisuję wyniki ankiety na serwerze...",savingDataError:"Wystąpił błąd i wyniki nie mogły zostać zapisane.",savingDataSuccess:"Wyniki zostały poprawnie zapisane!",saveAgainButton:"Spróbuj ponownie",timerMin:"min",timerSec:"sek",timerSpentAll:"Spędziłeś {0} na tej stronie a w sumie {1}.",timerSpentPage:"Spędziłeś {0} na tej stronie.",timerSpentSurvey:"Spędziłeś w sumie {0}.",timerLimitAll:"Spędziłeś {0} z {1} na tej stronie a w sumie {2} z {3}.",timerLimitPage:"Spędziłeś {0} z {1} na tej stronie",timerLimitSurvey:"Spędziłeś {0} z {1}.",cleanCaption:"Wyczyść",clearCaption:"Jasne",chooseFileCaption:"Wybierz plik",removeFileCaption:"Usuń ten plik",booleanCheckedLabel:"Tak",booleanUncheckedLabel:"Nie",confirmRemoveFile:"Jesteś pewien, że chcesz usunąć ten plik: {0}?",confirmRemoveAllFiles:"Jesteś pewien, że chcesz usunąć wszystkie pliki?",questionTitlePatternText:"Tytuł pytania"},u.localeNames.pl="polski";u.locales.pt={pagePrevText:"Anterior",pageNextText:"Próximo",completeText:"Finalizar",previewText:"Pré-visualização",editText:"Editar",startSurveyText:"Começar",otherItemText:"Outros (descrever)",noneItemText:"Nenhum",selectAllItemText:"Selecionar Todos",progressText:"Página {0} de {1}",panelDynamicProgressText:"Registo {0} de {1}",questionsProgressText:"Respostas {0}/{1} perguntas",emptySurvey:"Não há página visível ou pergunta no questionário.",completingSurvey:"Obrigado por finalizar o questionário!",completingSurveyBefore:"Os nossos registos mostram que já finalizou o questionário.",loadingSurvey:"O questionário está a carregar...",optionsCaption:"Selecione...",value:"valor",requiredError:"Por favor, responda à pergunta.",requiredErrorInPanel:"Por favor, responda pelo menos a uma pergunta.",requiredInAllRowsError:"Por favor, responda às perguntas em todas as linhas.",numericError:"O valor deve ser numérico.",textMinLength:"Por favor, insira pelo menos {0} caracteres.",textMaxLength:"Por favor, insira menos de {0} caracteres.",textMinMaxLength:"Por favor, insira mais de {0} e menos de {1} caracteres.",minRowCountError:"Preencha pelo menos {0} linhas.",minSelectError:"Selecione pelo menos {0} opções.",maxSelectError:"Por favor, selecione no máximo {0} opções.",numericMinMax:"O '{0}' deve ser igual ou superior a {1} e igual ou menor que {2}",numericMin:"O '{0}' deve ser igual ou superior a {1}",numericMax:"O '{0}' deve ser igual ou inferior a {1}",invalidEmail:"Por favor, insira um e-mail válido.",invalidExpression:"A expressão: {0} deve retornar 'verdadeiro'.",urlRequestError:"O pedido retornou o erro '{0}'. {1}",urlGetChoicesError:"O pedido não retornou dados ou o 'caminho' do pedido não está correto",exceedMaxSize:"O tamanho do arquivo não deve exceder {0}.",otherRequiredError:"Por favor, insira o outro valor.",uploadingFile:"O seu ficheiro está a carregar. Por favor, aguarde alguns segundos e tente novamente.",loadingFile:"A carregar...",chooseFile:"Selecione o(s) arquivo(s)...",noFileChosen:"Nenhum ficheiro escolhido",confirmDelete:"Tem a certeza que deseja apagar?",keyDuplicationError:"Este valor deve ser único.",addColumn:"Adicionar coluna",addRow:"Adicionar linha",removeRow:"Remover linha",addPanel:"Adicionar novo",removePanel:"Remover",choices_Item:"item",matrix_column:"Coluna",matrix_row:"Linha",savingData:"Os resultados estão a ser guardados no servidor...",savingDataError:"Ocorreu um erro e não foi possível guardar os resultados.",savingDataSuccess:"Os resultados foram guardados com sucesso!",saveAgainButton:"Tente novamente",timerMin:"min",timerSec:"seg",timerSpentAll:"Você gastou {0} nesta página e {1} no total.",timerSpentPage:"Você gastou {0} nesta página.",timerSpentSurvey:"Você gastou {0} no total.",timerLimitAll:"Você gastou {0} de {1} nesta página e {2} de {3} no total.",timerLimitPage:"Você gastou {0} de {1} nesta página.",timerLimitSurvey:"Você gastou {0} de {1} no total.",cleanCaption:"Limpar",clearCaption:"Limpar",chooseFileCaption:"Escolher ficheiro",removeFileCaption:"Remover este ficheiro",booleanCheckedLabel:"Sim",booleanUncheckedLabel:"Não",confirmRemoveFile:"Tem a certeza que deseja remover este ficheiro: {0}?",confirmRemoveAllFiles:"Tem a certeza que deseja remover todos os ficheiros?",questionTitlePatternText:"Título da questão"},u.localeNames.pt="português";u.locales["pt-br"]={pagePrevText:"Anterior",pageNextText:"Próximo",completeText:"Finalizar",previewText:"Pré-visualização",editText:"Editar",startSurveyText:"Começar",otherItemText:"Outros (descrever)",noneItemText:"Nenhum",selectAllItemText:"Selecionar Todos",progressText:"Página {0} de {1}",panelDynamicProgressText:"Registro {0} de {1}",questionsProgressText:"Respostas {0}/{1} perguntas",emptySurvey:"Não há página visível ou pergunta na pesquisa.",completingSurvey:"Obrigado por finalizar a pesquisa!",completingSurveyBefore:"Nossos registros mostram que você já finalizou a pesquisa.",loadingSurvey:"A pesquisa está carregando...",optionsCaption:"Selecione...",value:"valor",requiredError:"Por favor, responda a pergunta.",requiredErrorInPanel:"Por favor, responda pelo menos uma pergunta.",requiredInAllRowsError:"Por favor, responda as perguntas em todas as linhas.",numericError:"O valor deve ser numérico.",textMinLength:"Por favor, insira pelo menos {0} caracteres.",textMaxLength:"Por favor, insira menos de {0} caracteres.",textMinMaxLength:"Por favor, insira mais de {0} e menos de {1} caracteres.",minRowCountError:"Preencha pelo menos {0} linhas.",minSelectError:"Selecione pelo menos {0} opções.",maxSelectError:"Por favor, selecione não mais do que {0} opções.",numericMinMax:"O '{0}' deve ser igual ou superior a {1} e igual ou menor que {2}",numericMin:"O '{0}' deve ser igual ou superior a {1}",numericMax:"O '{0}' deve ser igual ou inferior a {1}",invalidEmail:"Por favor, informe um e-mail válido.",invalidExpression:"A expressão: {0} deve retornar 'verdadeiro'.",urlRequestError:"A requisição retornou o erro '{0}'. {1}",urlGetChoicesError:"A requisição não retornou dados ou o 'caminho' da requisição não está correto",exceedMaxSize:"O tamanho do arquivo não deve exceder {0}.",otherRequiredError:"Por favor, informe o outro valor.",uploadingFile:"Seu arquivo está sendo carregado. Por favor, aguarde alguns segundos e tente novamente.",loadingFile:"Carregando...",chooseFile:"Selecione o(s) arquivo(s)...",noFileChosen:"Nenhum arquivo escolhido",confirmDelete:"Tem certeza que deseja deletar?",keyDuplicationError:"Esse valor deve ser único.",addColumn:"Adicionar coluna",addRow:"Adicionar linha",removeRow:"Remover linha",addPanel:"Adicionar novo",removePanel:"Remover",choices_Item:"item",matrix_column:"Coluna",matrix_row:"Linha",savingData:"Os resultados esto sendo salvos no servidor...",savingDataError:"Ocorreu um erro e não foi possível salvar os resultados.",savingDataSuccess:"Os resultados foram salvos com sucesso!",saveAgainButton:"Tente novamente",timerMin:"min",timerSec:"seg",timerSpentAll:"Você gastou {0} nesta página e {1} no total.",timerSpentPage:"Você gastou {0} nesta página.",timerSpentSurvey:"Você gastou {0} no total.",timerLimitAll:"Você gastou {0} de {1} nesta página e {2} de {3} no total.",timerLimitPage:"Você gastou {0} de {1} nesta página.",timerLimitSurvey:"Você gastou {0} de {1} no total.",cleanCaption:"Limpar",clearCaption:"Limpar",chooseFileCaption:"Escolher arquivo",removeFileCaption:"Remover este arquivo",booleanCheckedLabel:"Sim",booleanUncheckedLabel:"Não",confirmRemoveFile:"Tem certeza que deseja remover este arquivo: {0}?",confirmRemoveAllFiles:"Tem certeza que deseja remover todos os arquivos?",questionTitlePatternText:"Título da questão"},u.localeNames["pt-br"]="português brasileiro";u.locales.ro={pagePrevText:"Precedent",pageNextText:"Următor",completeText:"Finalizare",previewText:"previzualizare",editText:"Editați",startSurveyText:"start",otherItemText:"Altul(precizaţi)",noneItemText:"Nici unul",selectAllItemText:"Selectează tot",progressText:"Pagina {0} din {1}",panelDynamicProgressText:"Înregistrare {0} din {1}",questionsProgressText:"Răspunsuri la {0} / {1} întrebări",emptySurvey:"Nu sunt întrebări pentru acest chestionar",completingSurvey:"Vă mulţumim pentru timpul acordat!",completingSurveyBefore:"Din înregistrările noastre reiese că ați completat deja acest chestionar.",loadingSurvey:"Chestionarul se încarcă...",optionsCaption:"Alegeţi...",value:"valoare",requiredError:"Răspunsul la această întrebare este obligatoriu.",requiredErrorInPanel:"Vă rugăm să răspundeți la cel puțin o întrebare.",requiredInAllRowsError:"Toate răspunsurile sunt obligatorii",numericError:"Răspunsul trebuie să fie numeric.",textMinLength:"Trebuie să introduceți minim {0} caractere.",textMaxLength:"Trebuie să introduceți maxim {0} caractere.",textMinMaxLength:"Trebuie să introduceți mai mult de {0} și mai puțin de {1} caractere.",minRowCountError:"Trebuie să completați minim {0} rânduri.",minSelectError:"Trebuie să selectați minim {0} opţiuni.",maxSelectError:"Trebuie să selectați maxim {0} opţiuni.",numericMinMax:"Răspunsul '{0}' trebuie să fie mai mare sau egal ca {1} şî mai mic sau egal cu {2}",numericMin:"Răspunsul '{0}' trebuie să fie mai mare sau egal ca {1}",numericMax:"Răspunsul '{0}' trebuie să fie mai mic sau egal ca {1}",invalidEmail:"Trebuie să introduceţi o adresa de email validă.",invalidExpression:"Expresia: {0} ar trebui să returneze „adevărat”.",urlRequestError:"Request-ul a returnat eroarea '{0}'. {1}",urlGetChoicesError:"Request-ul nu a returnat date sau proprietatea 'path' este incorectă",exceedMaxSize:"Dimensiunea fişierului nu trebuie să depăşească {0}.",otherRequiredError:"Trebuie să completați câmpul 'Altul'.",uploadingFile:"Fișierul dumneavoastră este în curs de încărcare. Vă rugăm așteptați câteva secunde și reveniți apoi.",loadingFile:"Se încarcă...",chooseFile:"Alege fisierele...",noFileChosen:"Niciun fișier ales",confirmDelete:"Sunteți sigur că doriți să ștergeți înregistrarea?",keyDuplicationError:"Valoarea trebuie să fie unică.",addColumn:"Adăugați coloană",addRow:"Adăugare rând",removeRow:"Ștergere",addPanel:"Adăugare",removePanel:"Ștergere",choices_Item:"opțiune",matrix_column:"Coloană",matrix_row:"Rând",savingData:"Rezultatele sunt în curs de salvare...",savingDataError:"A intervenit o eroare, rezultatele nu au putut fi salvate.",savingDataSuccess:"Rezultatele au fost salvate cu succes!",saveAgainButton:"Încercați din nou",timerMin:"min",timerSec:"sec",timerSpentAll:"Ați petrecut {0} pe această pagină și {1} în total.",timerSpentPage:"Ați petrecut {0} pe această pagină.",timerSpentSurvey:"Ați petrecut {0} în total.",timerLimitAll:"Ați petrecut {0} din {1} pe această pagină și {2} din {3} în total.",timerLimitPage:"Ați petrecut {0} din {1} pe această pagină.",timerLimitSurvey:"Ați petrecut {0} din {1} în total.",cleanCaption:"Curat",clearCaption:"clar",chooseFileCaption:"Alege fișierul",removeFileCaption:"Eliminați acest fișier",booleanCheckedLabel:"da",booleanUncheckedLabel:"Nu",confirmRemoveFile:"Sigur doriți să eliminați acest fișier: {0}?",confirmRemoveAllFiles:"Sigur doriți să eliminați toate fișierele?",questionTitlePatternText:"Titlul intrebarii"},u.localeNames.ro="română";u.locales.ru={pagePrevText:"Назад",pageNextText:"Далее",completeText:"Готово",previewText:"Предварительный просмотр",editText:"Редактирование",startSurveyText:"Начать",otherItemText:"Другое (пожалуйста, опишите)",noneItemText:"Нет",selectAllItemText:"Выбрать всё",progressText:"Страница {0} из {1}",panelDynamicProgressText:"Запись {0} из {1}",questionsProgressText:"Ответы на {0}/{1}вопросы",emptySurvey:"Нет ни одного вопроса.",completingSurvey:"Благодарим Вас за заполнение анкеты!",completingSurveyBefore:"Вы уже проходили этот опрос.",loadingSurvey:"Загрузка с сервера...",optionsCaption:"Выбрать...",value:"значение",requiredError:"Пожалуйста, ответьте на вопрос.",requiredErrorInPanel:"Пожалуйста, ответьте по крайней мере на один вопрос.",requiredInAllRowsError:"Пожалуйста, ответьте на вопросы в каждой строке.",numericError:"Ответ должен быть числом.",textMinLength:"Пожалуйста введите больше {0} символов.",textMaxLength:"Пожалуйста введите меньше {0} символов.",textMinMaxLength:"Пожалуйста введите больше {0} и меньше {1} символов.",minRowCountError:"Пожалуйста, заполните не меньше {0} строк.",minSelectError:"Пожалуйста, выберите хотя бы {0} вариантов.",maxSelectError:"Пожалуйста, выберите не более {0} вариантов.",numericMinMax:"'{0}' должно быть не меньше чем {1}, и не больше чем {2}",numericMin:"'{0}' должно быть не меньше чем {1}",numericMax:"'{0}' должно быть не больше чем {1}",invalidEmail:"Пожалуйста, введите действительный адрес электронной почты.",invalidExpression:"Выражение {0} должно возвращать 'true'.",urlRequestError:"Запрос вернул ошибку '{0}'. {1}",urlGetChoicesError:"Ответ на запрос пришел пустой или свойство 'path' указано неверно",exceedMaxSize:"Размер файла не должен превышать {0}.",otherRequiredError:"Пожалуйста, введите данные в поле 'Другое'",uploadingFile:"Ваш файл загружается. Подождите несколько секунд и попробуйте снова.",loadingFile:"Загрузка...",chooseFile:"Выберите файл(ы)...",noFileChosen:"Файл не выбран",confirmDelete:"Вы точно хотите удалить запись?",keyDuplicationError:"Это значение должно быть уникальным.",addColumn:"Добавить колонку",addRow:"Добавить строку",removeRow:"Удалить",addPanel:"Добавить новую",removePanel:"Удалить",choices_Item:"Вариант",matrix_column:"Колонка",matrix_row:"Строка",savingData:"Результаты сохраняются на сервер...",savingDataError:"Произошла ошибка, результат не был сохранён.",savingDataSuccess:"Результат успешно сохранён!",saveAgainButton:"Попробовать снова",timerMin:"мин",timerSec:"сек",timerSpentAll:"Вы потратили {0} на этой странице и {1} всего.",timerSpentPage:"Вы потратили {0} на этой странице.",timerSpentSurvey:"Вы потратили {0} в течение теста.",timerLimitAll:"Вы потратили {0} из {1} на этой странице и {2} из {3} для всего теста.",timerLimitPage:"Вы потратили {0} из {1} на этой странице.",timerLimitSurvey:"Вы потратили {0} из {1} для всего теста.",cleanCaption:"Очистить",clearCaption:"Очистить",chooseFileCaption:"Выберите файл",removeFileCaption:"Удалить файл",booleanCheckedLabel:"Да",booleanUncheckedLabel:"Нет",confirmRemoveFile:"Вы уверены, что хотите удалить этот файл: {0}?",confirmRemoveAllFiles:"Вы уверены, что хотите удалить все файлы?",questionTitlePatternText:"Название вопроса"},u.localeNames.ru="русский";u.locales.rs={pagePrevText:"Nazad",pageNextText:"Dalje",completeText:"Završi",previewText:"Pregledaj",editText:"Izmeni",startSurveyText:"Započni",otherItemText:"Drugo (upiši)",noneItemText:"Ništa",selectAllItemText:"Izaberi sve",progressText:"Stranica {0} od {1}",panelDynamicProgressText:"Upis {0} od {1}",questionsProgressText:"Odgovoreno na {0}/{1} pitanja",emptySurvey:"Nema vidljivih stranica ili pitanja u anketi.",completingSurvey:"Hvala na popunjavanju ankete!",completingSurveyBefore:"Prema našim podacima, već ste popunili ovu anketu.",loadingSurvey:"Učitavam anketu...",optionsCaption:"Izaberi...",value:"vrednost",requiredError:"Molimo odgovorite na ovo pitanje.",requiredErrorInPanel:"Molimo odgovorite na bar jedno pitanje.",requiredInAllRowsError:"Molimo odgovorite na pitanja u svim redovima.",numericError:"Vrednost bi trebalo da bude numerička.",minError:"Vrednost ne bi trebalo da bude manja od {0}",maxError:"Vrednost ne bi trebalo da bude veća od {0}",textMinLength:"Molimo unesite bar {0} znak(ov)a.",textMaxLength:"Molimo unesite najviše {0} znak(ov)a.",textMinMaxLength:"Molimo unesite najmanje {0} i ne više od {1} znak(ov)a.",minRowCountError:"Molimo popunite najmanje {0} red(ova).",minSelectError:"Molimo izaberite najmanje {0} opcija/e.",maxSelectError:"Molimo izaberite najviše {0} opcija/e.",numericMinMax:"'{0}' bi trebalo da bude najmanje {1} i najviše {2}",numericMin:"'{0}' bi trebalo da bude najmanje {1}",numericMax:"'{0}' bi trebalo da bude najviše {1}",invalidEmail:"Molimo unesite ispravnu e-mail adresu.",invalidExpression:"Izraz: {0} bi trebalo da bude tačan.",urlRequestError:"Zahtev je naišao na grešku '{0}'. {1}",urlGetChoicesError:"Zahtev nije pronašao podatke, ili je putanja netačna",exceedMaxSize:"Veličina fajla ne bi trebalo da prelazi {0}.",otherRequiredError:"Molimo unesite drugu vrednost.",uploadingFile:"Fajl se šalje. Molimo sačekajte neko vreme i pokušajte ponovo.",loadingFile:"Učitavanje...",chooseFile:"Izaberite fajlove...",noFileChosen:"Nije izabran nijedan fajl",confirmDelete:"Da li želite da izbrišete unos?",keyDuplicationError:"Ova vrednost treba da bude jedinstvena.",addColumn:"Dodaj kolonu",addRow:"Dodaj red",removeRow:"Ukloni",emptyRowsText:"Nema redova.",addPanel:"Dodaj novo",removePanel:"Ukloni",choices_Item:"stavka",matrix_column:"Kolona",matrix_row:"Red",multipletext_itemname:"tekst",savingData:"U toku je čuvanje podataka na serveru...",savingDataError:"Došlo je do greške i rezultati nisu sačuvani.",savingDataSuccess:"Rezultati su uspešno sačuvani!",saveAgainButton:"Pokušajte ponovo",timerMin:"min",timerSec:"sek",timerSpentAll:"Proveli ste {0} na ovoj stranici i {1} ukupno.",timerSpentPage:"Proveli ste {0} na ovoj stranici.",timerSpentSurvey:"Proveli ste {0} ukupno.",timerLimitAll:"Proveli ste {0} od {1} na ovoj stranici i {2} od {3} ukupno.",timerLimitPage:"Proveli ste {0} od {1} na ovoj stranici.",timerLimitSurvey:"Proveli ste {0} od {1} ukupno.",cleanCaption:"Očisti",clearCaption:"Poništi",chooseFileCaption:"Izaberi fajl",removeFileCaption:"Ukloni ovaj fajl",booleanCheckedLabel:"Da",booleanUncheckedLabel:"Ne",confirmRemoveFile:"Da li ste sigurni da želite da uklonite ovaj fajl: {0}?",confirmRemoveAllFiles:"Da li ste sigurni da želite da uklonite sve fajlove?",questionTitlePatternText:"Naslov pitanja",modalCancelButtonText:"Otkaži",modalApplyButtonText:"Primeni"},u.localeNames.rs="Srpski";u.locales["zh-cn"]={pagePrevText:"上一页",pageNextText:"下一页",completeText:"提交问卷",previewText:"预览",editText:"编辑",startSurveyText:"开始问卷",otherItemText:"填写其他答案",noneItemText:"无",selectAllItemText:"选择全部",progressText:"第 {0} 页, 共 {1} 页",panelDynamicProgressText:"{0} of {1}",questionsProgressText:"第 {0}/{1} 题",emptySurvey:"问卷中没有问题或页面",completingSurvey:"感谢您的参与!",completingSurveyBefore:"你已完成问卷.",loadingSurvey:"问卷正在加载中...",optionsCaption:"请选择...",value:"值",requiredError:"请填写此问题",requiredErrorInPanel:"至少回答一题.",requiredInAllRowsError:"请填写所有行中问题",numericError:"答案必须是个数字",minError:"该值不能小于 {0}",maxError:"该值不能大于 {0}",textMinLength:"答案长度至少 {0} 个字符",textMaxLength:"答案长度不能超过 {0} 个字符",textMinMaxLength:"答案长度必须在 {0} - {1} 个字符之间",minRowCountError:"最少需要填写 {0} 行答案",minSelectError:"最少需要选择 {0} 项答案",maxSelectError:"最多只能选择 {0} 项答案",numericMinMax:"答案 '{0}' 必须大于等于 {1} 且小于等于 {2}",numericMin:"答案 '{0}' 必须大于等于 {1}",numericMax:"答案 '{0}' 必须小于等于 {1}",invalidEmail:"请输入有效的 Email 地址",invalidExpression:"公式: {0} 无效.",urlRequestError:"载入选项时发生错误 '{0}': {1}",urlGetChoicesError:"未能载入有效的选项或请求参数路径有误",exceedMaxSize:"文件大小不能超过 {0}",otherRequiredError:"请完成其他问题",uploadingFile:"文件上传中... 请耐心等待几秒后重试",loadingFile:"加载...",chooseFile:"选择文件...",noFileChosen:"未选择文件",confirmDelete:"删除记录?",keyDuplicationError:"主键不能重复",addColumn:"添加列",addRow:"添加行",removeRow:"删除答案",emptyRowsText:"无内容",addPanel:"新添",removePanel:"删除",choices_Item:"选项",matrix_column:"列",matrix_row:"行",multipletext_itemname:"文本",savingData:"正在将结果保存到服务器...",savingDataError:"在保存结果过程中发生了错误，结果未能保存",savingDataSuccess:"结果保存成功!",saveAgainButton:"请重试",timerMin:"分",timerSec:"秒",timerSpentAll:"本页用时 {0} 总计用时{1} .",timerSpentPage:"本页用时{0} .",timerSpentSurvey:"总计用时 {0} .",timerLimitAll:"本页用时 {0} 共 {1}， 总计用时 {2} 共 {3} .",timerLimitPage:"本页用时 {0} 共 {1} .",timerLimitSurvey:"总计用时 {0} 共 {1}.",cleanCaption:"清理",clearCaption:"清除",chooseFileCaption:"选择文件",removeFileCaption:"移除文件",booleanCheckedLabel:"是",booleanUncheckedLabel:"否",confirmRemoveFile:"删除文件: {0}?",confirmRemoveAllFiles:"删除所有文件?",questionTitlePatternText:"标题",modalCancelButtonText:"取消",modalApplyButtonText:"确定"},u.localeNames["zh-cn"]="简体中文";u.locales.es={pagePrevText:"Anterior",pageNextText:"Siguiente",completeText:"Completar",previewText:"Vista previa",editText:"Edita",startSurveyText:"Comienza",otherItemText:"Otro (describa)",noneItemText:"Ninguno",selectAllItemText:"Seleccionar todo",progressText:"Página {0} de {1}",panelDynamicProgressText:"Registro {0} de {1}",questionsProgressText:"Respondió a {0}/{1} preguntas",emptySurvey:"No hay página visible o pregunta en la encuesta.",completingSurvey:"Gracias por completar la encuesta!",completingSurveyBefore:"Nuestros registros muestran que ya ha completado esta encuesta.",loadingSurvey:"La encuesta está cargando...",optionsCaption:"Seleccione...",value:"valor",requiredError:"Por favor conteste la pregunta.",requiredErrorInPanel:"Por favor, responda al menos una pregunta.",requiredInAllRowsError:"Por favor conteste las preguntas en cada hilera.",numericError:"La estimación debe ser numérica.",minError:"La estimación no debe ser menor que {0}",maxError:"La estimación no debe ser mayor que {0}",textMinLength:"Por favor entre por lo menos {0} símbolos.",textMaxLength:"Por favor entre menos de {0} símbolos.",textMinMaxLength:"Por favor entre más de {0} y menos de {1} símbolos.",minRowCountError:"Por favor llene por lo menos {0} hileras.",minSelectError:"Por favor seleccione por lo menos {0} variantes.",maxSelectError:"Por favor seleccione no más de {0} variantes.",numericMinMax:"El '{0}' debe de ser igual o más de {1} y igual o menos de {2}",numericMin:"El '{0}' debe ser igual o más de {1}",numericMax:"El '{0}' debe ser igual o menos de {1}",invalidEmail:"Por favor agregue un correo electrónico válido.",invalidExpression:"La expresión: {0} debería devolver 'verdadero'.",urlRequestError:"La solicitud regresó error '{0}'. {1}",urlGetChoicesError:"La solicitud regresó vacío de data o la propiedad 'trayectoria' no es correcta",exceedMaxSize:"El tamaño del archivo no debe de exceder {0}.",otherRequiredError:"Por favor agregue la otra estimación.",uploadingFile:"Su archivo se está subiendo. Por favor espere unos segundos e intente de nuevo.",loadingFile:"Cargando...",chooseFile:"Elija archivo(s)...",noFileChosen:"No se ha elegido ningún archivo",confirmDelete:"¿Quieres borrar el registro?",keyDuplicationError:"Este valor debe ser único.",addColumn:"Añadir columna",addRow:"Agregue una hilera",removeRow:"Eliminar una hilera",emptyRowsText:"No hay hileras.",addPanel:"Añadir nuevo",removePanel:"Retire",choices_Item:"artículo",matrix_column:"Columna",matrix_row:"Hilera",multipletext_itemname:"texto",savingData:"Los resultados se están guardando en el servidor...",savingDataError:"Los resultados se están guardando en el servidor...",savingDataSuccess:"¡Los resultados se guardaron con éxito!",saveAgainButton:"Inténtalo de nuevo.",timerMin:"min",timerSec:"sec",timerSpentAll:"Has gastado {0} en esta página y {1} en total.",timerSpentPage:"Usted ha pasado {0} en esta página.",timerSpentSurvey:"Has gastado en total.",timerLimitAll:"Has gastado {0} de {1} en esta página y {2} de {3} en total.",timerLimitPage:"Has gastado {0} de {1} en esta página.",timerLimitSurvey:"Usted ha gastado {0} de {1} en total.",cleanCaption:"Limpia",clearCaption:"Despejen",signaturePlaceHolder:"Firma aqui",chooseFileCaption:"Elija el archivo",removeFileCaption:"Elimina este archivo",booleanCheckedLabel:"Sí",booleanUncheckedLabel:"No",confirmRemoveFile:"¿Estás seguro de que quieres eliminar este archivo: {0}?",confirmRemoveAllFiles:"¿Estás seguro de que quieres eliminar todos los archivos?",questionTitlePatternText:"Título de la pregunta",modalCancelButtonText:"Anular",modalApplyButtonText:"Aplicar"},u.localeNames.es="español";u.locales.sw={pagePrevText:"Iliyotangulia",pageNextText:"Ifuatayo",completeText:"Kamili",previewText:"Hakiki",editText:"Hariri",startSurveyText:"Anza",otherItemText:"Nyingine (eleza)",noneItemText:"Hakuna",selectAllItemText:"Chagua Zote",progressText:"Ukurasa {0} wa {1}",panelDynamicProgressText:"Rekodi {0} ya {1}",questionsProgressText:"Yaliyojibiwa {0}/{1} maswali",emptySurvey:"Hakuna ukurasa unaoonekana au swali katika utafiti.",completingSurvey:"Asanti kwa kukamilisha utafiti!",completingSurveyBefore:"Recodi zetu zinatuonyesha tayari umekamilisha utafiti.",loadingSurvey:"Tunaandaa utafiti...",optionsCaption:"Chagua...",value:"thamani",requiredError:"Tafadhali jibu hili swali.",requiredErrorInPanel:"Tafadhali jibu swali angalau moja.",requiredInAllRowsError:"Tafadhali jibu maswali katika safu zote.",numericError:"Thamani inapaswa kuwa ya nambari.",textMinLength:"Tafadhali ingiza angalau{0} husika.",textMaxLength:"Tafadhali ingiza isiozidi {0} husika.",textMinMaxLength:"Tafadhali ingiza kiwango zaidi ya {0} na kisichopungua {1} husika.",minRowCountError:"Tafadhali jaza isiopungua {0} safu.",minSelectError:"Tafadhali chagua angalau {0} lahaja.",maxSelectError:"Tafadhali changua isiozidi {0} lahaja.",numericMinMax:" '{0}' inapaswa kuwa sawa au zaidi ya {1} na sawa au chini ya {2}",numericMin:" '{0}'inapaswa kuwa sawa au zaidi ya {1}",numericMax:" '{0}'inapaswa kuwa sawa au chini ya {1}",invalidEmail:"Tafadhali ingiza anwani halali ya barua-pepe.",invalidExpression:"Usemi:{0} inapaswa kurudi 'kweli'.",urlRequestError:"Ombi lina kosa '{0}'. {1}",urlGetChoicesError:"Ombi lilirudisha data tupu au the 'path' mali ya njia sio sahihi",exceedMaxSize:"Saizi ya faili haipaswi kuzidi {0}.",otherRequiredError:"Tafadhali ingiza thamani nyingine.",uploadingFile:"Faili yako inapakia.Tafadhali subiri sekunde kadhaa na ujaribu tena.",loadingFile:"Inapakia...",chooseFile:"Chagua faili...",noFileChosen:"Hujachagua faili",confirmDelete:"Je! Unataka kufuta rekodi?",keyDuplicationError:"Thamani hii inapaswa kuwa ya kipekee.",addColumn:"Ongeza Kolamu",addRow:"Ongeza safu",removeRow:"Toa",addPanel:"Ongeza mpya",removePanel:"Toa",choices_Item:"kitu",matrix_column:"Kolamu",matrix_row:"Safu",savingData:"Matokeo yamehifadhiwa kwa seva...",savingDataError:"Kosa limetokea na hatukuweza kuhifadhi matokeo.",savingDataSuccess:"Matokeo yamehifadhiwa!",saveAgainButton:"Jaribu tena",timerMin:"dakika",timerSec:"sekunde",timerSpentAll:"Umetumia {0} kwenye ukurasa huu na {1} kwa jumla.",timerSpentPage:"Umetumia {0} kwenye ukurasa huu.",timerSpentSurvey:"Umetumia {0} kwa jumla.",timerLimitAll:"Umetumia {0} ya {1} kwenye ukurasa huu {2} wa {3} kwa jumla.",timerLimitPage:"Umetumia {0} ya {1} kwenye ukurasa huu.",timerLimitSurvey:"Umetumia {0} ya {1} kwa jumla.",cleanCaption:"Safisha",clearCaption:"Ondoa",chooseFileCaption:"Chagua faili",removeFileCaption:"Ondoa faili",booleanCheckedLabel:"Ndio",booleanUncheckedLabel:"Hapana",confirmRemoveFile:"Je! Una uhakika kuwa unataka kuondoa faili hii: {0}?",confirmRemoveAllFiles:"Je! Una uhakika kuwa unataka kuondoa faili zote?",questionTitlePatternText:"Kichwa cha Swali"},u.localeNames.sw="swahili";u.locales.sv={pagePrevText:"Föregående",pageNextText:"Nästa",completeText:"Färdig",previewText:"Förhandsvisning",editText:"Redigera",startSurveyText:"Start",otherItemText:"Annat (beskriv)",noneItemText:"Ingen",selectAllItemText:"Välj alla",progressText:"Sida {0} av {1}",panelDynamicProgressText:"Spela in {0} av {1}",questionsProgressText:"Besvarade {0} / {1} frågor",emptySurvey:"Det finns ingen synlig sida eller fråga i enkäten.",completingSurvey:"Tack för att du genomfört enkäten!!",completingSurveyBefore:"Våra register visar att du redan har slutfört denna undersökning.",loadingSurvey:"Enkäten laddas...",optionsCaption:"Välj...",value:"värde",requiredError:"Var vänlig besvara frågan.",requiredErrorInPanel:"Vänligen svara på minst en fråga.",requiredInAllRowsError:"Var vänlig besvara frågorna på alla rader.",numericError:"Värdet ska vara numeriskt.",textMinLength:"Var vänlig ange minst {0} tecken.",textMaxLength:"Ange färre än {0} tecken.",textMinMaxLength:"Ange mer än {0} och färre än {1} tecken.",minRowCountError:"Var vänlig fyll i minst {0} rader.",minSelectError:"Var vänlig välj åtminstone {0} varianter.",maxSelectError:"Var vänlig välj inte fler än {0} varianter.",numericMinMax:"'{0}' ska vara lika med eller mer än {1} samt lika med eller mindre än {2}",numericMin:"'{0}' ska vara lika med eller mer än {1}",numericMax:"'{0}' ska vara lika med eller mindre än {1}",invalidEmail:"Var vänlig ange en korrekt e-postadress.",invalidExpression:"Uttrycket: {0} ska returnera 'true'.",urlRequestError:"Förfrågan returnerade felet '{0}'. {1}",urlGetChoicesError:"Antingen returnerade förfrågan ingen data eller så är egenskapen 'path' inte korrekt",exceedMaxSize:"Filstorleken får ej överstiga {0}.",otherRequiredError:"Var vänlig ange det andra värdet.",uploadingFile:"Din fil laddas upp. Var vänlig vänta några sekunder och försök sedan igen.",loadingFile:"Läser in...",chooseFile:"Välj fil (er) ...",noFileChosen:"Ingen fil vald",confirmDelete:"Vill du radera posten?",keyDuplicationError:"Detta värde ska vara unikt.",addColumn:"Lägg till kolumn",addRow:"Lägg till rad",removeRow:"Ta bort",addPanel:"Lägg till ny",removePanel:"Ta bort",choices_Item:"Artikel",matrix_column:"Kolumn",matrix_row:"Rad",savingData:"Resultaten sparas på servern ...",savingDataError:"Ett fel inträffade och vi kunde inte spara resultaten.",savingDataSuccess:"Resultaten sparades framgångsrikt!",saveAgainButton:"Försök igen",timerMin:"min",timerSec:"sek",timerSpentAll:"Du har spenderat {0} på den här sidan och {1} totalt.",timerSpentPage:"Du har spenderat {0} på den här sidan.",timerSpentSurvey:"Du har spenderat {0} totalt.",timerLimitAll:"Du har spenderat {0} av {1} på den här sidan och {2} av {3} totalt.",timerLimitPage:"Du har spenderat {0} av {1} på den här sidan.",timerLimitSurvey:"Du har spenderat {0} av {1} totalt.",cleanCaption:"Rena",clearCaption:"Klar",chooseFileCaption:"Välj FIL",removeFileCaption:"Ta bort den här filen",booleanCheckedLabel:"Ja",booleanUncheckedLabel:"Nej",confirmRemoveFile:"Är du säker på att du vill ta bort den här filen: {0}?",confirmRemoveAllFiles:"Är du säker på att du vill ta bort alla filer?",questionTitlePatternText:"Frågetitel"},u.localeNames.sv="svenska";u.locales.tg={pagePrevText:"Бозгашт",pageNextText:"Оянда",completeText:"Иҷро шуд",startSurveyText:"Оғоз",otherItemText:"Дигар (лутфан тавсиф кунед)",noneItemText:"Не",selectAllItemText:"Ҳамаро интихоб кардан",progressText:"Саҳифаи {0} аз {1}",emptySurvey:"Ягон савол вуҷуд надорад.",completingSurvey:"Ташаккур барои пур кардани саволнома!",completingSurveyBefore:"Шумо аллакай ин пурсишро анҷом додаед.",loadingSurvey:"Боргирӣ аз сервер...",optionsCaption:"Интихоб кардан...",value:"қиммат",requiredError:"Илтимос, ба савол ҷавоб диҳед.",requiredErrorInPanel:"Илтимос, ақалан ба як савол ҷавоб диҳед.",requiredInAllRowsError:"Илтимос, ба ҳамаи саволҳо дар ҳамаи сатрҳо ҷавоб диҳед.",numericError:"Ҷавоб бояд рақам бошад.",textMinLength:"Илтимос, аз {0} зиёдтар рамз ворид кунед.",textMaxLength:"Илтимос, аз {0} камтар рамз ворид кунед.",textMinMaxLength:"Илтимос, аз {0} зиёдтар ва аз {1} камтар рамз ворид кунед.",minRowCountError:"Илтимос, на камтар аз {0} сатр пур кунед.",minSelectError:"Илтимос, ақалан {0} вариант интихоб кунед.",maxSelectError:"Илтимос, на зиёдтар аз {0} вариант интихоб кунед.",numericMinMax:"'{0}' бояд на кам аз {1} ва на бисёр аз {2} бошад",numericMin:"'{0}' бояд на кам аз {1} бошад",numericMax:"'{0}' бояд на зиёд аз {1} бошад",invalidEmail:"Илтимос, почтаи электронии воқеиро ворид кунед.",invalidExpression:"Ифодаи {0} бояд 'true' баргардонад.",urlRequestError:"Дархост хатогӣ бозгардонд '{0}'. {1}",urlGetChoicesError:"Ҷавоб ба дархост холӣ омад ё хосияти 'path' нодуруст муайян карда шудааст",exceedMaxSize:"Андозаи файл бояд на калон аз {0} бошад.",otherRequiredError:"Илтимос, ба майдони 'Дигар' додаҳоро ворид кунед",uploadingFile:"Файли шумо бор шуда истодааст. Якчанд сония интизор шавед ва бори дигар кӯшиш кунед.",loadingFile:"Боркунӣ...",chooseFile:"Файл(ҳо)-ро интихоб кунед...",confirmDelete:"Шумо мутмаин ҳастед, ки мехоҳед воридро тоза кунед?",keyDuplicationError:"Ин арзиш бояд беназир бошад.",addColumn:"Иловаи сутун",addRow:"Иловаи сатр",removeRow:"Нест кардан",addPanel:"Илова кардан",removePanel:"Нест кардан",choices_Item:"Вариант",matrix_column:"Сутун",matrix_row:"Сатр",savingData:"Натиҷа ба сервер сабт шуда истодаанд...",savingDataError:"Хатогӣ ба амал омад, натиҷа сабт нашуд.",savingDataSuccess:"Натиҷа бомуваффакият сабт шуд!",saveAgainButton:"Бори дигар кӯшиш карданд",timerMin:"дақ",timerSec:"сон",timerSpentAll:"Шумо {0} дар ин саҳифа ва {1} дар умум сарф кардед.",timerSpentPage:"Шумо {0} дар ин саҳифа сарф кардед.",timerSpentSurvey:"Шумо {0} дар ин тест сарф намудед.",timerLimitAll:"Шумо {0} аз {1} дар ин саҳифа ва {2} аз {3} дар умум сарф кардед дар дохили ин тест.",timerLimitPage:"Шумо {0} аз {1} дар ин саҳифа сарф кардед.",timerLimitSurvey:"Шумо {0} аз {1} дар ҳамаи тест сарф кардед.",cleanCaption:"Тоза кардан",clearCaption:"Тоза кардан",removeFileCaption:"Файлро нест кардан"},u.localeNames.tg="тоҷикӣ";u.locales.th={pagePrevText:"ก่อนหน้า",pageNextText:"ถัดไป",completeText:"สำเร็จ",previewText:"ดูตัวอย่าง",editText:"แก้ไข",startSurveyText:"เริ่ม",otherItemText:"อื่นๆ (โปรดระบุ)",noneItemText:"ไม่มี",selectAllItemText:"เลือกทั้งหมด",progressText:"หน้าที่ {0} จาก {1}",panelDynamicProgressText:"รายการที่ {0} จาก {1}",questionsProgressText:"คำตอบที่ {0}/{1} จำนวนคำถาม",emptySurvey:"ไม่มีหน้าเพจที่มองเห็น หรือ คำถามใน survey นี้",completingSurvey:"ขอบคุณที่ทำ survey จนเสร็จ",completingSurveyBefore:"รายการของเราแสดงว่าคุณได้ทำ survey เสร็จเรียบร้อยแล้ว",loadingSurvey:"กำลังโหลด Survey...",optionsCaption:"เลือก...",value:"ข้อมูล",requiredError:"กรุณาตอบคำถาม",requiredErrorInPanel:"กรุณาตอบขั้นต่ำหนึ่งคำถาม",requiredInAllRowsError:"กรุณาตอบคำถามในทุกๆแถว",numericError:"ข้อมูลที่ใส่ต้องเป็นตัวเลข",textMinLength:"กรุณาใส่ขั้นต่ำจำนวน {0} ตัวอักษร",textMaxLength:"กรุณาใส่ไม่เกินจำนวน {0} ตัวอักษร",textMinMaxLength:"กรุณาใส่ขั้นต่ำจำนวน {0} และไม่เกินจำนวน {1} ตัวอักษร",minRowCountError:"กรุณาใส่ขั้นต่ำจำนวน {0} แถว",minSelectError:"กรุณาเลือกอย่างน้อย {0} รายการ",maxSelectError:"กรุณาเลือกไม่เกิน {0} รายการ",numericMinMax:"'{0}' ต้องมากกว่าหรือเท่ากับ {1} และน้อยกว่าหรือเท่ากับ {2}",numericMin:"'{0}' ต้องมากกว่าหรือเท่ากับ {1}",numericMax:"'{0}' น้อยกว่าหรือเท่ากับ {1}",invalidEmail:"กรุณาใส่อีเมล์แอดเดรสที่ถูกต้อง",invalidExpression:"The expression: {0} ต้องรีเทิร์น 'true'.",urlRequestError:"รีเควสรีเทิร์น error '{0}'. {1}",urlGetChoicesError:"รีเควสรีเทิร์นข้อมูลว่างเปล่า หรือ 'path' property ไม่ถูกต้อง",exceedMaxSize:"ขนาดไฟล์ต้องไม่เกิน {0}.",otherRequiredError:"กรุณาใส่ค่าอื่น",uploadingFile:"ไฟล์ของคุณกำลังอัพโหลดอยู่. กรุณารอสักครู่แล้วทำการลองอีกครั้ง",loadingFile:"กำลังโหลด...",chooseFile:"เลือกไฟล์...",noFileChosen:"ไม่ไฟล์ที่เลือก",confirmDelete:"คุณต้องการลบรายการนี้จริงหรือไม่?",keyDuplicationError:"ข้อมูลนี้ต้องเป็น unique.",addColumn:"เพิ่มคอลัมน์",addRow:"เพิ่มแถว",removeRow:"ลบ",addPanel:"เพิ่ม",removePanel:"ลบ",choices_Item:"ชิ้น",matrix_column:"คอลัมน์",matrix_row:"แถว",savingData:"ผลลัพท์กำลังบันทึกลงที่เซิร์ฟเวอร์...",savingDataError:"มีความผิดพลาดเกิดขึ้นส่งผลให้ไม่สามารถบันทึกผลได้",savingDataSuccess:"บันทึกสำเร็จแล้ว",saveAgainButton:"รบกวนลองอีกครั้ง",timerMin:"นาที",timerSec:"วินาที",timerSpentAll:"คุณใช้เวลา {0} บนหน้านี้และ {1} รวมทั้งหมด",timerSpentPage:"คุณใช้เวลา {0} บนหน้านี้",timerSpentSurvey:"คุณใช้เวลา {0} รวมทั้งหมด",timerLimitAll:"คุณใช้เวลา {0} ของ {1} บนหน้านี้และ {2} ของ {3} รวมทั้งหมด",timerLimitPage:"คุณใช้เวลา {0} ของ {1} บนหน้านี้",timerLimitSurvey:"คุณใช้เวลา {0} ของ {1} รวมทั้งหมด",cleanCaption:"คลีน",clearCaption:"เคลียร์",chooseFileCaption:"เลือกไฟล์",removeFileCaption:"นำไฟล์นี้ออก",booleanCheckedLabel:"ใช่",booleanUncheckedLabel:"ไม่ใช่",confirmRemoveFile:"คุณแน่ใจที่จะนำไฟล์นี้ออกใช่หรือไม่: {0}?",confirmRemoveAllFiles:"คุณแน่ใจที่จะนำไฟล์ทั้งหมดออกใช่หรือไม่",questionTitlePatternText:"ชื่อคำถาม"},u.localeNames.th="ไทย";u.locales["zh-tw"]={pagePrevText:"上一頁",pageNextText:"下一頁",completeText:"提交問卷",otherItemText:"填寫其他答案",progressText:"第 {0} 頁, 共 {1} 頁",emptySurvey:"問卷中沒有問題或頁面",completingSurvey:"感謝您的參與!",loadingSurvey:"問卷載入中...",optionsCaption:"請選擇...",requiredError:"請填寫此問題",requiredInAllRowsError:"請填寫所有行中問題",numericError:"答案必須是個數字",textMinLength:"答案長度至少 {0} 個字元",textMaxLength:"答案長度不能超過 {0} 個字元",textMinMaxLength:"答案長度必須在 {0} - {1} 個字元之間",minRowCountError:"最少需要填寫 {0} 行答案",minSelectError:"最少需要選擇 {0} 項答案",maxSelectError:"最多只能選擇 {0} 項答案",numericMinMax:"答案 '{0}' 必須大於等於 {1} 且小於等於 {2}",numericMin:"答案 '{0}' 必須大於等於 {1}",numericMax:"答案 '{0}' 必須小於等於 {1}",invalidEmail:"請輸入有效的 Email 地址",urlRequestError:"載入選項時發生錯誤 '{0}': {1}",urlGetChoicesError:"未能載入有效的選項或請求參數路徑有誤",exceedMaxSize:"文件大小不能超過 {0}",otherRequiredError:"請完成其他問題",uploadingFile:"文件上傳中... 請耐心等待幾秒後重試",addRow:"添加答案",removeRow:"刪除答案",choices_Item:"選項",matrix_column:"列",matrix_row:"行",savingData:"正在將結果保存到服務器...",savingDataError:"在保存結果過程中發生了錯誤，結果未能保存",savingDataSuccess:"結果保存成功!",saveAgainButton:"請重試"},u.localeNames["zh-tw"]="繁體中文";u.locales.tr={pagePrevText:"Geri",pageNextText:"İleri",completeText:"Anketi Tamamla",previewText:"Ön izleme",editText:"Düzenle",startSurveyText:"Başlat",otherItemText:"Diğer (açıklayınız)",noneItemText:"Yok",selectAllItemText:"Hepsini seç",progressText:"Sayfa {0} / {1}",panelDynamicProgressText:"Kayıt {0} / {1}",questionsProgressText:"Soruları cevapladı {0} / {1}",emptySurvey:"Ankette görüntülenecek sayfa ya da soru mevcut değil.",completingSurvey:"Anketimizi tamamladığınız için teşekkür ederiz.",completingSurveyBefore:"Kayıtlarımız, bu anketi zaten tamamladığınızı gösteriyor.",loadingSurvey:"Anket sunucudan yükleniyor ...",optionsCaption:"Seçiniz ...",value:"değer",requiredError:"Lütfen soruya cevap veriniz",requiredErrorInPanel:"Lütfen en az bir soruyu yanıtlayın.",requiredInAllRowsError:"Lütfen tüm satırlardaki soruları cevaplayınız.",numericError:"Girilen değer numerik olmalıdır",textMinLength:"En az {0} sembol giriniz.",textMaxLength:"Lütfen {0} karakterden az girin.",textMinMaxLength:"Lütfen {0} ’den fazla ve {1} ’den az karakter girin.",minRowCountError:"Lütfen en az {0} satırı doldurun.",minSelectError:"Lütfen en az {0} seçeneği seçiniz.",maxSelectError:"Lütfen {0} adetten fazla seçmeyiniz.",numericMinMax:"The '{0}' should be equal or more than {1} and equal or less than {2}",numericMin:"'{0}' değeri {1} değerine eşit veya büyük olmalıdır",numericMax:"'{0}' değeri {1} değerine eşit ya da küçük olmalıdır.",invalidEmail:"Lütfen geçerli bir eposta adresi giriniz.",invalidExpression:"İfade: {0} 'true' döndürmelidir.",urlRequestError:"Talebi şu hatayı döndü '{0}'. {1}",urlGetChoicesError:"Talep herhangi bir veri dönmedi ya da 'path' özelliği hatalı.",exceedMaxSize:"Dosya boyutu {0} değerini geçemez.",otherRequiredError:"Lütfen diğer değerleri giriniz.",uploadingFile:"Dosyanız yükleniyor. LÜtfen birkaç saniye bekleyin ve tekrar deneyin.",loadingFile:"Yükleniyor...",chooseFile:"Dosyaları seçin ...",noFileChosen:"Dosya seçili değil",confirmDelete:"Kaydı silmek istiyor musunuz?",keyDuplicationError:"Bu değer benzersiz olmalıdır.",addColumn:"Sütun ekleyin",addRow:"Satır Ekle",removeRow:"Kaldır",addPanel:"Yeni ekle",removePanel:"Kaldırmak",choices_Item:"eşya",matrix_column:"Sütun",matrix_row:"Kürek çekmek",savingData:"Sonuçlar sunucuya kaydediliyor ...",savingDataError:"Bir hata oluştu ve sonuçları kaydedemedik.",savingDataSuccess:"Sonuçlar başarıyla kaydedildi!",saveAgainButton:"Tekrar deneyin",timerMin:"min",timerSec:"saniye",timerSpentAll:"Bu sayfada {0} ve toplamda {1} harcadınız.",timerSpentPage:"Bu sayfaya {0} harcadınız.",timerSpentSurvey:"Toplamda {0} harcadınız.",timerLimitAll:"Bu sayfaya {0} / {1} ve toplamda {2} / {3} harcadınız.",timerLimitPage:"Bu sayfaya {0} / {1} harcadınız.",timerLimitSurvey:"Toplamda {0} / {1} harcadınız.",cleanCaption:"Temiz",clearCaption:"Açık",chooseFileCaption:"Dosya seçin",removeFileCaption:"Bu dosyayı kaldır",booleanCheckedLabel:"Evet",booleanUncheckedLabel:"Hayır",confirmRemoveFile:"Bu dosyayı kaldırmak istediğinizden emin misiniz: {0}?",confirmRemoveAllFiles:"Tüm dosyaları kaldırmak istediğinizden emin misiniz?",questionTitlePatternText:"Soru başlığı"},u.localeNames.tr="türkçe";u.locales.ua={pagePrevText:"Назад",pageNextText:"Далі",completeText:"Завершити",previewText:"Попередній перегляд",editText:"Редагувати",startSurveyText:"Почати",otherItemText:"Інше (будь ласка, опишіть)",noneItemText:"Жоден",selectAllItemText:"Вибрати все",progressText:"Сторінка {0} з {1}",panelDynamicProgressText:"Запис {0} із {1}",questionsProgressText:"Відповіли на {0}/{1} питань",emptySurvey:"Немає жодного питання.",completingSurvey:"Дякуємо Вам за заповнення анкети!",completingSurveyBefore:"Ви вже проходили це опитування.",loadingSurvey:"Завантаження опитування...",optionsCaption:"Вибрати...",value:"значення",requiredError:"Будь ласка, дайте відповідь.",requiredErrorInPanel:"Будь ласка, дайте відповідь хоча б на одне питання.",requiredInAllRowsError:"Будь ласка, дайте відповідь на питання в кожному рядку.",numericError:"Відповідь повинна бути числом.",textMinLength:"Будь ласка введіть більше {0} символів.",textMaxLength:"Будь ласка введіть менше {0} символів.",textMinMaxLength:"Будь ласка введіть більше {0} и менше {1} символів.",minRowCountError:"Будь ласка, заповніть не менше {0} рядків.",minSelectError:"Будь ласка, виберіть хоча б {0} варіантів.",maxSelectError:"Будь ласка, виберіть не більше {0} варіантів.",numericMinMax:"'{0}' повинно бути не менше ніж {1}, і не більше ніж {2}",numericMin:"'{0}' повинно бути не менше ніж {1}",numericMax:"'{0}' повинно бути не більше ніж {1}",invalidEmail:"Будь ласка, введіть дійсну адресу електронної пошти.",invalidExpression:"Вираз {0} повинен повертати 'true'.",urlRequestError:"Запит повернув помилку '{0}'. {1}",urlGetChoicesError:"Відповідь на запит повернулась порожньою або властивіть 'path' вказано невірно",exceedMaxSize:"Розмір файлу не повинен перевищувати {0}.",otherRequiredError:"Будь ласка, введіть дані в поле 'Інше'",uploadingFile:"Ваш файл завантажується. Зачекайте декілька секунд і спробуйте знову.",loadingFile:"Завантаження...",chooseFile:"Виберіть файл(и)...",noFileChosen:"Файл не вибрано",confirmDelete:"Ви хочете видалити запис?",keyDuplicationError:"Це значення повинно бути унікальним.",addColumn:"Додати колонку",addRow:"Додати рядок",removeRow:"Видалити",addPanel:"Додати нову",removePanel:"Видалити",choices_Item:"Варіант",matrix_column:"Колонка",matrix_row:"Рядок",savingData:"Результати зберігаються на сервер...",savingDataError:"Відбулася помилка, результат не був збережений.",savingDataSuccess:"Резвультат успішно збережений!",saveAgainButton:"Спробувати знову",timerMin:"хв",timerSec:"сек",timerSpentAll:"Ви витратили {0} на цій сторінці і {1} загалом.",timerSpentPage:"Ви витратили {0} на цій сторінці.",timerSpentSurvey:"Ви витратили {0} протягом тесту.",timerLimitAll:"Ви витратили {0} з {1} на цій сторінці і {2} з {3} для всього тесту.",timerLimitPage:"Ви витратили {0} з {1} на цій сторінці.",timerLimitSurvey:"Ви витратили {0} з {1} для всього тесту.",cleanCaption:"Очистити",clearCaption:"Очистити",chooseFileCaption:"Виберіть файл",removeFileCaption:"Видалити файл",booleanCheckedLabel:"Так",booleanUncheckedLabel:"Ні",confirmRemoveFile:"Ви впевнені, що хочете видалити цей файл: {0}?",confirmRemoveAllFiles:"Ви впевнені, що хочете видалити всі файли?",questionTitlePatternText:"Назва запитання"},u.localeNames.ua="українська";u.locales.vi={pagePrevText:"Previous",pageNextText:"Next",completeText:"Complete",previewText:"Preview",editText:"Edit",startSurveyText:"Start",otherItemText:"Other (describe)",noneItemText:"None",selectAllItemText:"Select All",progressText:"Page {0} of {1}",panelDynamicProgressText:"Record {0} of {1}",questionsProgressText:"Answered {0}/{1} questions",emptySurvey:"There is no visible page or question in the survey.",completingSurvey:"Thank you for completing the survey!",completingSurveyBefore:"Our records show that you have already completed this survey.",loadingSurvey:"Loading Survey...",optionsCaption:"Chọn...",value:"value",requiredError:"Please answer the question.",requiredErrorInPanel:"Please answer at least one question.",requiredInAllRowsError:"Please answer questions in all rows.",numericError:"The value should be numeric.",textMinLength:"Please enter at least {0} characters.",textMaxLength:"Please enter less than {0} characters.",textMinMaxLength:"Please enter more than {0} and less than {1} characters.",minRowCountError:"Please fill in at least {0} rows.",minSelectError:"Please select at least {0} variants.",maxSelectError:"Please select no more than {0} variants.",numericMinMax:"The '{0}' should be equal or more than {1} and equal or less than {2}",numericMin:"The '{0}' should be equal or more than {1}",numericMax:"The '{0}' should be equal or less than {1}",invalidEmail:"Please enter a valid e-mail address.",invalidExpression:"The expression: {0} should return 'true'.",urlRequestError:"The request returned error '{0}'. {1}",urlGetChoicesError:"The request returned empty data or the 'path' property is incorrect",exceedMaxSize:"The file size should not exceed {0}.",otherRequiredError:"Please enter the other value.",uploadingFile:"Your file is uploading. Please wait several seconds and try again.",loadingFile:"Loading...",chooseFile:"Choose file(s)...",noFileChosen:"No file chosen",confirmDelete:"Do you want to delete the record?",keyDuplicationError:"This value should be unique.",addColumn:"Add column",addRow:"Add row",removeRow:"Remove",addPanel:"Add new",removePanel:"Remove",choices_Item:"item",matrix_column:"Column",matrix_row:"Row",savingData:"The results are saving on the server...",savingDataError:"An error occurred and we could not save the results.",savingDataSuccess:"The results were saved successfully!",saveAgainButton:"Try again",timerMin:"min",timerSec:"sec",timerSpentAll:"You have spent {0} on this page and {1} in total.",timerSpentPage:"You have spent {0} on this page.",timerSpentSurvey:"You have spent {0} in total.",timerLimitAll:"You have spent {0} of {1} on this page and {2} of {3} in total.",timerLimitPage:"You have spent {0} of {1} on this page.",timerLimitSurvey:"You have spent {0} of {1} in total.",cleanCaption:"Clean",clearCaption:"Clear",chooseFileCaption:"Choose file",removeFileCaption:"Remove this file",booleanCheckedLabel:"Yes",booleanUncheckedLabel:"No",confirmRemoveFile:"Are you sure that you want to remove this file: {0}?",confirmRemoveAllFiles:"Are you sure that you want to remove all files?",questionTitlePatternText:"Question Title"},u.localeNames.vi="vietnamese";u.locales.cy={pagePrevText:"Blaenorol",pageNextText:"Nesaf",completeText:"Cwblhau",previewText:"Rhagolwg",editText:"Golygu",startSurveyText:"Dechrau",otherItemText:"Arall (disgrifiwch)",noneItemText:"Dim",selectAllItemText:"Dewis y Cyfan ",progressText:"Tudalen {0} o {1}",panelDynamicProgressText:"Cofnod {0} o {1}",questionsProgressText:"Wedi ateb {0}/{1} cwestiwn",emptySurvey:"Does dim modd gweld tudalen na chwestiwn yn yr arolwg.",completingSurvey:"Diolch am lenwi’r holiadur!",completingSurveyBefore:"Rydych chi wedi llenwi’r arolwg hwn yn barod yn ôl ein cofnodion.",loadingSurvey:"Wrthi’n Llwytho’r Arolwg...",optionsCaption:"Dewiswch...",value:"gwerth",requiredError:"Atebwch y cwestiwn.",requiredErrorInPanel:"Atebwch o leiaf un cwestiwn.",requiredInAllRowsError:"Atebwch y cwestiynau ym mhob rhes.",numericError:"Dylai’r gwerth fod yn rhif.",textMinLength:"Rhowch o leiaf {0} nod.",textMaxLength:"Rhowch lai na {0} nod.",textMinMaxLength:"Rhowch o leiaf {0} nod ond dim mwy na {1}.",minRowCountError:"Llenwch o leiaf {0} rhes.",minSelectError:"Dewiswch o leiaf {0} amrywiolyn.",maxSelectError:"Peidiwch â dewis mwy na {0} amrywiolyn.",numericMinMax:"Dylai’r '{0}' fod yr un fath â {1} neu’n fwy, a’r fath â {2} neu’n llai",numericMin:"Dylai’r '{0}' fod yr un fath â {1} neu’n fwy",numericMax:"Dylai’r '{0}' fod yr un fath â {1} neu’n llai",invalidEmail:"Rhowch gyfeiriad e-bost dilys.",invalidExpression:"Dylai’r mynegiad {0} arwain at 'true'.",urlRequestError:"Roedd y cais wedi arwain at y gwall '{0}'. {1}",urlGetChoicesError:"Roedd y cais wedi arwain at ddata gwag neu mae priodwedd y ‘path’ yn anghywir ",exceedMaxSize:"Ddylai’r ffeil ddim bod yn fwy na {0}.",otherRequiredError:"Rhowch y gwerth arall.",uploadingFile:"Mae eich ffeil wrthi’n llwytho i fyny. Arhoswch ychydig o eiliadau a rhoi cynnig arall arni.",loadingFile:"Wrthi’n llwytho...",chooseFile:"Dewiswch ffeil(iau)...",noFileChosen:"Heb ddewis ffeil ",confirmDelete:"Ydych chi am ddileu’r cofnod?",keyDuplicationError:"Dylai’r gwerth hwn fod yn unigryw.",addColumn:"Ychwanegu colofn ",addRow:"Ychwanegu rhes",removeRow:"Tynnu",addPanel:"Ychwanegu o’r newydd",removePanel:"Tynnu",choices_Item:"eitem",matrix_column:"Colofn",matrix_row:"Rhes",savingData:"Mae’r canlyniadau’n cael eu cadw ar y gweinydd...",savingDataError:"Roedd gwall a doedd dim modd cadw’r canlyniadau.",savingDataSuccess:"Wedi llwyddo i gadw’r canlyniadau!",saveAgainButton:"Rhowch gynnig arall arni",timerMin:"mun",timerSec:"eil",timerSpentAll:"Rydych chi wedi treulio {0} ar y dudalen hon a {1} gyda’i gilydd.",timerSpentPage:"Rydych chi wedi treulio {0} ar y dudalen hon.",timerSpentSurvey:"Rydych chi wedi treulio {0} gyda’i gilydd.",timerLimitAll:"Rydych chi wedi treulio {0} o {1} ar y dudalen hon a {2} o {3} gyda’i gilydd.",timerLimitPage:"Rydych chi wedi treulio {0} o {1} ar y dudalen hon.",timerLimitSurvey:"Rydych chi wedi treulio {0} o {1} gyda’i gilydd.",cleanCaption:"Glanhau",clearCaption:"Clirio",chooseFileCaption:"Dewiswch ffeil ",removeFileCaption:"Tynnu’r ffeil hon ",booleanCheckedLabel:"Iawn",booleanUncheckedLabel:"Na",confirmRemoveFile:"Ydych chi’n siŵr eich bod am dynnu’r ffeil hon: {0}?",confirmRemoveAllFiles:"Ydych chi’n siŵr eich bod am dynnu pob ffeil?",questionTitlePatternText:"Teitl y Cwestiwn "},u.localeNames.cy="cymraeg";var ja={root:"sv_main sv_bootstrap_css",container:"sv_container",header:"panel-heading card-header",body:"panel-body card-block mt-4",bodyEmpty:"panel-body card-block mt-4 sv_body_empty",footer:"panel-footer card-footer",title:"",description:"",logo:"sv_logo",logoImage:"sv_logo__image",headerText:"sv_header__text",navigationButton:"",completedPage:"",navigation:{complete:"btn sv_complete_btn",prev:"btn sv_prev_btn",next:"btn sv_next_btn",start:"btn sv_start_btn",preview:"btn sv_preview_btn",edit:"btn sv_edit_btn"},progress:"progress center-block mx-auto mb-4",progressBar:"progress-bar",progressTextUnderBar:"sv-hidden",progressButtonsContainerCenter:"sv_progress-buttons__container-center",progressButtonsContainer:"sv_progress-buttons__container",progressButtonsImageButtonLeft:"sv_progress-buttons__image-button-left",progressButtonsImageButtonRight:"sv_progress-buttons__image-button-right",progressButtonsImageButtonHidden:"sv_progress-buttons__image-button--hidden",progressButtonsListContainer:"sv_progress-buttons__list-container",progressButtonsList:"sv_progress-buttons__list",progressButtonsListElementPassed:"sv_progress-buttons__list-element--passed",progressButtonsListElementCurrent:"sv_progress-buttons__list-element--current",progressButtonsListElementNonClickable:"sv_progress-buttons__list-element--nonclickable",progressButtonsPageTitle:"sv_progress-buttons__page-title",progressButtonsPageDescription:"sv_progress-buttons__page-description",page:{root:"",title:"",description:"small"},pageTitle:"",pageDescription:"small",row:"sv_row",question:{mainRoot:"sv_qstn",flowRoot:"sv_q_flow sv_qstn",header:"",headerLeft:"title-left",content:"",contentLeft:"content-left",titleLeftRoot:"sv_qstn_left",title:"",titleExpandable:"sv_q_title_expandable",number:"sv_q_num",description:"small",descriptionUnderInput:"small",requiredText:"sv_q_required_text",comment:"form-control",required:"",titleRequired:"",hasError:"has-error",indent:20,formGroup:"form-group"},panel:{title:"sv_p_title",titleExpandable:"sv_p_title_expandable",titleOnError:"",icon:"sv_panel_icon",iconExpanded:"sv_expanded",description:"small sv_p_description",container:"sv_p_container",footer:"sv_p_footer",number:"sv_q_num",requiredText:"sv_q_required_text"},error:{root:"alert alert-danger",icon:"glyphicon glyphicon-exclamation-sign",item:"",locationTop:"sv_qstn_error_top",locationBottom:"sv_qstn_error_bottom"},boolean:{root:"sv_qbln form-inline checkbox",item:"sv-boolean",control:"sv-visuallyhidden",itemChecked:"sv-boolean--checked checked",itemIndeterminate:"sv-boolean--indeterminate",itemDisabled:"sv-boolean--disabled",switch:"sv-boolean__switch",slider:"sv-boolean__slider",sliderText:"sv-hidden",label:"sv-boolean__label ",disabledLabel:"sv-boolean__label--disabled",materialDecorator:"sv-item__decorator sv-boolean__decorator ",itemDecorator:"sv-item__svg  sv-boolean__svg",checkedPath:"sv-boolean__checked-path",uncheckedPath:"sv-boolean__unchecked-path",indeterminatePath:"sv-boolean__indeterminate-path"},checkbox:{root:"sv_qcbc sv_qcbx form-inline",item:"checkbox",itemChecked:"checked",itemSelectAll:"sv_q_checkbox_selectall",itemNone:"sv_q_checkbox_none",itemInline:"sv_q_checkbox_inline",itemControl:"",itemDecorator:"sv-hidden",label:"",labelChecked:"",controlLabel:"",materialDecorator:"checkbox-material",other:"sv_q_checkbox_other form-control",column:"sv_q_select_column"},ranking:{root:"sv-ranking",rootMobileMod:"sv-ranking--mobile",rootDragMod:"sv-ranking--drag",item:"sv-ranking-item",itemContent:"sv-ranking-item__content",itemIndex:"sv-ranking-item__index",controlLabel:"sv-ranking-item__text",itemGhostNode:"sv-ranking-item__ghost",itemIconContainer:"sv-ranking-item__icon-container",itemIcon:"sv-ranking-item__icon",itemIconHoverMod:"sv-ranking-item__icon--hover",itemIconFocusMod:"sv-ranking-item__icon--focus",itemGhostMod:"sv-ranking-item--ghost",itemDragMod:"sv-ranking-item--drag"},comment:"form-control",dropdown:{root:"",control:"form-control",other:"sv_q_dd_other form-control"},html:{root:""},image:{root:"sv_q_image",image:"sv_image_image"},matrix:{root:"table sv_q_matrix",label:"sv_q_m_label",itemChecked:"checked",itemDecorator:"sv-hidden",cellText:"sv_q_m_cell_text",cellTextSelected:"sv_q_m_cell_selected bg-primary",cellLabel:"sv_q_m_cell_label"},matrixdropdown:{root:"table",cell:"sv_matrix_cell",headerCell:"sv_matrix_cell_header",row:"sv_matrix_row",rowAdditional:"sv-matrix__row--additional",detailRow:"sv_matrix_detail_row",detailRowText:"sv_matrix_cell_detail_rowtext",detailCell:"sv_matrix_cell_detail",detailButton:"sv_matrix_cell_detail_button",detailButtonExpanded:"sv_matrix_cell_detail_button_expanded",detailIcon:"sv_detail_panel_icon",detailIconExpanded:"sv_detail_expanded",detailPanelCell:"sv_matrix_cell_detail_panel",actionsCell:"sv_matrix_cell sv_matrix_cell_actions"},matrixdynamic:{root:"table",button:"button",buttonAdd:"",buttonRemove:"",iconAdd:"",iconRemove:"",iconDrag:"sv-matrixdynamic__drag-icon",headerCell:"sv_matrix_cell_header",row:"sv_matrix_row",detailRow:"sv_matrix_detail_row",detailCell:"sv_matrix_cell_detail",detailButton:"sv_matrix_cell_detail_button",detailButtonExpanded:"sv_matrix_cell_detail_button_expanded",detailIcon:"sv_detail_panel_icon",detailIconExpanded:"sv_detail_expanded",detailPanelCell:"sv_matrix_cell_detail_panel",actionsCell:"sv_matrix_cell sv_matrix_cell_actions",emptyRowsSection:"sv_matrix_empty_rows_section",emptyRowsText:"sv_matrix_empty_rows_text",emptyRowsButton:"",dragDropGhostPositionTop:"sv-matrix__drag-drop-ghost-position-top",dragDropGhostPositionBottom:"sv-matrix__drag-drop-ghost-position-bottom"},paneldynamic:{root:"",navigation:"sv-paneldynamic__navigation",progressTop:"sv-paneldynamic__progress sv-paneldynamic__progress--top",progressBottom:"sv-paneldynamic__progress sv-paneldynamic__progress--bottom",title:"sv-title sv-question__title",button:"button",buttonAdd:"button sv-paneldynamic__add-btn",buttonRemove:"sv_p_remove_btn",buttonRemoveRight:"button sv-paneldynamic__remove-btn--right",buttonPrev:"sv-paneldynamic__prev-btn",buttonNext:"sv-paneldynamic__next-btn",progressContainer:"sv-paneldynamic__progress-container",progress:"sv-progress",progressBar:"sv-progress__bar",progressText:"sv-paneldynamic__progress-text",panelWrapper:"sv_p_wrapper",panelWrapperInRow:"sv_p_wrapper_in_row"},multipletext:{root:"table",itemTitle:"",itemValue:"sv_q_mt_item_value form-control"},radiogroup:{root:"sv_qcbc form-inline",item:"radio",itemChecked:"checked",itemInline:"sv_q_radiogroup_inline",label:"",labelChecked:"",itemControl:"",itemDecorator:"sv-hidden",controlLabel:"",materialDecorator:"circle",other:"sv_q_radiogroup_other form-control",clearButton:"sv_q_radiogroup_clear button",column:"sv_q_select_column"},buttongroup:{root:"sv-button-group",item:"sv-button-group__item",itemIcon:"sv-button-group__item-icon",itemDecorator:"sv-button-group__item-decorator",itemCaption:"sv-button-group__item-caption",itemHover:"sv-button-group__item--hover",itemSelected:"sv-button-group__item--selected",itemDisabled:"sv-button-group__item--disabled",itemControl:"sv-visuallyhidden"},imagepicker:{root:"sv_imgsel",item:"sv_q_imgsel",itemChecked:"checked",itemInline:"sv_q_imagepicker_inline",label:"sv_q_imgsel_label",itemControl:"sv_q_imgsel_control_item",image:"sv_q_imgsel_image",itemText:"sv_q_imgsel_text",clearButton:"sv_q_radiogroup_clear"},rating:{root:"btn-group",item:"btn btn-default btn-secondary",selected:"active",minText:"sv_q_rating_min_text",itemText:"sv_q_rating_item_text",maxText:"sv_q_rating_max_text",disabled:""},text:"form-control",expression:"form-control",file:{root:"sv_q_file",placeholderInput:"sv_q_file_placeholder",preview:"sv_q_file_preview",removeButton:"sv_q_file_remove_button",fileInput:"sv_q_file_input",removeFile:"sv_q_file_remove",removeFileSvg:"sv-hidden",fileDecorator:"sv-hidden",fileSignBottom:"sv-hidden",removeButtonBottom:"sv-hidden",dragAreaPlaceholder:"sv-hidden",fileList:"",defaultImage:"sv-hidden"},signaturepad:{root:"sv_q_signaturepad sjs_sp_container",controls:"sjs_sp_controls",placeholder:"sjs_sp_placeholder",clearButton:"sjs_sp_clear"},saveData:{root:"",saving:"alert alert-info",error:"alert alert-danger",success:"alert alert-success",saveAgainButton:""},window:{root:"modal-content",body:"modal-body",header:{root:"modal-header panel-title",title:"pull-left",button:"glyphicon pull-right",buttonExpanded:"glyphicon pull-right glyphicon-chevron-up",buttonCollapsed:"glyphicon pull-right glyphicon-chevron-down"}}};kn.bootstrap=ja;var La={root:"sv_main sv_bootstrapmaterial_css",container:"sv_container",header:"card-heading",body:"card-body",bodyEmpty:"card-body sv_body_empty",footer:"card-footer",title:"",description:"",logo:"sv_logo",logoImage:"sv_logo__image",headerText:"sv_header__text",navigationButton:"",completedPage:"",navigation:{complete:"btn sv_complete_btn btn-primary",prev:"btn sv_prev_btn btn-primary",next:"btn sv_next_btn btn-primary",start:"btn sv_start_btn btn-primary",preview:"btn sv_preview_btn btn-primary",edit:"btn sv_edit_btn btn-primary"},progress:"progress center-block mx-auto mb-4",progressBar:"progress-bar",progressTextUnderBar:"sv-hidden",progressButtonsContainerCenter:"sv_progress-buttons__container-center",progressButtonsContainer:"sv_progress-buttons__container",progressButtonsImageButtonLeft:"sv_progress-buttons__image-button-left",progressButtonsImageButtonRight:"sv_progress-buttons__image-button-right",progressButtonsImageButtonHidden:"sv_progress-buttons__image-button--hidden",progressButtonsListContainer:"sv_progress-buttons__list-container",progressButtonsList:"sv_progress-buttons__list",progressButtonsListElementPassed:"sv_progress-buttons__list-element--passed",progressButtonsListElementCurrent:"sv_progress-buttons__list-element--current",progressButtonsListElementNonClickable:"sv_progress-buttons__list-element--nonclickable",progressButtonsPageTitle:"sv_progress-buttons__page-title",progressButtonsPageDescription:"sv_progress-buttons__page-description",page:{root:"",title:"",description:"small"},pageTitle:"",pageDescription:"small",row:"sv_row",question:{mainRoot:"sv_qstn form-group bmd-form-group",flowRoot:"sv_q_flow form-group bmd-form-group",header:"",headerLeft:"title-left",content:"",contentLeft:"content-left",titleLeftRoot:"sv_qstn_left",requiredText:"sv_q_required_text",title:"",titleExpandable:"sv_q_title_expandable",number:"sv_q_num",description:"small",descriptionUnderInput:"small",comment:"form-control",required:"",titleRequired:"",hasError:"has-error",indent:20,formGroup:"form-group bmd-form-group"},panel:{title:"sv_p_title",titleExpandable:"sv_p_title_expandable",titleOnError:"",icon:"sv_panel_icon",iconExpanded:"sv_expanded",description:"small sv_p_description",container:"sv_p_container",footer:"sv_p_footer",number:"sv_q_num",requiredText:"sv_q_required_text"},error:{root:"alert alert-danger",icon:"glyphicon glyphicon-exclamation-sign",item:"",locationTop:"sv_qstn_error_top",locationBottom:"sv_qstn_error_bottom"},boolean:{root:"sv_qbln checkbox",item:"sv-boolean",control:"sv-visuallyhidden",itemChecked:"sv-boolean--checked checked",itemIndeterminate:"sv-boolean--indeterminate",itemDisabled:"sv-boolean--disabled",switch:"sv-boolean__switch",slider:"sv-boolean__slider",sliderText:"sv-hidden",label:"sv-boolean__label ",disabledLabel:"sv-boolean__label--disabled",materialDecorator:"sv-item__decorator sv-boolean__decorator ",itemDecorator:"sv-item__svg  sv-boolean__svg",checkedPath:"sv-boolean__checked-path",uncheckedPath:"sv-boolean__unchecked-path",indeterminatePath:"sv-boolean__indeterminate-path"},checkbox:{root:"sv_qcbx",item:"checkbox",itemChecked:"checked",itemSelectAll:"sv_q_checkbox_selectall",itemNone:"sv_q_checkbox_none",itemInline:"sv_q_checkbox_inline",itemDecorator:"sv-hidden",itemControl:"",label:"",labelChecked:"",controlLabel:"",materialDecorator:"checkbox-decorator",other:"sv_q_checkbox_other form-control",column:"sv_q_select_column"},ranking:{root:"sv-ranking",rootMobileMod:"sv-ranking--mobile",rootDragMod:"sv-ranking--drag",item:"sv-ranking-item",itemContent:"sv-ranking-item__content",itemIndex:"sv-ranking-item__index",controlLabel:"sv-ranking-item__text",itemGhostNode:"sv-ranking-item__ghost",itemIconContainer:"sv-ranking-item__icon-container",itemIcon:"sv-ranking-item__icon",itemIconHoverMod:"sv-ranking-item__icon--hover",itemIconFocusMod:"sv-ranking-item__icon--focus",itemGhostMod:"sv-ranking-item--ghost",itemDragMod:"sv-ranking-item--drag"},comment:"form-control",dropdown:{root:"",control:"form-control",other:"sv_q_dd_other form-control"},html:{root:""},image:{root:"sv_q_image",image:"sv_image_image"},matrix:{root:"table sv_q_matrix",row:"form-group bmd-form-group",label:"sv_q_m_label radio-inline",cellText:"sv_q_m_cell_text",cellTextSelected:"sv_q_m_cell_selected bg-primary",cellLabel:"sv_q_m_cell_label",itemValue:"form-control",itemChecked:"checked",itemDecorator:"sv-hidden",materialDecorator:"bmd-radio"},matrixdropdown:{root:"table",itemValue:"form-group bmd-form-group",headerCell:"sv_matrix_cell_header",row:"sv_matrix_row",rowAdditional:"sv-matrix__row--additional",detailRow:"sv_matrix_detail_row",detailRowText:"sv_matrix_cell_detail_rowtext",detailCell:"sv_matrix_cell_detail",detailButton:"sv_matrix_cell_detail_button",detailButtonExpanded:"sv_matrix_cell_detail_button_expanded",detailIcon:"sv_detail_panel_icon",detailIconExpanded:"sv_detail_expanded",detailPanelCell:"sv_matrix_cell_detail_panel",actionsCell:"sv_matrix_cell sv_matrix_cell_actions"},matrixdynamic:{mainRoot:"sv_qstn",flowRoot:"sv_q_flow",root:"table",button:"btn btn-primary",itemValue:"form-group bmd-form-group",buttonAdd:"",buttonRemove:"",iconAdd:"",iconRemove:"",iconDrag:"sv-matrixdynamic__drag-icon",headerCell:"sv_matrix_cell_header",row:"sv_matrix_row",detailRow:"sv_matrix_detail_row",detailCell:"sv_matrix_cell_detail",detailButton:"sv_matrix_cell_detail_button",detailButtonExpanded:"sv_matrix_cell_detail_button_expanded",detailIcon:"sv_detail_panel_icon",detailIconExpanded:"sv_detail_expanded",detailPanelCell:"sv_matrix_cell_detail_panel",actionsCell:"sv_matrix_cell sv_matrix_cell_actions",emptyRowsSection:"sv_matrix_empty_rows_section",emptyRowsText:"sv_matrix_empty_rows_text",emptyRowsButton:"",dragDropGhostPositionTop:"sv-matrix__drag-drop-ghost-position-top",dragDropGhostPositionBottom:"sv-matrix__drag-drop-ghost-position-bottom"},paneldynamic:{root:"",navigation:"sv-paneldynamic__navigation",progressTop:"sv-paneldynamic__progress sv-paneldynamic__progress--top",progressBottom:"sv-paneldynamic__progress sv-paneldynamic__progress--bottom",title:"sv-title sv-question__title",button:"button",buttonAdd:"button sv-paneldynamic__add-btn btn btn-primary",buttonRemove:"button sv-paneldynamic__remove-btn btn btn-primary",buttonRemoveRight:"sv-paneldynamic__remove-btn--right",buttonPrev:"sv-paneldynamic__prev-btn",buttonNext:"sv-paneldynamic__next-btn",progressContainer:"sv-paneldynamic__progress-container",progress:"sv-progress",progressBar:"sv-progress__bar",progressText:"sv-paneldynamic__progress-text",panelWrapper:"sv_p_wrapper",panelWrapperInRow:"sv_p_wrapper_in_row"},multipletext:{root:"table",itemTitle:"",row:"form-group bmd-form-group",itemValue:"sv_q_mt_item_value form-control"},radiogroup:{root:"",item:"radio",itemChecked:"checked",itemInline:"sv_q_radiogroup_inline",itemDecorator:"sv-hidden",label:"",labelChecked:"",itemControl:"",controlLabel:"sv_q_radiogroup_control_label",materialDecorator:"bmd-radio",other:"sv_q_radiogroup_other form-control",clearButton:"sv_q_radiogroup_clear button btn btn-primary",column:"sv_q_select_column"},buttongroup:{root:"sv-button-group",item:"sv-button-group__item",itemIcon:"sv-button-group__item-icon",itemDecorator:"sv-button-group__item-decorator",itemCaption:"sv-button-group__item-caption",itemSelected:"sv-button-group__item--selected",itemHover:"sv-button-group__item--hover",itemDisabled:"sv-button-group__item--disabled",itemControl:"sv-visuallyhidden"},imagepicker:{root:"sv_imgsel",item:"sv_q_imgsel",itemChecked:"checked",itemInline:"sv_q_imagepicker_inline",label:"sv_q_imgsel_label",itemControl:"sv_q_imgsel_control_item",image:"sv_q_imgsel_image",itemText:"sv_q_imgsel_text",clearButton:"sv_q_radiogroup_clear"},rating:{root:"btn-group",item:"btn btn-default btn-secondary",selected:"active",minText:"sv_q_rating_min_text",itemText:"sv_q_rating_item_text",maxText:"sv_q_rating_max_text",disabled:""},text:"form-control",expression:"form-control",file:{root:"form-group bmd-form-group is-fileinput sv_q_file",placeholderInput:"",preview:"sv_q_file_preview",removeButton:"sv_q_file_remove_button",fileInput:"sv_q_file_input",removeFile:"sv_q_file_remove",removeFileSvg:"sv-hidden",fileDecorator:"sv-hidden",fileSignBottom:"sv-hidden",removeButtonBottom:"sv-hidden",dragAreaPlaceholder:"sv-hidden",fileList:"",defaultImage:"sv-hidden"},signaturepad:{root:"sv_q_signaturepad sjs_sp_container",controls:"sjs_sp_controls",placeholder:"sjs_sp_placeholder",clearButton:"sjs_sp_clear"},saveData:{root:"",saving:"alert alert-info",error:"alert alert-danger",success:"alert alert-success",saveAgainButton:""},window:{root:"modal-content",body:"modal-body",header:{root:"modal-header card-title",title:"pull-left",button:"glyphicon pull-right",buttonExpanded:"glyphicon pull-right glyphicon-chevron-up",buttonCollapsed:"glyphicon pull-right glyphicon-chevron-down"}}};kn.bootstrapmaterial=La;var Na={root:"sv-root-modern",container:"sv-container-modern",header:"sv-title sv-container-modern__title",body:"sv-body",bodyEmpty:"sv-body sv-body--empty",footer:"sv-footer sv-body__footer sv-clearfix",title:"",description:"",logo:"sv-logo",logoImage:"sv-logo__image",headerText:"sv-header__text",navigationButton:"",completedPage:"sv-completedpage",navigation:{complete:"sv-btn sv-footer__complete-btn",prev:"sv-btn sv-footer__prev-btn",next:"sv-btn sv-footer__next-btn",start:"sv-btn sv-footer__start-btn",preview:"sv-btn sv-footer__preview-btn",edit:"sv-btn sv-footer__edit-btn"},panel:{title:"sv-title sv-panel__title",titleExpandable:"sv-panel__title--expandable",titleOnError:"sv-panel__title--error",description:"sv-description sv-panel__description",container:"sv-panel sv-row__panel",content:"sv-panel__content",icon:"sv-panel__icon",iconExpanded:"sv-panel__icon--expanded",footer:"sv-panel__footer",requiredText:"sv-panel__required-text",number:"sv-question__num"},paneldynamic:{root:"sv-paneldynamic",navigation:"sv-paneldynamic__navigation",title:"sv-title sv-question__title",button:"sv-btn",buttonRemove:"sv-paneldynamic__remove-btn",buttonRemoveRight:"sv-paneldynamic__remove-btn--right",buttonAdd:"sv-paneldynamic__add-btn",progressTop:"sv-paneldynamic__progress sv-paneldynamic__progress--top",progressBottom:"sv-paneldynamic__progress sv-paneldynamic__progress--bottom",buttonPrev:"sv-paneldynamic__prev-btn",buttonNext:"sv-paneldynamic__next-btn",progressContainer:"sv-paneldynamic__progress-container",progress:"sv-progress",progressBar:"sv-progress__bar",progressText:"sv-paneldynamic__progress-text",separator:"sv-paneldynamic__separator",panelWrapper:"sv-paneldynamic__panel-wrapper",panelWrapperInRow:"sv-paneldynamic__panel-wrapper--in-row"},progress:"sv-progress sv-body__progress",progressBar:"sv-progress__bar",progressText:"sv-progress__text",progressTextInBar:"sv-hidden",progressButtonsContainerCenter:"sv_progress-buttons__container-center",progressButtonsContainer:"sv_progress-buttons__container",progressButtonsImageButtonLeft:"sv_progress-buttons__image-button-left",progressButtonsImageButtonRight:"sv_progress-buttons__image-button-right",progressButtonsImageButtonHidden:"sv_progress-buttons__image-button--hidden",progressButtonsListContainer:"sv_progress-buttons__list-container",progressButtonsList:"sv_progress-buttons__list",progressButtonsListElementPassed:"sv_progress-buttons__list-element--passed",progressButtonsListElementCurrent:"sv_progress-buttons__list-element--current",progressButtonsListElementNonClickable:"sv_progress-buttons__list-element--nonclickable",progressButtonsPageTitle:"sv_progress-buttons__page-title",progressButtonsPageDescription:"sv_progress-buttons__page-description",page:{root:"sv-page sv-body__page",title:"sv-title sv-page__title",description:"sv-description sv-page__description"},pageTitle:"sv-title sv-page__title",pageDescription:"sv-description sv-page__description",row:"sv-row sv-clearfix",question:{mainRoot:"sv-question sv-row__question",flowRoot:"sv-question sv-row__question sv-row__question--flow",asCell:"sv-table__cell",header:"sv-question__header",headerLeft:"sv-question__header--location--left",headerTop:"sv-question__header--location--top",headerBottom:"sv-question__header--location--bottom",content:"sv-question__content",contentLeft:"sv-question__content--left",titleLeftRoot:"",answered:"sv-question--answered",titleOnAnswer:"sv-question__title--answer",titleOnError:"sv-question__title--error",title:"sv-title sv-question__title",titleExpandable:"sv-question__title--expandable",icon:"sv-question__icon",iconExpanded:"sv-question__icon--expanded",requiredText:"sv-question__required-text",number:"sv-question__num",description:"sv-description sv-question__description",descriptionUnderInput:"sv-description sv-question__description",comment:"sv-comment",required:"sv-question--required",titleRequired:"sv-question__title--required",indent:20,footer:"sv-question__footer",formGroup:"sv-question__form-group",hasError:"",disabled:"sv-question--disabled"},image:{root:"sv-image",image:"sv_image_image"},error:{root:"sv-question__erbox",icon:"",item:"",locationTop:"sv-question__erbox--location--top",locationBottom:"sv-question__erbox--location--bottom"},checkbox:{root:"sv-selectbase",item:"sv-item sv-checkbox sv-selectbase__item",itemSelectAll:"sv-checkbox--selectall",itemNone:"sv-checkbox--none",itemDisabled:"sv-item--disabled sv-checkbox--disabled",itemChecked:"sv-checkbox--checked",itemHover:"sv-checkbox--allowhover",itemInline:"sv-selectbase__item--inline",label:"sv-selectbase__label",labelChecked:"",itemControl:"sv-visuallyhidden sv-item__control",itemDecorator:"sv-item__svg sv-checkbox__svg",controlLabel:"sv-item__control-label",materialDecorator:"sv-item__decorator sv-selectbase__decorator sv-checkbox__decorator",other:"sv-comment sv-question__other",column:"sv-selectbase__column"},ranking:{root:"sv-ranking",rootMobileMod:"sv-ranking--mobile",rootDragMod:"sv-ranking--drag",item:"sv-ranking-item",itemContent:"sv-ranking-item__content",itemIndex:"sv-ranking-item__index",controlLabel:"sv-ranking-item__text",itemGhostNode:"sv-ranking-item__ghost",itemIconContainer:"sv-ranking-item__icon-container",itemIcon:"sv-ranking-item__icon",itemIconHoverMod:"sv-ranking-item__icon--hover",itemIconFocusMod:"sv-ranking-item__icon--focus",itemGhostMod:"sv-ranking-item--ghost",itemDragMod:"sv-ranking-item--drag"},radiogroup:{root:"sv-selectbase",item:"sv-item sv-radio sv-selectbase__item",itemInline:"sv-selectbase__item--inline",label:"sv-selectbase__label",labelChecked:"",itemDisabled:"sv-item--disabled sv-radio--disabled",itemChecked:"sv-radio--checked",itemHover:"sv-radio--allowhover",itemControl:"sv-visuallyhidden sv-item__control",itemDecorator:"sv-item__svg sv-radio__svg",controlLabel:"sv-item__control-label",materialDecorator:"sv-item__decorator sv-selectbase__decorator sv-radio__decorator",other:"sv-comment sv-question__other",clearButton:"sv-btn sv-selectbase__clear-btn",column:"sv-selectbase__column"},buttongroup:{root:"sv-button-group",item:"sv-button-group__item",itemIcon:"sv-button-group__item-icon",itemDecorator:"sv-button-group__item-decorator",itemCaption:"sv-button-group__item-caption",itemSelected:"sv-button-group__item--selected",itemHover:"sv-button-group__item--hover",itemDisabled:"sv-button-group__item--disabled",itemControl:"sv-visuallyhidden"},boolean:{root:"sv_qbln",small:"sv-row__question--small",item:"sv-boolean sv-item",control:"sv-visuallyhidden",itemChecked:"sv-boolean--checked",itemIndeterminate:"sv-boolean--indeterminate",itemDisabled:"sv-item--disabled sv-boolean--disabled",switch:"sv-boolean__switch",slider:"sv-boolean__slider",sliderText:"sv-hidden",label:"sv-boolean__label ",disabledLabel:"sv-boolean__label--disabled",materialDecorator:"sv-item__decorator sv-boolean__decorator ",itemDecorator:"sv-item__svg  sv-boolean__svg",checkedPath:"sv-boolean__checked-path",uncheckedPath:"sv-boolean__unchecked-path",indeterminatePath:"sv-boolean__indeterminate-path"},text:{root:"sv-text",small:"sv-row__question--small",onError:"sv-text--error"},multipletext:{root:"sv-multipletext",item:"sv-multipletext__item",itemTitle:"sv-multipletext__item-title",row:"sv-multipletext__row",cell:"sv-multipletext__cell"},dropdown:{root:"",small:"sv-row__question--small",control:"sv-dropdown",selectWrapper:"",other:"sv-comment sv-question__other",onError:"sv-dropdown--error"},imagepicker:{root:"sv-imagepicker",item:"sv-imagepicker__item",itemInline:"sv-imagepicker__item--inline",itemChecked:"sv-imagepicker__item--checked",itemDisabled:"sv-imagepicker__item--disabled",itemHover:"sv-imagepicker__item--allowhover",label:"sv-imagepicker__label",itemControl:"sv-imagepicker__control",image:"sv-imagepicker__image",itemText:"sv-imagepicker__text",clearButton:"sv-btn",other:"sv-comment sv-question__other"},matrix:{tableWrapper:"sv-matrix",root:"sv-table sv-matrix-root",rowError:"sv-matrix__row--error",cell:"sv-table__cell sv-matrix__cell",headerCell:"sv-table__cell sv-table__cell--header",label:"sv-item sv-radio sv-matrix__label",itemValue:"sv-visuallyhidden sv-item__control sv-radio__control",itemChecked:"sv-radio--checked",itemDisabled:"sv-item--disabled sv-radio--disabled",itemHover:"sv-radio--allowhover",materialDecorator:"sv-item__decorator sv-radio__decorator",itemDecorator:"sv-item__svg sv-radio__svg",cellText:"sv-matrix__text",cellTextSelected:"sv-matrix__text--checked",cellTextDisabled:"sv-matrix__text--disabled"},matrixdropdown:{root:"sv-table sv-matrixdropdown",cell:"sv-table__cell",headerCell:"sv-table__cell sv-table__cell--header",row:"sv-table__row",rowAdditional:"sv-table__row--additional",detailRow:"sv-table__row--detail",detailRowText:"sv-table__cell--detail-rowtext",detailCell:"sv-table__cell--detail",choiceCell:"sv-table__cell--choice",detailButton:"sv-table__cell--detail-button",detailButtonExpanded:"sv-table__cell--detail-button--expanded",detailIcon:"sv-detail-panel__icon",detailIconExpanded:"sv-detail-panel__icon--expanded",detailPanelCell:"sv-table__cell--detail-panel",actionsCell:"sv-table__cell sv-table__cell--actions"},matrixdynamic:{root:"sv-table sv-matrixdynamic",cell:"sv-table__cell",headerCell:"sv-table__cell sv-table__cell--header",button:"sv-btn",buttonAdd:"sv-matrixdynamic__add-btn",buttonRemove:"sv-matrixdynamic__remove-btn",iconAdd:"",iconRemove:"",iconDrag:"sv-matrixdynamic__drag-icon",row:"sv-table__row",detailRow:"sv-table__row--detail",detailCell:"sv-table__cell--detail",choiceCell:"sv-table__cell--choice",detailButton:"sv-table__cell--detail-button",detailButtonExpanded:"sv-table__cell--detail-button--expanded",detailIcon:"sv-detail-panel__icon",detailIconExpanded:"sv-detail-panel__icon--expanded",detailPanelCell:"sv-table__cell--detail-panel",actionsCell:"sv-table__cell sv-table__cell--actions",emptyRowsSection:"sv-table__empty--rows--section",emptyRowsText:"sv-table__empty--rows--text",emptyRowsButton:"",dragDropGhostPositionTop:"sv-matrix__drag-drop-ghost-position-top",dragDropGhostPositionBottom:"sv-matrix__drag-drop-ghost-position-bottom"},rating:{root:"sv-rating",item:"sv-rating__item",selected:"sv-rating__item--selected",minText:"sv-rating__min-text",itemText:"sv-rating__item-text",maxText:"sv-rating__max-text",itemDisabled:"sv-rating--disabled"},comment:{root:"sv-comment",small:"sv-row__question--small"},expression:"",file:{root:"sv-file",other:"sv-comment sv-question__other",placeholderInput:"sv-visuallyhidden",preview:"sv-file__preview",fileSign:"sv-hidden",fileSignBottom:"sv-file__sign",fileDecorator:"sv-file__decorator",fileInput:"sv-visuallyhidden",noFileChosen:"sv-description sv-file__no-file-chosen",chooseFile:"sv-btn sv-file__choose-btn",controlDisabled:"sv-file__choose-btn--disabled",removeButton:"sv-hidden",removeButtonBottom:"sv-btn sv-file__clean-btn",removeFile:"sv-hidden",removeFileSvg:"sv-file__remove-svg",wrapper:"sv-file__wrapper",dragAreaPlaceholder:"sv-hidden",fileList:"",defaultImage:"sv-hidden"},signaturepad:{root:"sv-signaturepad sjs_sp_container",small:"sv-row__question--small",controls:"sjs_sp_controls",placeholder:"sjs_sp_placeholder",clearButton:"sjs_sp_clear"},saveData:{root:"",saving:"",error:"",success:"",saveAgainButton:""},window:{root:"sv_window",body:"sv_window_content",header:{root:"sv_window_title",title:"",button:"",buttonExpanded:"",buttonCollapsed:""}}};kn.modern=Na;var Ma=function(){function e(t){this.element=t,this.implementedMark="__surveyImplementedKo",t[this.implementedMark]||(t.iteratePropertiesHash((function(n,o){e.doIterateProperties(t,n,o)})),t.createArrayCoreHandler=function(e,n){var r=o.observableArray();return r().onArrayChanged=function(){t.isLoadingFromJson||t.isDisposed||r.notifySubscribers()},e[n]=r,r()},t.getPropertyValueCoreHandler=function(e,t){return void 0===e[t]&&(e[t]=o.observable()),"function"==typeof e[t]?e[t]():e[t]},t.setPropertyValueCoreHandler=function(e,t,n){void 0!==e[t]?(e[t]()===n&&e[t].notifySubscribers(),e[t](n)):e[t]=o.observable(n)},t[this.implementedMark]=!0)}return e.doIterateProperties=function(e,t,n){var r=t[n];"function"!==r&&(Array.isArray(r)?(t[n]=o.observableArray(r),r.onArrayChanged=function(){e.isLoadingFromJson||e.isDisposed||t[n].notifySubscribers()}):t[n]=o.observable(r))},e.prototype.dispose=function(){this.element.iteratePropertiesHash((function(e,t){e[t]=o.unwrap(e[t])})),this.element.createArrayCoreHandler=void 0,this.element.getPropertyValueCoreHandler=void 0,this.element.setPropertyValueCoreHandler=void 0,delete this.element[this.implementedMark]},e}(),Fa=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ba=function(e){function t(t){var n=e.call(this,t)||this;n.panel=t,new Ma(n);var o=n;return n.koElementAfterRender=function(e,t){return o.elementAfterRender(e,t)},n}return Fa(t,e),t.prototype.getElementType=function(e){return e.isPanel?"survey-panel":"survey-question"},t.prototype.koAfterRender=function(e,t){for(var n=0;n<e.length;n++){var o=e[n];"#text"==o.nodeName&&(o.data="")}},t.prototype.elementAfterRender=function(e,t){var n=this;this.panel&&this.panel.survey&&setTimeout((function(){o.tasks&&o.tasks.runEarly();var r=ft.GetFirstNonTextElement(e);if(r){var i=t;i.isPanel?n.panel.survey.afterRenderPanel(t,r):i.afterRender(r)}}),0)},t.prototype.rowAfterRender=function(e,t){if(!t.isNeedRender){var n=e[0].parentElement;t.startLazyRendering(n),o.utils.domNodeDisposal.addDisposeCallback(n,(function(){t.stopLazyRendering(),t.isNeedRender=!t.isLazyRendering()}))}},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.koElementAfterRender=void 0},t}(Rn),za=function(e){function t(t){var n=e.call(this,t)||this;return n.panel=t,n}return Fa(t,e),t}(Ma),Ha=function(e){function t(t){void 0===t&&(t="");var n=e.call(this,t)||this;n.onCreating();var r=n;return n.koElementType=o.observable("survey-panel"),n.koCss=o.pureComputed((function(){return r.cssClasses})),n.koErrorClass=o.pureComputed((function(){return r.cssError})),n}return Fa(t,e),t.prototype.onBaseCreating=function(){e.prototype.onBaseCreating.call(this),this._implementor=new za(this)},t.prototype.createRow=function(){return new Ba(this)},t.prototype.onCreating=function(){},t.prototype.onNumChanged=function(e){this.locTitle.onChanged()},t.prototype.dispose=function(){this.koCss.dispose(),this.koErrorClass.dispose(),this._implementor.dispose(),this._implementor=void 0,e.prototype.dispose.call(this)},t}(qn),Qa=function(e){function t(t){void 0===t&&(t="");var n=e.call(this,t)||this;return n.onCreating(),n}return Fa(t,e),t.prototype.onBaseCreating=function(){e.prototype.onBaseCreating.call(this),this._implementor=new Ma(this)},t.prototype.createRow=function(){return new Ba(this)},t.prototype.onCreating=function(){},t.prototype.onNumChanged=function(e){this.locTitle.onChanged()},t.prototype.dispose=function(){e.prototype.dispose.call(this),this._implementor.dispose(),this._implementor=void 0},t}(An);R.overrideClassCreator("panel",(function(){return new Ha})),R.overrideClassCreator("page",(function(){return new Qa})),Jt.Instance.registerElement("panel",(function(e){return new Ha(e)}));var $a=n(3),Ua=function(){function e(){}return e.prototype.addText=function(e,t,n){t=this.getId(t,n),this.text=this.text+'<script type="text/html" '+t+">"+e+"<\/script>"},e.prototype.replaceText=function(e,t,n){void 0===n&&(n=null);var o=this.getId(t,n),r=this.text.indexOf(o);if(r<0)this.addText(e,t,n);else if(!((r=this.text.indexOf(">",r))<0)){var i=r+1;(r=this.text.indexOf("<\/script>",i))<0||(this.text=this.text.substr(0,i)+e+this.text.substr(r))}},e.prototype.getId=function(e,t){var n='id="survey-'+e;return t&&(n+="-"+t),n+'"'},Object.defineProperty(e.prototype,"text",{get:function(){return $a},set:function(e){$a=e},enumerable:!1,configurable:!0}),e}(),Wa=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}();Tt.Instance.onCustomWidgetAdded.add((function(e){e.widgetJson.isDefaultRender||(e.htmlTemplate||(e.htmlTemplate="<div>'htmlTemplate' attribute is missed.</div>"),(new Ua).replaceText(e.htmlTemplate,"widget",e.name))}));var Ga=function(e){function t(t,n,r){void 0===t&&(t=null),void 0===n&&(n=null),void 0===r&&(r=null);var i=e.call(this,t)||this;if(i.isFirstRender=!0,i.mouseDownPage=null,i.koTitleTemplate=o.observable("survey-header"),void 0===o)throw new Error("knockoutjs library is not loaded.");return r&&(i.css=r),n&&(i.renderedElement=n),i.render(n),i}return Wa(t,e),Object.defineProperty(t,"cssType",{get:function(){return kn.currentType},set:function(e){Ln.applyTheme(e)},enumerable:!1,configurable:!0}),t.prototype.getDataValueCore=function(t,n){return this.editingObj?e.prototype.getDataValueCore.call(this,t,n):(void 0===t[n]&&(t[n]=o.observable()),o.unwrap(t[n]))},t.prototype.setDataValueCore=function(t,n,r){this.editingObj?e.prototype.setDataValueCore.call(this,t,n,r):o.isWriteableObservable(t[n])?t[n](r):t[n]=o.observable(r)},t.prototype.deleteDataValueCore=function(t,n){this.editingObj?e.prototype.deleteDataValueCore.call(this,t,n):o.isWriteableObservable(t[n])?t[n](void 0):delete t[n]},t.prototype.onBaseCreating=function(){e.prototype.onBaseCreating.call(this),new Ma(this)},t.prototype.nextPageUIClick=function(){this.mouseDownPage&&this.mouseDownPage!==this.currentPage||(this.mouseDownPage=null,this.nextPage())},t.prototype.nextPageMouseDown=function(){return this.mouseDownPage=this.currentPage,this.navigationMouseDown()},t.prototype.render=function(e){void 0===e&&(e=null),this.updateKoCurrentPage(),this.updateCustomWidgets(this.currentPage),this.updateElementCss(!1);e&&"string"==typeof e&&(e=document.getElementById(e)),e&&(this.renderedElement=e),e=this.renderedElement,this.startTimerFromUI(),e&&this.applyBinding()},t.prototype.clear=function(t,n){void 0===t&&(t=!0),void 0===n&&(n=!0),e.prototype.clear.call(this,t,n),this.render()},t.prototype.localeChanged=function(){e.prototype.localeChanged.call(this),this.render()},t.prototype.koEventAfterRender=function(e,t){t.afterRenderSurvey(e)},t.prototype.loadSurveyFromService=function(t,n,o){void 0===t&&(t=null),void 0===n&&(n=null),void 0===o&&(o=null),o&&(this.renderedElement=o),e.prototype.loadSurveyFromService.call(this,t,n)},t.prototype.setCompleted=function(){e.prototype.setCompleted.call(this),this.updateKoCurrentPage()},t.prototype.start=function(){var t=e.prototype.start.call(this);return this.updateKoCurrentPage(),t},t.prototype.createNewPage=function(e){return new Qa(e)},t.prototype.getHtmlTemplate=function(){return $a},t.prototype.onBeforeCreating=function(){var e=this;this.dummyObservable=o.observable(0),this.koCurrentPage=o.observable(this.currentPage),this.isCurrentPageEmpty=o.computed((function(){return!!e.koCurrentPage()&&0===e.getRows(e.koCurrentPage()).length})),this.koIsFirstPage=o.computed((function(){return e.dummyObservable(),e.isFirstPage})),this.koIsLastPage=o.computed((function(){return e.dummyObservable(),e.isLastPage})),this.koState=o.observable(this.state),this.koCompletedState=o.observable(""),this.koCompletedStateText=o.observable(""),this.koCompletedStateCss=o.observable(""),this.koTimerInfoText=o.observable(this.timerInfoText),this.koAfterRenderPage=function(t,n){var r=ft.GetFirstNonTextElement(t);r&&setTimeout((function(){o.tasks&&o.tasks.runEarly(),e.afterRenderPage(r)}),0)},this.koAfterRenderHeader=function(t,n){var o=ft.GetFirstNonTextElement(t);o&&e.afterRenderHeader(o)}},t.prototype.currentPageChanged=function(t,n){this.updateKoCurrentPage(),e.prototype.currentPageChanged.call(this,t,n),this.isDesignMode||this.scrollToTopOnPageChange()},t.prototype.pageVisibilityChanged=function(t,n){e.prototype.pageVisibilityChanged.call(this,t,n),this.updateKoCurrentPage()},t.prototype.onLoadSurveyFromService=function(){this.render()},t.prototype.onLoadingSurveyFromService=function(){this.render()},t.prototype.setCompletedState=function(t,n){e.prototype.setCompletedState.call(this,t,n),this.koCompletedState(this.completedState),this.koCompletedStateText(this.completedStateText),this.koCompletedStateCss(""!==this.completedState?this.css.saveData[this.completedState]:"")},t.prototype.doTimer=function(){e.prototype.doTimer.call(this),this.koTimerInfoText(this.timerInfoText)},t.prototype.applyBinding=function(){this.renderedElement&&(this.updateKoCurrentPage(),o.cleanNode(this.renderedElement),this.isFirstRender||this.updateCurrentPageQuestions(),this.isFirstRender=!1,o.renderTemplate("survey-content",this,{afterRender:this.koEventAfterRender},this.renderedElement))},t.prototype.updateKoCurrentPage=function(){this.isLoadingFromJson||this.isDisposed||(this.dummyObservable(this.dummyObservable()+1),this.currentPage!==this.koCurrentPage()&&this.koCurrentPage(this.currentPage),this.koState(this.state))},t.prototype.getRows=function(e){return e.koRows?e.koRows():e.rows},t.prototype.updateCurrentPageQuestions=function(){if(!this.isDisposed)for(var e=this.currentPage?this.currentPage.questions:[],t=0;t<e.length;t++){var n=e[t];n.visible&&n.updateQuestion()}},t.prototype.updateSurvey=function(e,t){var n=function(){if("model"==r||"children"==r)return"continue";if("css"==r)return o.mergeValues(e.css,o.getCss()),o.updateElementCss(),"continue";if(0==r.indexOf("on")&&o[r]&&o[r].add){var t=e[r];o[r].add((function(e,n){t(e,n)}))}else o[r]=e[r]},o=this;for(var r in e)n();e&&e.data&&this.onValueChanged.add((function(t,n){e.data[n.name]=n.value}))},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.renderedElement&&(o.cleanNode(this.renderedElement),this.renderedElement.innerHTML=""),this.koAfterRenderPage=void 0,this.koAfterRenderHeader=void 0,this.isCurrentPageEmpty.dispose(),this.koIsFirstPage.dispose(),this.koIsLastPage.dispose(),this.iteratePropertiesHash((function(e,t){delete e[t]})),this.koCurrentPage(void 0)},t}(zn);d.prototype.onCreating=function(){this.koHasHtml=o.observable(this.hasHtml),this.koRenderedHtml=o.observable(this.renderedHtml)},Fe.prototype.onCreating=function(){new Ma(this)},d.prototype.onChanged=function(){var e=this.hasHtml;this.koHasHtml(e),this.koRenderedHtml(e?this.getHtmlValue():this.calculatedText)},o.components.register("survey",{viewModel:{createViewModel:function(e,t){var n=o.unwrap(e.survey);return setTimeout((function(){var e=document.createElement("div");t.element.appendChild(e),n.render(e)}),1),e.survey}},template:$a}),o.bindingHandlers.surveyProp={update:function(e,t,n){var r=o.utils.unwrapObservable(t())||{};for(var i in r)if("string"==typeof i){var a=o.utils.unwrapObservable(r[i]);e[i]=a}}},zn.platform="knockout";var Ja=function(e,t){e.surveyTemplateEngine=function(){},e.surveyTemplateEngine.prototype=new e.nativeTemplateEngine,e.surveyTemplateEngine.prototype.makeTemplateSource=function(n,o){if("string"==typeof n){var r,i=(o=o||document).getElementById("survey-content-"+t);i||((i=document.createElement("div")).id="survey-content-"+zn.platform,i.style.display="none",i.innerHTML=$a,document.body.appendChild(i));for(var a=0;a<i.children.length;a++)if(i.children[a].id===n){r=i.children[a];break}return r||(r=o.getElementById(n)),r?new e.templateSources.domElement(r):(new e.nativeTemplateEngine).makeTemplateSource(n,o)}if(1===n.nodeType||8===n.nodeType)return new e.templateSources.anonymousTemplate(n);throw new Error("Unknown template type: "+n)};var n=new e.surveyTemplateEngine;e.setTemplateEngine(n)};o.bindingHandlers.key2click={init:function(e,t,n,o){var r=t()||{processEsc:!0};o.disableTabStop?e.tabIndex=-1:(e.tabIndex=0,e.onkeyup=function(e){return e.preventDefault(),e.stopPropagation(),Dt(e,r),!1},e.onkeydown=function(e){return At(e,r)})}};var Ka=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Xa=function(e){function t(t){void 0===t&&(t="");var n=e.call(this,t)||this;n.koElementType=o.observable("survey-flowpanel"),new Ma(n),n.onCreating();var r=n;return n.koElementAfterRender=function(e,t){return r.elementAfterRender(e,t)},n}return Ka(t,e),t.prototype.onCreating=function(){},t.prototype.getHtmlForQuestion=function(e){return'<span question="true" contenteditable="false" id="flowpanel_'+e.name+'">\x3c!-- ko template: { name: "survey-flowpanel-question", data: "'+e.name+'"} --\x3e\x3c!-- /ko --\x3e</span>'},t.prototype.elementAfterRender=function(e,t){if(this.survey){var n=ft.GetFirstNonTextElement(e);n&&this.survey.afterRenderQuestion(t,n)}},t}(so);R.overrideClassCreator("flowpanel",(function(){return new Xa})),o.components.register("f-panel",{viewModel:{createViewModel:function(e,t){var n=this,r=o.unwrap(e.question);n.element=t.element,n.element.innerHTML=r.html,n.isOnFocus=!1,n.wasChanged=!1,n.isContentUpdating=!1,r.contentChangedCallback=function(){n.isContentUpdating||(o.cleanNode(n.element),n.element.innerHTML=r.html,o.applyBindings({question:r},n.element),o.tasks&&o.tasks.runEarly())},n.element.onfocus=function(){n.isOnFocus=!0},n.element.onblur=function(){n.wasChanged&&n.updateContent(),n.isOnFocus=!1,n.wasChanged=!1},n.element.ondragend=function(e){var t=n.element.innerHTML,o=/{(.*?(element:)[^$].*?)}/g.exec(t);if(null!==o){var i=r.getQuestionFromText(o[0]);i&&(r.content=n.getContent(i.name))}},n.updateContent=function(){n.isContentUpdating=!0,r.content=n.getContent(),n.isContentUpdating=!1},r.getContent=n.getContent=function(e){var t=document.createElement("DIV");t.innerHTML=n.element.innerHTML;for(var o=t.querySelectorAll('span[question="true"]'),i=0;i<o.length;i++){var a=o[i].id.replace("flowpanel_",""),s="";if(a!==e){var l=r.getQuestionByName(a);s=l?r.getElementContentText(l):""}o[i].outerHTML=s}return t.innerHTML};return new MutationObserver((function(e,t){n.isOnFocus&&(n.wasChanged=!0)})).observe(n.element,{characterData:!0,attributes:!0,childList:!0,subtree:!0}),{question:r}}},template:"<div></div>"});var Za=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ya=function(e){function t(t){var n=e.call(this,t)||this;n.question=t,n._koValue=o.observableArray(),n.disposedObjects=[],n.callBackFunctions=[];var r=!1;return n._koValue.subscribe((function(e){r||(n.question.value=e)})),Object.defineProperty(n.question,"koValue",{get:function(){if(!s.isTwoValueEquals(n._koValue(),n.getKoValue(),!1,!0,!1))try{r=!0,n._koValue(n.getKoValue())}finally{r=!1}return n._koValue},enumerable:!0,configurable:!0}),t.surveyLoadCallback=function(){n.onSurveyLoad()},n.setObservaleObj("koTemplateName",o.pureComputed((function(){return n.getTemplateName()}))),n.setObservaleObj("koElementType",o.observable("survey-question")),n.setCallbackFunc("updateQuestion",(function(){n.updateQuestion()})),n.setObservaleObj("koCss",o.pureComputed((function(){return n.question.cssClasses}))),n.setObservaleObj("koRootCss",o.pureComputed((function(){return n.question.getRootCss()}))),n.setObservaleObj("koErrorClass",o.pureComputed((function(){return n.question.cssError}))),n.koDummy=o.observable(0),n.setCallbackFunc("koQuestionAfterRender",(function(e,t){n.koQuestionAfterRender(e,t)})),n}return Za(t,e),t.prototype.setObservaleObj=function(e,t,n){return void 0===n&&(n=!0),this.disposedObjects.push(e),n&&(this.question[e]=t),t},t.prototype.setCallbackFunc=function(e,t){this.callBackFunctions.push(e),this.question[e]=t},t.prototype.getKoValue=function(){return this.question.value},t.prototype.updateQuestion=function(){this.updateKoDummy()},t.prototype.onSurveyLoad=function(){},t.prototype.getQuestionTemplate=function(){return this.question.getTemplate()},t.prototype.getTemplateName=function(){return this.question.customWidget&&!this.question.customWidget.widgetJson.isDefaultRender?"survey-widget-"+this.question.customWidget.name:"survey-question-"+this.getQuestionTemplate()},t.prototype.getNo=function(){return this.question.visibleIndex>-1?this.question.visibleIndex+1+". ":""},t.prototype.updateKoDummy=function(){this.question.isDisposed||(this.koDummy(this.koDummy()+1),this.question.locTitle.onChanged())},t.prototype.koQuestionAfterRender=function(e,t){var n=this;setTimeout((function(){o.tasks&&o.tasks.runEarly();var t=ft.GetFirstNonTextElement(e,!0);t&&(n.question.afterRenderQuestionElement(t),n.question.customWidget&&n.question.customWidget.afterRender(n.question,t),o.utils.domNodeDisposal.addDisposeCallback(t,(function(){if(n.question.beforeDestroyQuestionElement(t),n.question.customWidget)try{n.question.customWidget.willUnmount(n.question,t)}catch(e){console.warn("Custom widget will unmount failed")}})))}),0)},t.prototype.dispose=function(){e.prototype.dispose.call(this);for(var t=0;t<this.disposedObjects.length;t++){var n=this.disposedObjects[t],o=this[n]||this.question[n];o&&(this[n]&&(this[n]=void 0),this.question[n]&&(this.question[n]=void 0),o.dispose&&o.dispose())}this.disposedObjects=[];for(var r=0;r<this.callBackFunctions.length;r++)this.question[this.callBackFunctions[r]]=void 0;this.callBackFunctions=[],this.question.unRegisterFunctionOnPropertyValueChanged("visibleIndex")},t}(Ma),es=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ts=function(e){function t(t){var n=e.call(this,t)||this;return n.onCreated(),n}return es(t,e),t.prototype.onCreated=function(){},Object.defineProperty(t.prototype,"isOtherSelected",{get:function(){return this.question.isOtherSelected},enumerable:!1,configurable:!0}),t}(Ya),ns=function(e){function t(t){var n=e.call(this,t)||this;return n.setCallbackFunc("koAfterRender",n.koAfterRender),n}return es(t,e),t.prototype.koAfterRender=function(e,t){var n=e[0];"#text"==n.nodeName&&(n.data=""),"#text"==(n=e[e.length-1]).nodeName&&(n.data="")},t}(ts),os=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),rs=function(e){function t(t){return e.call(this,t)||this}return os(t,e),t.prototype.getKoValue=function(){return this.question.renderedValue},t}(ns),is=function(e){function t(t){var n=e.call(this,t)||this;return n.isAllSelectedUpdating=!1,n.koAllSelected=o.observable(n.isAllSelected),n.koAllSelected.subscribe((function(e){n.isAllSelectedUpdating||(e?n.selectAll():n.clearValue())})),n}return os(t,e),t.prototype.onBaseCreating=function(){e.prototype.onBaseCreating.call(this),this._implementor=new rs(this)},t.prototype.onSurveyValueChanged=function(t){e.prototype.onSurveyValueChanged.call(this,t),this.updateAllSelected()},t.prototype.onVisibleChoicesChanged=function(){e.prototype.onVisibleChoicesChanged.call(this),this.updateAllSelected()},t.prototype.updateAllSelected=function(){this.isAllSelectedUpdating=!0,this.koAllSelected(this.isAllSelected),this.isAllSelectedUpdating=!1},t.prototype.dispose=function(){this._implementor.dispose(),this._implementor=void 0,this.koAllSelected=void 0,e.prototype.dispose.call(this)},t}(mo);R.overrideClassCreator("checkbox",(function(){return new is("")})),Gt.Instance.registerQuestion("checkbox",(function(e){var t=new is(e);return t.choices=Gt.DefaultChoices,t}));var as=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ss=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.koHandleKeydown=function(e,n){return t.handleKeydown(n,e),!0},t.koHandlePointerDown=function(e,n){return t.handlePointerDown(n,e,n.currentTarget),!0},t}return as(t,e),t.prototype.onBaseCreating=function(){e.prototype.onBaseCreating.call(this),this._implementor=new Ya(this)},t.prototype.dispose=function(){this._implementor.dispose(),this._implementor=void 0,e.prototype.dispose.call(this)},t}(Oi);R.overrideClassCreator("ranking",(function(){return new ss("")})),Gt.Instance.registerQuestion("ranking",(function(e){var t=new ss(e);return t.choices=Gt.DefaultChoices,t}));var ls=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),us=function(e){function t(t){return e.call(this,t)||this}return ls(t,e),t.prototype.onBaseCreating=function(){e.prototype.onBaseCreating.call(this),this._implementor=new Ya(this)},t.prototype.dispose=function(){this._implementor.dispose(),this._implementor=void 0,e.prototype.dispose.call(this)},t}(Ri);R.overrideClassCreator("comment",(function(){return new us("")})),Gt.Instance.registerQuestion("comment",(function(e){return new us(e)}));var cs=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ps=function(e){function t(t){return e.call(this,t)||this}return cs(t,e),t}(ts),ds=function(e){function t(t){return e.call(this,t)||this}return cs(t,e),t.prototype.onBaseCreating=function(){e.prototype.onBaseCreating.call(this),this._implementor=new ps(this)},t.prototype.dispose=function(){this._implementor.dispose(),this._implementor=void 0,e.prototype.dispose.call(this)},t}(Wn);R.overrideClassCreator("dropdown",(function(){return new ds("")})),Gt.Instance.registerQuestion("dropdown",(function(e){var t=new ds(e);return t.choices=Gt.DefaultChoices,t}));var hs=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),fs=function(e){function t(t){var n=e.call(this,t)||this;return n.setObservaleObj("koState",o.observable("empty")),n.setObservaleObj("koHasValue",o.computed((function(){return"loaded"===n.question.koState()}))),n.setObservaleObj("koData",o.computed((function(){return n.question.koHasValue()?n.question.previewValue:[]}))),n.setObservaleObj("koInputTitle",o.observable()),n.setObservaleObj("koChooseFileCss",o.pureComputed((function(){return n.question.getChooseFileCss()}))),n.setCallbackFunc("ondrop",(function(e,t){n.question.onDrop(Lt(t))})),n.setCallbackFunc("ondragover",(function(e,t){n.question.onDragOver(Lt(t))})),n.setCallbackFunc("ondragleave",(function(e,t){n.question.onDragLeave(Lt(t))})),n.setCallbackFunc("dochange",(function(e,t){n.question.doChange(Lt(t))})),n.setCallbackFunc("doclean",(function(e,t){n.question.doClean(Lt(t))})),n.setCallbackFunc("doremovefile",(function(e,t){n.question.doRemoveFile(e)})),n.setCallbackFunc("dodownload",(function(e,t){return n.question.doDownloadFile(Lt(t),e),!0})),n}return hs(t,e),t}(Ya),ms=function(e){function t(t){var n=e.call(this,t)||this;return n.onStateChanged.add((function(e,t){var o;o=t.state,n.koState(o),n.koInputTitle(n.inputTitle)})),n}return hs(t,e),t.prototype.onBaseCreating=function(){e.prototype.onBaseCreating.call(this),this._implementor=new fs(this)},t.prototype.dispose=function(){this._implementor.dispose(),this._implementor=void 0,e.prototype.dispose.call(this)},t}(Di);R.overrideClassCreator("file",(function(){return new ms("")})),Gt.Instance.registerQuestion("file",(function(e){return new ms(e)}));var gs=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ys=function(e){function t(t){return e.call(this,t)||this}return gs(t,e),t.prototype.onBaseCreating=function(){e.prototype.onBaseCreating.call(this),this._implementor=new Ya(this)},t.prototype.dispose=function(){this._implementor.dispose(),this._implementor=void 0,e.prototype.dispose.call(this)},t}(ji);R.overrideClassCreator("html",(function(){return new ys("")})),Gt.Instance.registerQuestion("html",(function(e){return new ys(e)}));var vs=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),bs=function(e){function t(t){var n=e.call(this,t)||this;return n.koVisibleRows=o.observableArray(),n.koVisibleColumns=o.observableArray(),n.koVisibleRows(n.visibleRows),n.koVisibleColumns(n.visibleColumns),n}return vs(t,e),t.prototype.onBaseCreating=function(){e.prototype.onBaseCreating.call(this),this._implementor=new Ya(this)},t.prototype.onColumnsChanged=function(){e.prototype.onColumnsChanged.call(this),this.koVisibleColumns(this.visibleColumns)},t.prototype.onRowsChanged=function(){e.prototype.onRowsChanged.call(this),this.koVisibleRows(this.visibleRows)},t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.onRowsChanged()},t.prototype.onMatrixRowCreated=function(e){new Ma(e)},t.prototype.getVisibleRows=function(){var t=e.prototype.getVisibleRows.call(this);return this.koVisibleRows(t),t},t.prototype.dispose=function(){this._implementor.dispose(),this._implementor=void 0,this.koVisibleRows=void 0,this.koVisibleColumns=void 0,e.prototype.dispose.call(this)},t}(Xn);R.overrideClassCreator("matrix",(function(){return new bs("")})),Gt.Instance.registerQuestion("matrix",(function(e){var t=new bs(e);return t.rows=Gt.DefaultRows,t.columns=Gt.DefaultColums,t}));var xs=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Cs=function(e){function t(t){var n=e.call(this,t)||this;return n.koRecalc=o.observable(0),n.question.onRenderedTableCreatedCallback=function(e){n._tableImplementor&&n._tableImplementor.dispose(),n._tableImplementor=new Ma(e)},n.question.onRenderedTableResetCallback=function(){n.question.isDisposed||n.koRecalc(n.koRecalc()+1)},n.setObservaleObj("koTable",o.pureComputed((function(){return n.koRecalc(),n.question.renderedTable}))),n.setCallbackFunc("koCellAfterRender",(function(e,t){return n.cellAfterRender(e,t)})),n.setCallbackFunc("koCellQuestionAfterRender",(function(e,t){return n.cellQuestionAfterRender(e,t)})),n.setCallbackFunc("koAddRowClick",(function(){n.addRow()})),n.setCallbackFunc("koRemoveRowClick",(function(e){n.removeRow(e.row)})),n.setCallbackFunc("koPanelAfterRender",(function(e,t){n.panelAfterRender(e,t)})),n}return xs(t,e),t.prototype.getQuestionTemplate=function(){return"matrixdynamic"},t.prototype.cellAfterRender=function(e,t){var n=this;this.question.survey&&setTimeout((function(){o.tasks&&o.tasks.runEarly();var r=ft.GetFirstNonTextElement(e);if(r){var i=t;i.question.customWidget&&(i.question.customWidget.afterRender(i.question,r),o.utils.domNodeDisposal.addDisposeCallback(r,(function(){i.question.customWidget.willUnmount(i.question,r)})));var a={cell:i.cell,cellQuestion:i.question,htmlElement:r,row:i.row,column:i.cell?i.cell.column:null};n.question.survey.matrixAfterCellRender(n.question,a)}}),0)},t.prototype.cellQuestionAfterRender=function(e,t){if(this.question.survey){var n=ft.GetFirstNonTextElement(e);if(n)t.question.afterRenderQuestionElement(n)}},t.prototype.isAddRowTop=function(){return!1},t.prototype.isAddRowBottom=function(){return!1},t.prototype.addRow=function(){},t.prototype.removeRow=function(e){},t.prototype.panelAfterRender=function(e,t){if(this.question&&this.question.survey){var n=ft.GetFirstNonTextElement(e);this.question.survey.afterRenderPanel(t,n)}},t.prototype.dispose=function(){this._tableImplementor&&this._tableImplementor.dispose(),this.question.onRenderedTableCreatedCallback=void 0,this.question.onRenderedTableResetCallback=void 0,e.prototype.dispose.call(this)},t}(Ya),ws=function(e){function t(t){return e.call(this,t)||this}return xs(t,e),t.prototype.onBaseCreating=function(){e.prototype.onBaseCreating.call(this),this._implementor=new Cs(this)},t.prototype.dispose=function(){e.prototype.dispose.call(this),this._implementor.dispose(),this._implementor=void 0},t}(yn);R.overrideClassCreator("matrixdropdown",(function(){return new ws("")})),Gt.Instance.registerQuestion("matrixdropdown",(function(e){var t=new ws(e);return t.choices=[1,2,3,4,5],t.rows=Gt.DefaultRows,fn.addDefaultColumns(t),t}));var Ps=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),_s=function(e){function t(t){var n=e.call(this,t)||this;return n.question.getKoPopupIsVisible=n.getKoPopupIsVisible,n}return Ps(t,e),t.prototype.addRow=function(){this.question.addRowUI()},t.prototype.removeRow=function(e){this.question.removeRowUI(e)},t.prototype.getKoPopupIsVisible=function(e){return o.observable(e.isDetailPanelShowing)},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.question.getKoPopupIsVisible=void 0},t}(Cs),Vs=function(e){function t(t){return e.call(this,t)||this}return Ps(t,e),t.prototype.onBaseCreating=function(){e.prototype.onBaseCreating.call(this),this._implementor=new _s(this)},t.prototype.dispose=function(){this._implementor.dispose(),this._implementor=void 0,e.prototype.dispose.call(this)},t}(Vn);R.overrideClassCreator("matrixdynamic",(function(){return new Vs("")})),an.prototype.onCreating=function(){new Ma(this)},Gt.Instance.registerQuestion("matrixdynamic",(function(e){var t=new Vs(e);return t.choices=[1,2,3,4,5],t.rowCount=2,fn.addDefaultColumns(t),t}));var Ts=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ks=function(e){function t(t){var n=e.call(this,t)||this;n.koRecalc=o.observable(0),n.setCallbackFunc("koAddPanelClick",(function(){n.addPanel()})),n.setCallbackFunc("koRemovePanelClick",(function(e){n.removePanel(e)})),n.setCallbackFunc("koPrevPanelClick",(function(){n.question.goToPrevPanel()})),n.setCallbackFunc("koNextPanelClick",(function(){n.question.goToNextPanel()})),n.setObservaleObj("koCanAddPanel",o.pureComputed((function(){return n.koRecalc(),n.question.canAddPanel}))),n.setObservaleObj("koCanRemovePanel",o.pureComputed((function(){return n.koRecalc(),n.question.canRemovePanel}))),n.setObservaleObj("koIsPrevButton",o.pureComputed((function(){return n.koRecalc(),n.question.isPrevButtonShowing}))),n.setObservaleObj("koIsNextButton",o.pureComputed((function(){return n.koRecalc(),n.question.isNextButtonShowing}))),n.setObservaleObj("koIsRange",o.pureComputed((function(){return n.koRecalc(),n.question.isRangeShowing}))),n.setObservaleObj("koPanel",o.pureComputed((function(){return n.koRecalc(),n.question.currentPanel}))),n.setObservaleObj("koIsList",o.pureComputed((function(){return n.koRecalc(),n.question.isRenderModeList}))),n.setObservaleObj("koIsProgressTop",o.pureComputed((function(){return n.koRecalc(),n.question.isProgressTopShowing}))),n.setObservaleObj("koIsProgressBottom",o.pureComputed((function(){return n.koRecalc(),n.question.isProgressBottomShowing})));var r=o.observable(n.question.currentIndex);return r.subscribe((function(e){n.question.currentIndex=e})),n.setObservaleObj("koRangeValue",r),n.setObservaleObj("koRangeMax",o.pureComputed((function(){return n.koRecalc(),n.question.panelCount-1}))),n.setObservaleObj("koAddButtonCss",o.pureComputed((function(){return n.koRecalc(),n.question.getAddButtonCss()}))),n.setObservaleObj("koPrevButtonCss",o.pureComputed((function(){return n.koRecalc(),n.question.getPrevButtonCss()}))),n.setObservaleObj("koNextButtonCss",o.pureComputed((function(){return n.koRecalc(),n.question.getNextButtonCss()}))),n.setObservaleObj("koProgressText",o.pureComputed((function(){return n.koRecalc(),n.question.progressText}))),n.setObservaleObj("koProgress",o.pureComputed((function(){return n.koRecalc(),n.progress}))),n.setCallbackFunc("koPanelAfterRender",(function(e,t){n.panelAfterRender(e,t)})),n.question.panelCountChangedCallback=function(){n.onPanelCountChanged()},n.question.renderModeChangedCallback=function(){n.onRenderModeChanged()},n.question.currentIndexChangedCallback=function(){n.onCurrentIndexChanged()},n}return Ts(t,e),t.prototype.onPanelCountChanged=function(){this.onCurrentIndexChanged()},t.prototype.onRenderModeChanged=function(){this.onCurrentIndexChanged()},t.prototype.onCurrentIndexChanged=function(){this.question.isDisposed||(this.koRecalc(this.koRecalc()+1),this.question.koRangeValue(this.question.currentIndex))},t.prototype.addPanel=function(){this.question.addPanelUI()},t.prototype.removePanel=function(e){this.question.isRenderModeList||(e=this.question.currentPanel),this.question.removePanelUI(e)},t.prototype.panelAfterRender=function(e,t){if(this.question&&this.question.survey){var n=ft.GetFirstNonTextElement(e);this.question.survey.afterRenderPanel(t,n)}},Object.defineProperty(t.prototype,"progress",{get:function(){var e=this.question.panelCount-1;return this.question.currentIndex/e*100+"%"},enumerable:!1,configurable:!0}),t.prototype.dispose=function(){this.question.panelCountChangedCallback=void 0,this.question.renderModeChangedCallback=void 0,this.question.currentIndexChangedCallback=void 0,e.prototype.dispose.call(this)},t}(Ya),Ss=function(e){function t(t){return e.call(this,t)||this}return Ts(t,e),t.prototype.onBaseCreating=function(){e.prototype.onBaseCreating.call(this),this._implementor=new ks(this)},t.prototype.dispose=function(){this._implementor.dispose(),this._implementor=void 0,e.prototype.dispose.call(this)},t}(sa);R.overrideClassCreator("paneldynamic",(function(){return new Ss("")})),Gt.Instance.registerQuestion("paneldynamic",(function(e){return new Ss(e)}));var Os=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Es=function(e){function t(t){return e.call(this,t)||this}return Os(t,e),t.prototype.onBaseCreating=function(){e.prototype.onBaseCreating.call(this),this._implementor=new Ya(this)},t.prototype.dispose=function(){this._implementor.dispose(),this._implementor=void 0,e.prototype.dispose.call(this)},t}(to);R.overrideClassCreator("text",(function(){return new Es("")})),Gt.Instance.registerQuestion("text",(function(e){return new Es(e)}));var Rs=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Is=function(e){function t(t,n){return void 0===t&&(t=null),void 0===n&&(n=null),e.call(this,t,n)||this}return Rs(t,e),t.prototype.createEditor=function(e){return new Es(e)},t}(ro),qs=function(e){function t(t){var n=e.call(this,t)||this;return n.koRecalc=o.observable(0),n.setObservaleObj("koItemCss",o.pureComputed((function(){return n.koRecalc(),n.question.getItemCss()}))),n.setObservaleObj("koItemTitleCss",o.pureComputed((function(){return n.koRecalc(),n.question.getItemTitleCss()}))),n}return Rs(t,e),t}(Ya),Ds=function(e){function t(t){var n=e.call(this,t)||this;return n.koRows=o.observableArray(n.getRows()),n.colCountChangedCallback=function(){n.onColCountChanged()},n.onColCountChanged(),n}return Rs(t,e),t.prototype.onBaseCreating=function(){e.prototype.onBaseCreating.call(this),this._implementor=new qs(this)},t.prototype.onColCountChanged=function(){this.koRows(this.getRows())},t.prototype.createTextItem=function(e,t){return new Is(e,t)},t.prototype.dispose=function(){this._implementor.dispose(),this._implementor=void 0,this.koRows=void 0,e.prototype.dispose.call(this)},t}(io);R.overrideClassCreator("multipletextitem",(function(){return new Is("")})),R.overrideClassCreator("multipletext",(function(){return new Ds("")})),Gt.Instance.registerQuestion("multipletext",(function(e){var t=new Ds(e);return io.addDefaultItems(t),t}));var As=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),js=function(e){function t(t){return e.call(this,t)||this}return As(t,e),t.prototype.onBaseCreating=function(){e.prototype.onBaseCreating.call(this),this._implementor=new ns(this)},t.prototype.dispose=function(){this._implementor.dispose(),this._implementor=void 0,e.prototype.dispose.call(this)},t}(Ni);R.overrideClassCreator("radiogroup",(function(){return new js("")})),Gt.Instance.registerQuestion("radiogroup",(function(e){var t=new js(e);return t.choices=Gt.DefaultChoices,t}));var Ls=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ns=function(e){function t(t){var n=e.call(this,t)||this;return n.onCreated(),n.koVisibleRateValues=n.setObservaleObj("koVisibleRateValues",o.observableArray()),n.question.rateValuesChangedCallback=function(){n.onRateValuesChanged()},n}return Ls(t,e),t.prototype.onCreated=function(){},t.prototype.onRateValuesChanged=function(){this.koVisibleRateValues(this.getValues())},t.prototype.getValues=function(){return this.question.visibleRateValues},t.prototype.dispose=function(){this.question.rateValuesChangedCallback=void 0,e.prototype.dispose.call(this)},t}(Ya),Ms=function(e){function t(t){return e.call(this,t)||this}return Ls(t,e),t.prototype.onBaseCreating=function(){e.prototype.onBaseCreating.call(this),this._implementor=new Ns(this)},t.prototype.dispose=function(){this._implementor.dispose(),this._implementor=void 0,e.prototype.dispose.call(this)},t}(Fi);R.overrideClassCreator("rating",(function(){return new Ms("")})),Gt.Instance.registerQuestion("rating",(function(e){return new Ms(e)}));var Fs=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Bs=function(e){function t(t){return e.call(this,t)||this}return Fs(t,e),t.prototype.onBaseCreating=function(){e.prototype.onBaseCreating.call(this),this._implementor=new Ya(this)},t.prototype.onSwitchClick=function(t,n){return e.prototype.onSwitchClickModel.call(this,Lt(n))},t.prototype.onTrueLabelClick=function(e,t){return this.onLabelClick(t,!0)},t.prototype.onFalseLabelClick=function(e,t){return this.onLabelClick(t,!1)},t.prototype.dispose=function(){this._implementor.dispose(),this._implementor=void 0,e.prototype.dispose.call(this)},t}(Hi);R.overrideClassCreator("boolean",(function(){return new Bs("")})),Gt.Instance.registerQuestion("boolean",(function(e){return new Bs(e)}));var zs=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Hs=function(e){function t(t){return e.call(this,t)||this}return zs(t,e),t.prototype.onBaseCreating=function(){e.prototype.onBaseCreating.call(this),this._implementor=new Ya(this)},t.prototype.dispose=function(){this._implementor.dispose(),this._implementor=void 0,e.prototype.dispose.call(this)},t}(ho);R.overrideClassCreator("empty",(function(){return new Hs("")}));var Qs=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),$s=function(e){function t(t){return e.call(this,t)||this}return Qs(t,e),t.prototype.onBaseCreating=function(){e.prototype.onBaseCreating.call(this),this._implementor=new Ya(this)},t.prototype.dispose=function(){this._implementor.dispose(),this._implementor=void 0,e.prototype.dispose.call(this)},t}(Xt);R.overrideClassCreator("expression",(function(){return new $s("")})),Gt.Instance.registerQuestion("expression",(function(e){return new $s(e)}));var Us=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ws=function(e){function t(t){return e.call(this,t)||this}return Us(t,e),t.prototype.getKoValue=function(){return this.question.renderedValue},t}(ns),Gs=function(e){function t(t){return e.call(this,t)||this}return Us(t,e),t.prototype.onBaseCreating=function(){e.prototype.onBaseCreating.call(this),this._implementor=new Ws(this)},t.prototype.dispose=function(){this._implementor.dispose(),this._implementor=void 0,e.prototype.dispose.call(this)},t}(Ui);R.overrideClassCreator("imagepicker",(function(){return new Gs("")})),Gt.Instance.registerQuestion("imagepicker",(function(e){return new Gs(e)}));var Js=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ks=n(40),Xs=function(e){function t(t,n){void 0===t&&(t=null),void 0===n&&(n=null);var r=e.call(this,t,n)||this;r.koExpanded=o.observable(!1),r.koExpandedCss=o.observable(r.getButtonCss());var i=r;return r.expandedChangedCallback=function(){i.koExpanded(i.isExpanded),i.koExpandedCss(i.getButtonCss())},r.showingChangedCallback=function(){i.doShowingChanged()},r.doExpand=function(){i.changeExpanded()},r}return Js(t,e),t.prototype.createSurvey=function(e){return new Ga(e)},t.prototype.closeWindowOnComplete=function(){this.hide()},Object.defineProperty(t.prototype,"template",{get:function(){return this.templateValue?this.templateValue:this.getDefaultTemplate()},set:function(e){this.templateValue=e},enumerable:!1,configurable:!0}),t.prototype.doShowingChanged=function(){this.isShowing?(this.windowElement.innerHTML=this.template,o.cleanNode(this.windowElement),o.applyBindings(this,this.windowElement),document.body.appendChild(this.windowElement),this.survey.render(t.surveyElementName)):(document.body.removeChild(this.windowElement),this.windowElement.innerHTML="")},t.prototype.getDefaultTemplate=function(){return Ks},Object.defineProperty(t.prototype,"css",{get:function(){return this.survey.css},enumerable:!1,configurable:!0}),t.prototype.changeExpanded=function(){this.expandcollapse(!this.isExpanded)},t.prototype.getButtonCss=function(){return this.koExpanded()?this.css.window.header.buttonCollapsed:this.css.window.header.buttonExpanded},t}(xa),Zs=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ys=function(e){function t(t){return e.call(this,t)||this}return Zs(t,e),t.prototype.onBaseCreating=function(){e.prototype.onBaseCreating.call(this),this._implementor=new Ya(this)},t.prototype.dispose=function(){this._implementor.dispose(),this._implementor=void 0,e.prototype.dispose.call(this)},t}(Gi);R.overrideClassCreator("image",(function(){return new Ys("")})),Gt.Instance.registerQuestion("image",(function(e){return new Ys(e)}));var el=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),tl=function(e){function t(t){return e.call(this,t)||this}return el(t,e),t.prototype.onBaseCreating=function(){e.prototype.onBaseCreating.call(this),this._implementor=new Ya(this)},t.prototype.dispose=function(){this._implementor.dispose(),this._implementor=void 0,e.prototype.dispose.call(this)},t}(ta);R.overrideClassCreator("signaturepad",(function(){return new tl("")})),Gt.Instance.registerQuestion("signaturepad",(function(e){return new tl(e)}));var nl=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ol=function(e){function t(t,n){return e.call(this,t,n)||this}return nl(t,e),t.prototype.onBaseCreating=function(){e.prototype.onBaseCreating.call(this),this._implementor=new Ya(this)},t.prototype.dispose=function(){this._implementor.dispose(),this._implementor=void 0,e.prototype.dispose.call(this)},t}(Va),rl=function(e){function t(t,n){return e.call(this,t,n)||this}return nl(t,e),t.prototype.onBaseCreating=function(){e.prototype.onBaseCreating.call(this),this._implementor=new Ya(this)},t.prototype.dispose=function(){this._implementor.dispose(),this._implementor=void 0,e.prototype.dispose.call(this)},t}(ka);Pa.Instance.onCreateCustom=function(e,t){return new ol(e,t)},Pa.Instance.onCreateComposite=function(e,t){return new rl(e,t)};var il=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),al=(function(e){function t(t){return e.call(this,t)||this}il(t,e),t.prototype.onBaseCreating=function(){e.prototype.onBaseCreating.call(this),this._implementor=new ns(this)},t.prototype.dispose=function(){this._implementor.dispose(),this._implementor=void 0,e.prototype.dispose.call(this)}}(Ra),n(42));o.components.register("sv-action",{viewModel:{createViewModel:function(e){var t=e.item;return new Ma(t),e}},template:al});var sl=n(43);o.components.register("sv-action-bar-item",{viewModel:{createViewModel:function(e){return e}},template:sl});var ll=n(44);o.components.register("sv-action-bar-item-dropdown",{viewModel:{createViewModel:function(e){return e}},template:ll});var ul=n(45);o.components.register("sv-action-bar-separator",{viewModel:{createViewModel:function(e,t){var n=e.item;return n?{css:n.innerCss}:{}}},template:ul});var cl=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),pl=n(41),dl=function(e){function t(t,n){void 0===n&&(n=!0);var o=e.call(this)||this;return o.model=t,o.handleClick=n,o._implementor=new hl(t),o}return cl(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this._implementor.dispose(),this.model.resetResponsivityManager()},t}(lt),hl=function(e){function t(t){var n=e.call(this,t)||this;return n.itemsSubscription=o.computed((function(){(t.renderedActions||t.items||t.actions).forEach((function(e){e.stateItem?new Ma(e.stateItem):new Ma(e)}))})),n}return cl(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this.itemsSubscription.dispose()},t}(Ma);o.components.register("sv-action-bar",{viewModel:{createViewModel:function(e,t){var n=void 0===e.handleClick||e.handleClick,o=e.model,r=t.element.nextElementSibling;return e.model.initResponsivityManager(r),new dl(o,n)}},template:pl});var fl=n(46);o.components.register("sv-boolean-checkbox",{viewModel:{createViewModel:function(e,t){return{question:e.question}}},template:fl}),Be.Instance.registerRenderer("boolean","checkbox","sv-boolean-checkbox");var ml=n(47),gl=function(e,t){this.question=e,this.targetElement=t};o.components.register("sv-panel",{viewModel:{createViewModel:function(e,t){return new gl(e.question,t.element.parentElement)}},template:ml});var yl=n(48),vl=function(){function e(e){this.popupViewModel=e,e.container||e.initializePopupContainer(),new Ma(e.model),new Ma(e),e.container.innerHTML=yl,e.model.onVisibilityChanged=function(t){t&&(o.tasks.runEarly(),e.updateOnShowing())},o.applyBindings(e,e.container)}return e.prototype.dispose=function(){o.cleanNode(this.popupViewModel.container),this.popupViewModel.destroyPopupContainer()},e}();a.showModal=function(e,t,n,o,r,i){var a=ot(e,t,n,o,(function(){s.dispose()}),void 0,r,i),s=new vl(a);a.model.isVisible=!0},o.components.register("sv-popup",{viewModel:{createViewModel:function(e,t){var n=new it(o.unwrap(e.model),t.element.parentElement);return new vl(n)}},template:"<div></div>"});var bl=n(49),xl=function(){function e(e,t){var n=this;this.survey=e,this.scrollButtonCssKo=void 0,this.hasScroller=o.observable(!1),this.updateScroller=void 0,this.progressButtonsModel=new ua(e),this.updateScroller=setInterval((function(){var o=t.querySelector("."+e.css.progressButtonsListContainer);o&&n.hasScroller(o.scrollWidth>o.offsetWidth)}),100)}return e.prototype.isListElementClickable=function(e){return this.progressButtonsModel.isListElementClickable(e())},e.prototype.getListElementCss=function(e){return this.progressButtonsModel.getListElementCss(e())},e.prototype.clickListElement=function(e){this.progressButtonsModel.clickListElement(e())},e.prototype.getScrollButtonCss=function(e){var t=this;return this.scrollButtonCssKo=o.computed((function(){return t.progressButtonsModel.getScrollButtonCss(t.hasScroller(),e)}),this),this.scrollButtonCssKo},e.prototype.clickScrollButton=function(e,t){e.scrollLeft+=70*(t?-1:1)},e.prototype.dispose=function(){void 0!==this.updateScroller&&(clearInterval(this.updateScroller),this.updateScroller=void 0),void 0!==this.scrollButtonCssKo&&(this.scrollButtonCssKo.dispose(),this.scrollButtonCssKo=void 0)},e}();o.components.register("sv-progress-buttons",{viewModel:{createViewModel:function(e,t){return new xl(e.model,t.element.nextElementSibling)}},template:bl});var Cl=n(50),wl=function(){function e(e){this.model=e}return e.prototype.getProgressTextInBarCss=function(e){return la.getProgressTextInBarCss(e)},e.prototype.getProgressTextUnderBarCss=function(e){return la.getProgressTextUnderBarCss(e)},e}();o.components.register("sv-progress-progress",{viewModel:{createViewModel:function(e){return new wl(e.model)}},template:Cl});var Pl="\x3c!-- ko component: { name: 'sv-progress-progress', params: $data } --\x3e\x3c!-- /ko --\x3e";o.components.register("sv-progress-pages",{viewModel:{createViewModel:function(e){return new wl(e.model)}},template:Pl}),o.components.register("sv-progress-questions",{viewModel:{createViewModel:function(e){return new wl(e.model)}},template:Pl}),o.components.register("sv-progress-correctQuestions",{viewModel:{createViewModel:function(e){return new wl(e.model)}},template:Pl}),o.components.register("sv-progress-requiredQuestions",{viewModel:{createViewModel:function(e){return new wl(e.model)}},template:Pl});var _l=n(51);o.components.register(zn.TemplateRendererComponentName,{viewModel:{createViewModel:function(e){return e}},template:_l}),o.components.register("survey-element-title",{viewModel:{createViewModel:function(e,t){var n=e.element,o=t.element,r=document.createElement(n.titleTagName),i="radiogroup"===n.getType()?"":"'aria-label': element.locTitle.renderedHtml,";r.setAttribute("data-bind","css: element.cssTitle, attr: { "+i+" id: element.ariaTitleId, tabindex: element.titleTabIndex, 'aria-expanded': element.titleAriaExpanded }, click: function() { element.toggleState()}, key2click}"),r.innerHTML="\x3c!-- ko component: { name: 'sv-title-actions', params: {element: element } } --\x3e\x3c!-- /ko --\x3e";var a=o.nextSibling;return o.parentNode.insertBefore(document.createComment(" ko if: element.hasTitle "),a),o.parentNode.insertBefore(r,a),o.parentNode.insertBefore(document.createComment(" /ko "),a),o.parentNode.removeChild(a),{element:n}}},template:"<span></span>"});var Vl=n(52);o.components.register("survey-element-title-content",{viewModel:{createViewModel:function(e,t){return{element:e.element}}},template:Vl});var Tl=n(53),kl=function(){function e(e){this.element=e}return e.prototype.getIconCss=function(){var e=this.element.isPanel?this.element.cssClasses.panel:this.element.cssClasses;return lo.getIconCss(e,this.element.isCollapsed)},e}();o.components.register("sv-default-title",{viewModel:{createViewModel:function(e,t){return new kl(e.element)}},template:Tl}),Be.Instance.registerRenderer("element","default-title","sv-default-title");var Sl=n(54);o.components.register("sv-title-actions",{viewModel:{createViewModel:function(e,t){var n=e.element;return{element:n,toolbar:n.getTitleToolbar()}}},template:Sl}),Be.Instance.registerRenderer("element","title-actions","sv-title-actions");var Ol=n(55),El=function(){function e(e){this.locString=e}return Object.defineProperty(e.prototype,"koHasHtml",{get:function(){return this.locString.koHasHtml()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"editValue",{get:function(){return this.locString.koRenderedHtml()},set:function(e){this.locString.searchElement=void 0,this.locString.text=e},enumerable:!1,configurable:!0}),e.prototype.onInput=function(e,t){e.editValue=t.target.innerText},e.prototype.onClick=function(e,t){t.stopPropagation()},e.prototype.dispose=function(){this.locString.onSearchChanged=void 0},e}();function Rl(e,t){for(;e.childNodes.length>1;)e.removeChild(e.childNodes[1]);e.childNodes[0].textContent=t.renderedHtml}o.components.register(d.editableRenderer,{viewModel:{createViewModel:function(e,t){var n=e.locString;return function(e,t){t.onSearchChanged=function(){if(null==t.searchElement&&(t.searchElement=function(e){for(;e&&"SPAN"!==e.nodeName;){var t=e.parentElement.getElementsByClassName("sv-string-editor");e=t.length>0?t[0]:void 0}return e&&e.childNodes.length>0?e:null}(e)),null!=t.searchElement){var n=t.searchElement;if(t.highlightDiv||(t.highlightDiv=document.createElement("span"),t.highlightDiv.style.backgroundColor="lightgray"),null!=t.searchIndex){Rl(n,t);var o=document.createRange();o.setStart(n.childNodes[0],t.searchIndex),o.setEnd(n.childNodes[0],t.searchIndex+t.searchText.length),o.surroundContents(t.highlightDiv)}else Rl(n,t),t.searchElement=void 0}}}(t.element,n),new El(n)}},template:Ol});var Il=n(56);o.components.register("sv-string-viewer",{viewModel:{createViewModel:function(e,t){return e.locString}},template:Il});var ql=n(57);o.components.register("sv-logo-image",{viewModel:{createViewModel:function(e){return{survey:e}}},template:ql});var Dl=n(58);o.components.register("sv-skeleton",{viewModel:{createViewModel:function(e,t){return{question:e.question}}},template:Dl});var Al=n(59);o.components.register("sv-list",{viewModel:{createViewModel:function(e,t){var n=e.model;return new Ma(n),n}},template:Al});var jl=n(60);o.components.register("sv-svg-icon",{viewModel:{createViewModel:function(e,t){o.computed((function(){Rt(o.unwrap(e.size),o.unwrap(e.width),o.unwrap(e.height),o.unwrap(e.iconName),t.element.childNodes[0])}))}},template:jl});var Ll=n(61);o.components.register("sv-matrix-remove-button",{viewModel:{createViewModel:function(e){return e.item.data}},template:Ll});var Nl=n(62);o.components.register("sv-matrix-detail-button",{viewModel:{createViewModel:function(e,t){return e.item.data}},template:Nl});var Ml=n(63);o.components.register("sv-matrix-drag-drop-icon",{viewModel:{createViewModel:function(e,t){return e.item.data}},template:Ml});var Fl=n(64),Bl=function(e){this.model=e};o.components.register("sv-button-group-item",{viewModel:{createViewModel:function(e){var t=new qa(e.question,e.item,e.index());return new Bl(t)}},template:Fl}),Ja(o,zn.platform);var zl=o;i.a.fn.extend({Survey:function(e){return this.each((function(){var t=e.model;t.updateSurvey(e),t.render(this)}))},SurveyWindow:function(e){return this.each((function(){var t=e.model;t.updateSurvey(e);var n=new Xs(null,t);void 0!==e.expanded&&(n.isExpanded=e.expanded),void 0!==e.isExpanded&&(n.isExpanded=e.isExpanded),void 0!==e.closeOnCompleteTimeout&&(n.closeOnCompleteTimeout=e.closeOnCompleteTimeout),n.show()}))}}),zn.platform="jquery",Ja(o,zn.platform)}])}));